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. More... | |
UnaryFreeFunction (R(*function)(A)) | |
Unary function object constructor for global/static functions. More... | |
virtual | ~UnaryFreeFunction () |
Public Member Functions inherited from ecl::UnaryFunction< A, void > | |
virtual | ~UnaryFunction () |
Private Attributes | |
R(* | free_function )(A) |
Additional Inherited Members | |
Public Types inherited from ecl::UnaryFunction< A, void > | |
typedef A | argument_type |
The first argument type. More... | |
typedef void | result_type |
The result type. More... | |
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 206 of file function_objects.hpp.
|
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 217 of file function_objects.hpp.
|
inlinevirtual |
Definition at line 219 of file function_objects.hpp.
|
inlinevirtual |
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, void >.
Definition at line 228 of file function_objects.hpp.
|
private |
Definition at line 231 of file function_objects.hpp.