Unary function object for global/static functions. More...
#include <function_objects.hpp>
Public Member Functions | |
R | operator() (A a) |
This ensures any children objects are deleted correctly. | |
UnaryFreeFunction (R(*function)(A)) | |
Unary function object constructor for global/static functions. | |
virtual | ~UnaryFreeFunction () |
Private Attributes | |
R(* | free_function )(A) |
Unary function object for global/static functions.
Creates a function object from a global/static function with a single argument.
A | : the argument type. |
R | : the return type. |
Definition at line 200 of file function_objects.hpp.
ecl::UnaryFreeFunction< A, R >::UnaryFreeFunction | ( | R(*)(A) | function | ) | [inline] |
Unary function object constructor for global/static functions.
Accepts a 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 211 of file function_objects.hpp.
virtual ecl::UnaryFreeFunction< A, R >::~UnaryFreeFunction | ( | ) | [inline, virtual] |
Definition at line 213 of file function_objects.hpp.
R ecl::UnaryFreeFunction< A, R >::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 global/static function.
Implements ecl::UnaryFunction< A, R >.
Definition at line 222 of file function_objects.hpp.
R(* ecl::UnaryFreeFunction< A, R >::free_function)(A) [private] |
Definition at line 225 of file function_objects.hpp.