Creates a void unary function from a reference wrapper. More...
#include <function_objects.hpp>
Public Types | |
typedef ReferenceWrapper::type | FunctionObject |
Public Member Functions | |
void | operator() (T t) |
This ensures any children objects are deleted correctly. | |
UnaryFunctionReference (const ReferenceWrapper &wrapper) | |
Creates a UnaryFunction descendant from a reference wrapper. | |
virtual | ~UnaryFunctionReference () |
Private Attributes | |
FunctionObject & | function_object |
Creates a void unary function from a reference wrapper.
Takes a reference wrapper containing a unary function (strictly by definition) object reference and creates a UnaryFunction descendant. This is a specialisation which caters to unary function objects with void return type.
FunctionObject | : type of the function object to be referenced. |
Definition at line 1136 of file function_objects.hpp.
typedef ReferenceWrapper::type ecl::UnaryFunctionReference< ReferenceWrapper, T, void >::FunctionObject |
The wrapper's function object reference type.
Definition at line 1139 of file function_objects.hpp.
ecl::UnaryFunctionReference< ReferenceWrapper, T, void >::UnaryFunctionReference | ( | const ReferenceWrapper & | wrapper | ) | [inline, explicit] |
Creates a UnaryFunction descendant from a reference wrapper.
Creates a UnaryFunction descendant by reference (not copying).
wrapper | : the reference wrapper holding the unary function object to be referenced. |
Definition at line 1147 of file function_objects.hpp.
virtual ecl::UnaryFunctionReference< ReferenceWrapper, T, void >::~UnaryFunctionReference | ( | ) | [inline, virtual] |
Definition at line 1150 of file function_objects.hpp.
void ecl::UnaryFunctionReference< ReferenceWrapper, T, void >::operator() | ( | T | t | ) | [inline, virtual] |
This ensures any children objects are deleted correctly.
The unary function object call.
Redirects the call to the referenced unary function object call.
Implements ecl::UnaryFunction< T, void >.
Definition at line 1157 of file function_objects.hpp.
FunctionObject& ecl::UnaryFunctionReference< ReferenceWrapper, T, void >::function_object [private] |
Definition at line 1160 of file function_objects.hpp.