NOX
Development
|
Default function object for setting a single parameter in a single object using a data member pointer. More...
#include <LOCA_Parameter_Entry.H>
Public Member Functions | |
DefaultFunctor (ObjectType &object, ValueType ObjectType::*object_val_ptr) | |
Constructor. More... | |
virtual | ~DefaultFunctor () |
Destructor. | |
virtual void | set (const ValueType &value) |
Set parameter using object and data member pointer. | |
virtual ValueType | get () const |
Get parameter value this object represents. | |
Protected Attributes | |
ObjectType & | obj |
Reference to object to set parameter it. | |
ValueType ObjectType::* | obj_val_ptr |
Pointer to data member in ObjectType of type ValueType. | |
Default function object for setting a single parameter in a single object using a data member pointer.
The constructor takes a reference to an object object of type\ ObjectType and a pointer object_val_ptr to a data member of class of ObjectType of type ValueType. The parameter is set to value via
|
inline |
Constructor.
object is a reference to the object to set the parameter in, and object_val_ptr is a pointer to a data member of type ValueType of that class.