Create a NullaryFunction object composited from an existing function object. More...
#include <function_objects.hpp>
Public Member Functions | |
NullaryFunctionCopy (const FunctionObject &f_o) | |
NullaryFunction child constructor for nullary function objects. More... | |
Result | operator() () |
This ensures any children objects are deleted correctly. More... | |
virtual | ~NullaryFunctionCopy () |
Public Member Functions inherited from ecl::NullaryFunction< Result > | |
virtual | ~NullaryFunction () |
Private Attributes | |
FunctionObject | function_object |
Additional Inherited Members | |
Public Types inherited from ecl::NullaryFunction< Result > | |
typedef Result | result_type |
The result type. More... | |
Create a NullaryFunction object composited from an existing function object.
Takes a nullary function object (strictly by definition) and creates a NullaryFunction child object. This is useful in utilising the inheritance from NullaryFunction (needed for slots and similar classes).
FunctionObject | : type of the function object to be wrapped. |
R | : the return type. |
Definition at line 855 of file function_objects.hpp.
|
inline |
NullaryFunction child constructor for nullary function objects.
Creates a child of the NullaryFunction class by copying a nullary function object (one that is purely by definition).
f_o | : the function object to be assigned to the NullaryFunction child. |
Definition at line 866 of file function_objects.hpp.
|
inlinevirtual |
Definition at line 869 of file function_objects.hpp.
|
inlinevirtual |
This ensures any children objects are deleted correctly.
The nullary function object call.
Redirects the call to the composited nullary function object call.
Implements ecl::NullaryFunction< Result >.
Definition at line 878 of file function_objects.hpp.
|
private |
Definition at line 881 of file function_objects.hpp.