Binary function object for unary member functions. More...
#include <function_objects.hpp>
Public Member Functions | |
R | operator() (C &class_object, A a) |
This ensures any children objects are deleted correctly. More... | |
UnaryMemberFunction (R(C::*function)(A)) | |
Binary function object constructor for unary member functions. More... | |
virtual | ~UnaryMemberFunction () |
Public Member Functions inherited from ecl::BinaryFunction< C &, A, R > | |
virtual | ~BinaryFunction () |
Private Attributes | |
R(C::* | member_function )(A) |
Additional Inherited Members | |
Public Types inherited from ecl::BinaryFunction< C &, A, R > | |
typedef C & | first_argument_type |
The first argument type. More... | |
typedef R | result_type |
The result type. More... | |
typedef A | second_argument_type |
The second argument type. More... | |
Binary function object for unary member functions.
Creates a function object from a unary member function.
Usage:
C | : the member function's class type. |
A | : the member function's argument type. |
R | : the return type. |
Definition at line 487 of file function_objects.hpp.
|
inline |
Binary function object constructor for unary member functions.
Accepts a unary member function, and builds the function object around it.
function | : a unary member function. |
Definition at line 497 of file function_objects.hpp.
|
inlinevirtual |
Definition at line 498 of file function_objects.hpp.
|
inlinevirtual |
This ensures any children objects are deleted correctly.
A binary function object call.
Uses the specified class instance and argument to redirect the function call to the unary member function.
class_object | : the member function's class instance. |
a | : the member function's argument value. |
Implements ecl::BinaryFunction< C &, A, R >.
Definition at line 509 of file function_objects.hpp.
|
private |
Definition at line 513 of file function_objects.hpp.