Ocean
|
This class implements an parameterized function container. More...
Protected Member Functions | |
ParameterizedFunction (PT0 param0=PT0(), PT1 param1=PT1(), PT2 param2=PT2(), PT3 param3=PT3(), PT4 param4=PT4(), PT5 param5=PT5(), PT6 param6=PT6(), PT7 param7=PT7(), PT8 param8=PT8(), PT9 param9=PT9(), PT10 param10=PT10(), PT11 param11=PT11(), PT12 param12=PT12(), PT13 param13=PT13(), PT14 param14=PT14(), PT15 param15=PT15(), PT16 param16=PT16(), PT17 param17=PT17(), PT18 param18=PT18(), PT19 param19=PT19()) | |
Creates a new function object. More... | |
virtual | ~ParameterizedFunction () |
Destructs a parameter function. More... | |
virtual unsigned int | parameters () const |
Returns the number of function parameters. More... | |
virtual void * | parameter (const unsigned int index) |
Returns a specified parameter as a void pointer to the parameter's pointer. More... | |
virtual void | setParameter (const unsigned int index, const void *value) |
Sets a specified parameter as long as the parameter is not a reference. More... | |
virtual const std::type_info & | type (const unsigned int index) const |
Returns the parameter type of a specific parameter. More... | |
Protected Attributes | |
PT0 | functionParam0 |
First function parameter. More... | |
PT1 | functionParam1 |
Second function parameter. More... | |
PT2 | functionParam2 |
Third function parameter. More... | |
PT3 | functionParam3 |
Fourth function parameter. More... | |
PT4 | functionParam4 |
Fifth function parameter. More... | |
PT5 | functionParam5 |
Sixth function parameter. More... | |
PT6 | functionParam6 |
Seventh function parameter. More... | |
PT7 | functionParam7 |
Eighth function parameter. More... | |
PT8 | functionParam8 |
Ninth function parameter. More... | |
PT9 | functionParam9 |
Tenth function parameter. More... | |
PT10 | functionParam10 |
Eleventh function parameter. More... | |
PT11 | functionParam11 |
Twelfth function parameter. More... | |
PT12 | functionParam12 |
13th function parameter. More... | |
PT13 | functionParam13 |
14th function parameter. More... | |
PT14 | functionParam14 |
15th function parameter. More... | |
PT15 | functionParam15 |
16th function parameter. More... | |
PT16 | functionParam16 |
17th function parameter. More... | |
PT17 | functionParam17 |
18th function parameter. More... | |
PT18 | functionParam18 |
19th function parameter. More... | |
PT19 | functionParam19 |
20th function parameter. More... | |
Additional Inherited Members | |
Public Member Functions inherited from Ocean::ParameterizedFunctionBase< RT > | |
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... | |
This class implements an parameterized function container.
This function cantainer holds function parameters and therefore can call the encapsulated function without explicit parameters.
The template parameters define the return type (RT) and twenty possible function parameters (PT0 - PT19).
This class is a helper class only and used to allow caller functions to be independent from the member function's class type.
RT | Return type |
PT0 | Data type of the 1st parameter |
PT1 | Data type of the 2nd parameter |
PT2 | Data type of the 3rd parameter |
PT3 | Data type of the 4th parameter |
PT4 | Data type of the 5th parameter |
PT5 | Data type of the 6th parameter |
PT6 | Data type of the 7th parameter |
PT7 | Data type of the 8th parameter |
PT8 | Data type of the 9th parameter |
PT9 | Data type of the 10th parameter |
PT10 | Data type of the 11th parameter |
PT11 | Data type of the 12th parameter |
PT12 | Data type of the 13th parameter |
PT13 | Data type of the 14th parameter |
PT14 | Data type of the 15th parameter |
PT15 | Data type of the 16th parameter |
PT16 | Data type of the 17th parameter |
PT17 | Data type of the 18th parameter |
PT18 | Data type of the 19th parameter |
PT19 | Data type of the 20th parameter |
|
inlineprotected |
Creates a new function object.
param0 | First function parameter |
param1 | Second function parameter |
param2 | Third function parameter |
param3 | Fourth function parameter |
param4 | Fifth function parameter |
param5 | Sixth function parameter |
param6 | Seventh function parameter |
param7 | Eighth function parameter |
param8 | Ninth function parameter |
param9 | Tenth function parameter |
param10 | 11th function parameter |
param11 | 12th function parameter |
param12 | 13th function parameter |
param13 | 14th function parameter |
param14 | 15th function parameter |
param15 | 16th function parameter |
param16 | 17th function parameter |
param17 | 18th function parameter |
param18 | 19th function parameter |
param19 | 20th function parameter |
|
protectedvirtual |
Destructs a parameter function.
|
protectedvirtual |
Returns a specified parameter as a void pointer to the parameter's pointer.
index | Index of the parameter to change |
Implements Ocean::ParameterizedFunctionBase< RT >.
|
protectedvirtual |
Returns the number of function parameters.
Implements Ocean::ParameterizedFunctionBase< RT >.
|
protectedvirtual |
Sets a specified parameter as long as the parameter is not a reference.
index | Index of the (non-reference) parameter to change |
value | New parameter value |
Implements Ocean::ParameterizedFunctionBase< RT >.
|
protectedvirtual |
Returns the parameter type of a specific parameter.
index | Index of the parameter |
Implements Ocean::ParameterizedFunctionBase< RT >.
|
protected |
First function parameter.
|
protected |
Second function parameter.
|
protected |
Eleventh function parameter.
|
protected |
Twelfth function parameter.
|
protected |
13th function parameter.
|
protected |
14th function parameter.
|
protected |
15th function parameter.
|
protected |
16th function parameter.
|
protected |
17th function parameter.
|
protected |
18th function parameter.
|
protected |
19th function parameter.
|
protected |
20th function parameter.
|
protected |
Third function parameter.
|
protected |
Fourth function parameter.
|
protected |
Fifth function parameter.
|
protected |
Sixth function parameter.
|
protected |
Seventh function parameter.
|
protected |
Eighth function parameter.
|
protected |
Ninth function parameter.
|
protected |
Tenth function parameter.