Specialisations for free unary functions with no return type. More...
#include <function_objects.hpp>
Public Member Functions | |
void | operator() (A a) |
This ensures any children objects are deleted correctly. | |
UnaryFreeFunction (void(*function)(A)) | |
Unary function object constructor for global/static unary functions with no return type. | |
virtual | ~UnaryFreeFunction () |
Private Attributes | |
void(* | free_function )(A) |
Specialisations for free unary functions with no return type.
Specialisations for free unary functions with no return type.
A | : the argument type. |
Definition at line 238 of file function_objects.hpp.
ecl::UnaryFreeFunction< A, void >::UnaryFreeFunction | ( | void(*)(A) | function | ) | [inline] |
Unary function object constructor for global/static unary functions with no return type.
Accepts a void global/static function with a single argument and builds the function object around it.
function | : a global/static function with a single argument. |
Definition at line 249 of file function_objects.hpp.
virtual ecl::UnaryFreeFunction< A, void >::~UnaryFreeFunction | ( | ) | [inline, virtual] |
Definition at line 251 of file function_objects.hpp.
void ecl::UnaryFreeFunction< A, void >::operator() | ( | A | a | ) | [inline, virtual] |
This ensures any children objects are deleted correctly.
A unary function object call.
Redirects the unary function object call to the composited void global/static function.
Implements ecl::UnaryFunction< A, void >.
Definition at line 259 of file function_objects.hpp.
void(* ecl::UnaryFreeFunction< A, void >::free_function)(A) [private] |
Definition at line 262 of file function_objects.hpp.