Nullary function object for bound unary member functions. More...
#include <function_objects.hpp>
Public Member Functions | |
BoundUnaryMemberFunction (R(C::*function)(A), C &class_object, A a) | |
Binds a unary member function and creates a nullary function object. More... | |
R | operator() () |
This ensures any children objects are deleted correctly. More... | |
virtual | ~BoundUnaryMemberFunction () |
Public Member Functions inherited from ecl::NullaryFunction< R > | |
virtual | ~NullaryFunction () |
Private Attributes | |
A | argument |
C & | member_class |
void(C::* | member_function )(A) |
Additional Inherited Members | |
Public Types inherited from ecl::NullaryFunction< R > | |
typedef R | result_type |
The result type. More... | |
Nullary function object for bound unary member functions.
Binds the class instance and argument for a unary member function and uses this to construct a nullary function object.
Usage:
C | : the member function's class type. |
A | : the member function's argument type. |
R | : the return type. |
Definition at line 744 of file function_objects.hpp.
|
inline |
Binds a unary member function and creates a nullary function object.
Accepts the function, class instance and a value for its single argument, binds them and creates a nullary function object.
function | : the unary global/static function. |
class_object | : the member function's class instance. |
a | : the value of the argument to bind. |
Definition at line 755 of file function_objects.hpp.
|
inlinevirtual |
Definition at line 760 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 member function.
Implements ecl::NullaryFunction< R >.
Definition at line 768 of file function_objects.hpp.
|
private |
Definition at line 774 of file function_objects.hpp.
|
private |
Definition at line 772 of file function_objects.hpp.
|
private |
Definition at line 773 of file function_objects.hpp.