Creates a void nullary function from a reference wrapper. More...
#include <function_objects.hpp>
Public Member Functions | |
NullaryFunctionReference (const ReferenceWrapper< FunctionObject > &wrapper) | |
Creates a NullaryFunction descendant from a reference wrapper. | |
void | operator() () |
This ensures any children objects are deleted correctly. | |
virtual | ~NullaryFunctionReference () |
Private Attributes | |
FunctionObject & | function_object |
Creates a void nullary function from a reference wrapper.
Takes a reference wrapper containing a nullary function (strictly by definition) object reference and creates a NullaryFunction descendant. This is a specialisation which caters to nullary function objects with void return type.
FunctionObject | : type of the function object to be referenced. |
Definition at line 975 of file function_objects.hpp.
ecl::NullaryFunctionReference< FunctionObject, void >::NullaryFunctionReference | ( | const ReferenceWrapper< FunctionObject > & | wrapper | ) | [inline, explicit] |
Creates a NullaryFunction descendant from a reference wrapper.
Creates a NullaryFunction descendant by reference (not copying).
wrapper | : the reference wrapper holding the nullary function object to be referenced. |
Definition at line 985 of file function_objects.hpp.
virtual ecl::NullaryFunctionReference< FunctionObject, void >::~NullaryFunctionReference | ( | ) | [inline, virtual] |
Definition at line 988 of file function_objects.hpp.
void ecl::NullaryFunctionReference< FunctionObject, void >::operator() | ( | ) | [inline, virtual] |
This ensures any children objects are deleted correctly.
The nullary function object call.
Redirects the call to the referenced nullary function object call.
Implements ecl::NullaryFunction< void >.
Definition at line 995 of file function_objects.hpp.
FunctionObject& ecl::NullaryFunctionReference< FunctionObject, void >::function_object [private] |
Definition at line 998 of file function_objects.hpp.