Gromacs  2024.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
anonymous_namespace{evaluate.cpp}::SelelemTemporaryValueAssigner Class Reference

Description

Assigns a temporary value for a selection element.

This class implements RAII semantics for temporarily assigning the value pointer of a selection element to point to a different location.

Public Member Functions

 SelelemTemporaryValueAssigner ()
 Constructs an assigner without an initial assignment.
 
 SelelemTemporaryValueAssigner (const SelectionTreeElementPointer &sel, const SelectionTreeElement &vsource)
 Constructs an assigner with an initial assignment. More...
 
 ~SelelemTemporaryValueAssigner ()
 Undoes any temporary assignment done using this assigner.
 
void assign (const SelectionTreeElementPointer &sel, const SelectionTreeElement &vsource)
 Assigns a temporary value pointer. More...
 

Constructor & Destructor Documentation

anonymous_namespace{evaluate.cpp}::SelelemTemporaryValueAssigner::SelelemTemporaryValueAssigner ( const SelectionTreeElementPointer &  sel,
const SelectionTreeElement vsource 
)
inline

Constructs an assigner with an initial assignment.

Parameters
[in,out]selSelection element for which to assign.
[in]vsourceElement to which sel values will point to.
See Also
assign()

Member Function Documentation

void anonymous_namespace{evaluate.cpp}::SelelemTemporaryValueAssigner::assign ( const SelectionTreeElementPointer &  sel,
const SelectionTreeElement vsource 
)
inline

Assigns a temporary value pointer.

Parameters
[in,out]selSelection element for which to assign.
[in]vsourceElement to which sel values will point to.

Assigns the value pointer in sel to point to the values in vsource, i.e., any access/modification to values in sel actually accesses values in vsource.


The documentation for this class was generated from the following file: