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, R > | |
virtual | ~UnaryFunction () |
Private Attributes | |
C & | member_class |
void(C::* | member_function )(A) |
Additional Inherited Members | |
Public Types inherited from ecl::UnaryFunction< A, R > | |
typedef A | argument_type |
The first argument type. More... | |
typedef R | 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 685 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 695 of file function_objects.hpp.
|
inlinevirtual |
Definition at line 699 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, R >.
Definition at line 708 of file function_objects.hpp.
|
private |
Definition at line 712 of file function_objects.hpp.
|
private |
Definition at line 713 of file function_objects.hpp.