Binary function object for partially bound binary member functions. More...
#include <function_objects.hpp>
Public Member Functions | |
R | operator() (A a, B b) |
This ensures any children objects are deleted correctly. More... | |
PartiallyBoundBinaryMemberFunction (R(C::*function)(A, B), C &class_object) | |
Binds a binary member function and creates a binary function object. More... | |
virtual | ~PartiallyBoundBinaryMemberFunction () |
Public Member Functions inherited from ecl::BinaryFunction< A, B, R > | |
virtual | ~BinaryFunction () |
Private Attributes | |
C & | member_class |
void(C::* | member_function )(A, B) |
Additional Inherited Members | |
Public Types inherited from ecl::BinaryFunction< A, B, R > | |
typedef A | first_argument_type |
The first argument type. More... | |
typedef R | result_type |
The result type. More... | |
typedef B | second_argument_type |
The second argument type. More... | |
Binary function object for partially bound binary member functions.
Binds the class instance but not the arguments for a binary member function and uses this to construct a binary function object.
Usage:
C | : the member function's class type. |
A | : the member function's first argument type. |
B | : the member function's second argument type. |
R | : the return type. |
Definition at line 807 of file function_objects.hpp.
|
inline |
Binds a binary member function and creates a binary function object.
Accepts the function, class instance only (not the arguments), binds them and creates a binary function object.
function | : the unary global/static function. |
class_object | : the member function's class instance. |
Definition at line 817 of file function_objects.hpp.
|
inlinevirtual |
Definition at line 821 of file function_objects.hpp.
|
inlinevirtual |
This ensures any children objects are deleted correctly.
A binary function object call.
Redirects the binary function object call to the bound member function.
a | : the first argument passed to the function (type A). |
b | : the second argument passed to the function (type B). |
Implements ecl::BinaryFunction< A, B, R >.
Definition at line 831 of file function_objects.hpp.
|
private |
Definition at line 835 of file function_objects.hpp.
|
private |
Definition at line 836 of file function_objects.hpp.