$search
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. | |
| UnaryMemberFunction (R(C::*function)(A)) | |
| Binary function object constructor for unary member functions. | |
| virtual | ~UnaryMemberFunction () |
Private Attributes | |
| R(C::* | member_function )(A) |
Binary function object for unary member functions.
Creates a function object from a unary member function.
Usage:
class A { public: void f(int i) { //... } }; int main() { A a; UnaryMemberFunction<A,int,void> function_object(&A::f); function_object(a,1); }
| C | : the member function's class type. | |
| A | : the member function's argument type. | |
| R | : the return type. |
Definition at line 482 of file function_objects.hpp.
| ecl::UnaryMemberFunction< C, A, R >::UnaryMemberFunction | ( | R(C::*)(A) | function | ) | [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 492 of file function_objects.hpp.
| virtual ecl::UnaryMemberFunction< C, A, R >::~UnaryMemberFunction | ( | ) | [inline, virtual] |
Definition at line 493 of file function_objects.hpp.
| R ecl::UnaryMemberFunction< C, A, R >::operator() | ( | C & | class_object, | |
| A | a | |||
| ) | [inline, virtual] |
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 504 of file function_objects.hpp.
R(C::* ecl::UnaryMemberFunction< C, A, R >::member_function)(A) [private] |
Definition at line 508 of file function_objects.hpp.