Nullary function object for void global/static functions. More...
#include <function_objects.hpp>
Public Member Functions | |
NullaryFreeFunction (R(*function)()) | |
Nullary function object constructor for global/static functions with no args. | |
R | operator() () |
This ensures any children objects are deleted correctly. | |
virtual | ~NullaryFreeFunction () |
Private Attributes | |
R(* | free_function )() |
Nullary function object for void global/static functions.
Creates a function object from a void global/static function.
R | : the return type. |
Definition at line 126 of file function_objects.hpp.
ecl::NullaryFreeFunction< R >::NullaryFreeFunction | ( | R(*)() | function | ) | [inline] |
Nullary function object constructor for global/static functions with no args.
Accepts a global/static function with no args and builds the function object around it.
function | : the global/static function. |
Definition at line 136 of file function_objects.hpp.
virtual ecl::NullaryFreeFunction< R >::~NullaryFreeFunction | ( | ) | [inline, virtual] |
Definition at line 137 of file function_objects.hpp.
R ecl::NullaryFreeFunction< R >::operator() | ( | ) | [inline, virtual] |
This ensures any children objects are deleted correctly.
A nullary function object call.
Redirects the nullary function object call to the composited global/static function.
Implements ecl::NullaryFunction< R >.
Definition at line 146 of file function_objects.hpp.
R(* ecl::NullaryFreeFunction< R >::free_function)() [private] |
Definition at line 149 of file function_objects.hpp.