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, void > | |
| virtual | ~BinaryFunction () |
Private Attributes | |
| R(C::* | member_function )(A) |
Additional Inherited Members | |
Public Types inherited from ecl::BinaryFunction< C &, A, void > | |
| typedef C & | first_argument_type |
| The first argument type. More... | |
| typedef void | 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 493 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 503 of file function_objects.hpp.
|
inlinevirtual |
Definition at line 504 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, void >.
Definition at line 515 of file function_objects.hpp.
|
private |
Definition at line 519 of file function_objects.hpp.