Template Class BoundNullaryMemberFunction< C, void >
Defined in File function_objects.hpp
Inheritance Relationships
Base Type
public ecl::NullaryFunction< void >
(Template Class NullaryFunction)
Class Documentation
-
template<typename C>
class BoundNullaryMemberFunction<C, void> : public ecl::NullaryFunction<void> Specialisation of the bound nullary member function for void functions.
Binds the class instance for a nullary member function and uses this to construct a nullary function object. This is the specialisation for nullary member functions with void return type.
See also
ecl::utilities::BoundNullaryMemberFunction, generateFunctionObject, FunctionObjects.
- Template Parameters
C – : the member function’s class type.
Public Functions
-
inline BoundNullaryMemberFunction(void (C::* function)(), C &class_object)
Binds a unary member function and creates a nullary function object.
Accepts the function pointer and class instance, binds them and creates a nullary function object.
- Parameters
function – : the void member function.
class_object – : the member function’s class instance.
-
inline virtual ~BoundNullaryMemberFunction()
-
inline virtual void operator()()
This ensures any children objects are deleted correctly.
A nullary function object call.
Redirects the nullary function object call to the bound member function.