Specialisation for bound void unary functions. More...
#include <function_objects.hpp>
Public Member Functions | |
BoundUnaryFreeFunction (void(*function)(A), A a) | |
Binds a unary function and creates a nullary function object. More... | |
void | operator() () |
This ensures any children objects are deleted correctly. More... | |
virtual | ~BoundUnaryFreeFunction () |
Public Member Functions inherited from ecl::NullaryFunction< void > | |
virtual | ~NullaryFunction () |
Private Attributes | |
A | argument |
void(* | free_function )(A) |
Additional Inherited Members | |
Public Types inherited from ecl::NullaryFunction< void > | |
typedef void | result_type |
The result type. More... | |
Specialisation for bound void unary functions.
Specialises BoundUnaryFreeFunction for functions with no return type.
A | : the type of the argument to be bound. |
Definition at line 335 of file function_objects.hpp.
|
inline |
Binds a unary function and creates a nullary function object.
Accepts both the function and a value for its single argument, binds them and creates a nullary function object.
function | : the unary global/static function. |
a | : the argument to bind. |
Definition at line 346 of file function_objects.hpp.
|
inlinevirtual |
Definition at line 347 of file function_objects.hpp.
|
inlinevirtual |
This ensures any children objects are deleted correctly.
A nullary function object call.
Redirects the nullary function object call to the bound global/static function.
Implements ecl::NullaryFunction< void >.
Definition at line 355 of file function_objects.hpp.
|
private |
Definition at line 359 of file function_objects.hpp.
|
private |
Definition at line 358 of file function_objects.hpp.