Inheritance diagram for LOCA::Parameter::StandardEntry< FunctorType, ValueType >:
Public Member Functions
|StandardEntry (FunctorType *fctr)|
|virtual void||setValue (const ValueType &value)|
|Set parameter this object represents to value. |
|virtual void||setIsInLibrary ()|
|Informs entry that it is now stored in the library. |
|Flag indicating whether to delete function object in destructor. |
|Stores pointer to function object. |
This is the standard parameter entry class that uses a function object to actually set/retrieve parameter values. The nice thing about using a function object is it allows one to set parameters that don't actually exist in the code, for example, setting a dimensionless group value by modifiying a number of physical parameters. By supplying an appropriate function object, this class should suffice for setting/retrieving parameter values in nearly all cases.
The constructor takes a pointer to the supplied function object. It is assumed that this class then owns that pointer, and in particular, calls delete in the destructor if the entry is successfully added to the library. It does not delete the function object otherwise.
Informs entry that it is now stored in the library.
This is used primarily for informing the entry on how to delete itself when deleting the library.
Implements LOCA::Parameter::Entry< ValueType >.