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>

Collaboration diagram for LOCA::Parameter::DefaultFunctor< ObjectType, ValueType >:

[legend]
List of all members.

Public Member Functions

 DefaultFunctor (ObjectType &object, ValueType ObjectType::*object_val_ptr)
 Constructor.
 ~DefaultFunctor ()
 Destructor.
void set (const ValueType &value)
 Set parameter using object and data member pointer.

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:
Generated on Thu Sep 18 12:42:25 2008 for NOX by doxygen 1.3.9.1