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< void > | |
virtual | ~NullaryFunction () |
Private Attributes | |
FunctionObject | function_object |
Additional Inherited Members | |
Public Types inherited from ecl::NullaryFunction< void > | |
typedef void | 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 861 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 874 of file function_objects.hpp.
|
inlinevirtual |
Definition at line 877 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< void >.
Definition at line 886 of file function_objects.hpp.
|
private |
Definition at line 889 of file function_objects.hpp.