Create a UnaryFunction object composited from an existing function object. More...
#include <function_objects.hpp>
Public Member Functions | |
Result | operator() (T t) |
This ensures any children objects are deleted correctly. | |
UnaryFunctionCopy (const FunctionObject &f_o) | |
UnaryFunction child constructor for unary function objects. | |
virtual | ~UnaryFunctionCopy () |
Private Attributes | |
FunctionObject | function_object |
Create a UnaryFunction object composited from an existing function object.
Takes a unary function object (strictly by definition) and creates a UnaryFunction child object. This is useful in utilising the inheritance from UnaryFunction (needed for slots and similar classes).
FunctionObject | : type of the function object to be wrapped. |
T | : the unary data type. |
R | : the return type. |
Definition at line 1016 of file function_objects.hpp.
ecl::UnaryFunctionCopy< FunctionObject, T, Result >::UnaryFunctionCopy | ( | const FunctionObject & | f_o | ) | [inline] |
UnaryFunction child constructor for unary function objects.
Creates a child of the UnaryFunction class by copying a unary function object (one that is purely by definition).
f_o | : the function object to be assigned to the UnaryFunction child. |
Definition at line 1027 of file function_objects.hpp.
virtual ecl::UnaryFunctionCopy< FunctionObject, T, Result >::~UnaryFunctionCopy | ( | ) | [inline, virtual] |
Definition at line 1030 of file function_objects.hpp.
Result ecl::UnaryFunctionCopy< FunctionObject, T, Result >::operator() | ( | T | t | ) | [inline, virtual] |
This ensures any children objects are deleted correctly.
The unary function object call.
Redirects the call to the composited nullary function object call.
Implements ecl::UnaryFunction< T, Result >.
Definition at line 1039 of file function_objects.hpp.
FunctionObject ecl::UnaryFunctionCopy< FunctionObject, T, Result >::function_object [private] |
Definition at line 1042 of file function_objects.hpp.