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. | |
Result | operator() () |
This ensures any children objects are deleted correctly. | |
virtual | ~NullaryFunctionCopy () |
Private Attributes | |
FunctionObject | function_object |
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 793 of file function_objects.hpp.
ecl::NullaryFunctionCopy< FunctionObject, Result >::NullaryFunctionCopy | ( | const FunctionObject & | f_o | ) | [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 804 of file function_objects.hpp.
virtual ecl::NullaryFunctionCopy< FunctionObject, Result >::~NullaryFunctionCopy | ( | ) | [inline, virtual] |
Definition at line 807 of file function_objects.hpp.
Result ecl::NullaryFunctionCopy< FunctionObject, Result >::operator() | ( | ) | [inline, virtual] |
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 816 of file function_objects.hpp.
FunctionObject ecl::NullaryFunctionCopy< FunctionObject, Result >::function_object [private] |
Definition at line 819 of file function_objects.hpp.