NOX  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Attributes | List of all members
LOCA::Parameter::DefaultFunctor< ObjectType, ValueType > Class Template Reference

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.
 

Detailed Description

template<class ObjectType, class ValueType>
class LOCA::Parameter::DefaultFunctor< ObjectType, 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

object.*object_val_ptr = value

Constructor & Destructor Documentation

template<class ObjectType , class ValueType >
LOCA::Parameter::DefaultFunctor< ObjectType, ValueType >::DefaultFunctor ( ObjectType &  object,
ValueType ObjectType::*  object_val_ptr 
)
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.


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