Unary function object for partially bound unary member functions. More...
#include <function_objects.hpp>

Public Member Functions | |
| R | operator() (A a) |
| This ensures any children objects are deleted correctly. More... | |
| PartiallyBoundUnaryMemberFunction (R(C::*function)(A), C &class_object) | |
| Binds a unary member function and creates a nullary function object. More... | |
| virtual | ~PartiallyBoundUnaryMemberFunction () |
Public Member Functions inherited from ecl::UnaryFunction< A, void > | |
| virtual | ~UnaryFunction () |
Private Attributes | |
| C & | member_class |
| void(C::* | member_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 partially bound unary member functions.
Binds the class instance but not the argument for a unary member function and uses this to construct a unary function object.
Usage:
| C | : the member function's class type. |
| A | : the member function's argument type. |
| R | : the return type. |
Definition at line 691 of file function_objects.hpp.
|
inline |
Binds a unary member function and creates a nullary function object.
Accepts the function, class instance only (not the argument), binds them and creates a unary function object.
| function | : the unary global/static function. |
| class_object | : the member function's class instance. |
Definition at line 701 of file function_objects.hpp.
|
inlinevirtual |
Definition at line 705 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 bound member function.
| a | : the argument passed to the function. |
Implements ecl::UnaryFunction< A, void >.
Definition at line 714 of file function_objects.hpp.
|
private |
Definition at line 718 of file function_objects.hpp.
|
private |
Definition at line 719 of file function_objects.hpp.