Unary function object for member functions without arguments. More...
#include <function_objects.hpp>
Public Member Functions | |
NullaryMemberFunction (R(C::*function)()) | |
Unary function object constructor for member functions without arguments. More... | |
R | operator() (C &class_object) |
This ensures any children objects are deleted correctly. More... | |
virtual | ~NullaryMemberFunction () |
Public Member Functions inherited from ecl::UnaryFunction< C &, void > | |
virtual | ~UnaryFunction () |
Private Attributes | |
R(C::* | member_function )() |
Additional Inherited Members | |
Public Types inherited from ecl::UnaryFunction< C &, void > | |
typedef C & | argument_type |
The first argument type. More... | |
typedef void | result_type |
The result type. More... | |
Unary function object for member functions without arguments.
Creates a function object from a member function without arguments (note, the single argument to this unary function object is the class instance itself).
Usage:
C | : the member function's class type type. |
R | : the return type. |
Definition at line 397 of file function_objects.hpp.
|
inline |
Unary function object constructor for member functions without arguments.
Accepts a void member function, and builds the function object around it.
function | : a void member function. |
Definition at line 412 of file function_objects.hpp.
|
inlinevirtual |
Definition at line 413 of file function_objects.hpp.
|
inlinevirtual |
This ensures any children objects are deleted correctly.
A unary function object call.
Uses the specified class instance to redirect the function call to the void member function.
class_object | : the member function's class instance. |
Implements ecl::UnaryFunction< C &, void >.
Definition at line 425 of file function_objects.hpp.
|
private |
Definition at line 429 of file function_objects.hpp.