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. | |
void | operator() () |
This ensures any children objects are deleted correctly. | |
virtual | ~BoundUnaryFreeFunction () |
Private Attributes | |
A | argument |
void(* | free_function )(A) |
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 329 of file function_objects.hpp.
ecl::BoundUnaryFreeFunction< A, void >::BoundUnaryFreeFunction | ( | void(*)(A) | function, |
A | a | ||
) | [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 340 of file function_objects.hpp.
virtual ecl::BoundUnaryFreeFunction< A, void >::~BoundUnaryFreeFunction | ( | ) | [inline, virtual] |
Definition at line 341 of file function_objects.hpp.
void ecl::BoundUnaryFreeFunction< A, void >::operator() | ( | ) | [inline, virtual] |
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 349 of file function_objects.hpp.
A ecl::BoundUnaryFreeFunction< A, void >::argument [private] |
Definition at line 353 of file function_objects.hpp.
void(* ecl::BoundUnaryFreeFunction< A, void >::free_function)(A) [private] |
Definition at line 352 of file function_objects.hpp.