|
virtual | ~ParameterizedFunctionBase () |
| Destructs a parameterized function object. More...
|
|
virtual RT | call () const =0 |
| Calls the internal encapsulated function and uses the specified parameters. More...
|
|
virtual ParameterizedFunctionBase * | copy () const =0 |
| Creates a copy of the entire derivated object. More...
|
|
virtual unsigned int | parameters () const =0 |
| Returns the number of function parameters. More...
|
|
virtual void * | parameter (const unsigned int index)=0 |
| Returns a specified parameter as a void pointer to the parameter's pointer. More...
|
|
virtual void | setParameter (const unsigned int index, const void *value)=0 |
| Sets a specified parameter. More...
|
|
virtual const std::type_info & | type (const unsigned int index) const =0 |
| Returns the parameter type of a specific parameter. More...
|
|
template<typename RT>
class Ocean::ParameterizedFunctionBase< RT >
This class is the base class for a parameterized function container.
This base function cantainer allows the specification of parameters and therefore can call the encapsulated function without explicit parameters.
- Template Parameters
-
RT | Defines the return data type |
Calls the internal encapsulated function and uses the specified parameters.
- Returns
- Return value
Implemented in Ocean::ParameterizedStaticFunction< RT, PT0, PT1, PT2, PT3, PT4, PT5, PT6, PT7, PT8, PT9, PT10, PT11, PT12, PT13, PT14, PT15, PT16, PT17, PT18, PT19 >, Ocean::ParameterizedMemberFunctionConst< CT, RT, PT0, PT1, PT2, PT3, PT4, PT5, PT6, PT7, PT8, PT9, PT10, PT11, PT12, PT13, PT14, PT15, PT16, PT17, PT18, PT19 >, and Ocean::ParameterizedMemberFunction< CT, RT, PT0, PT1, PT2, PT3, PT4, PT5, PT6, PT7, PT8, PT9, PT10, PT11, PT12, PT13, PT14, PT15, PT16, PT17, PT18, PT19 >.
Returns a specified parameter as a void pointer to the parameter's pointer.
- Parameters
-
index | Index of the parameter to change |
- Returns
- Requested parameter pointer
Implemented in Ocean::ParameterizedFunction< RT, PT0, PT1, PT2, PT3, PT4, PT5, PT6, PT7, PT8, PT9, PT10, PT11, PT12, PT13, PT14, PT15, PT16, PT17, PT18, PT19 >, and Ocean::ParameterizedFunction< RT, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass >.
Sets a specified parameter.
- Parameters
-
index | Index of the parameter to change |
value | New parameter value |
Implemented in Ocean::ParameterizedFunction< RT, PT0, PT1, PT2, PT3, PT4, PT5, PT6, PT7, PT8, PT9, PT10, PT11, PT12, PT13, PT14, PT15, PT16, PT17, PT18, PT19 >, and Ocean::ParameterizedFunction< RT, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass >.
Returns the parameter type of a specific parameter.
- Parameters
-
index | Index of the parameter |
- Returns
- Type information
Implemented in Ocean::ParameterizedFunction< RT, PT0, PT1, PT2, PT3, PT4, PT5, PT6, PT7, PT8, PT9, PT10, PT11, PT12, PT13, PT14, PT15, PT16, PT17, PT18, PT19 >, and Ocean::ParameterizedFunction< RT, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass, NullClass >.