Template Class NullaryMemberFunction< C, void >

Inheritance Relationships

Base Type

Class Documentation

template<typename C>
class NullaryMemberFunction<C, void> : public ecl::UnaryFunction<C&, void>

Specialisation of the unary function object for void member functions without arguments.

Specialisation for a function object from a void member function without arguments (note, the single argument to this unary function object is the class instance itself).

See also

ecl::utilities::NullaryMemberFunction, generateFunctionObject, FunctionObjects.

Template Parameters:

C – : the member function’s class type type.

Public Functions

inline NullaryMemberFunction(void (C::* function)())

Unary function object constructor for void member functions.

Accepts a void member function without arguments, and builds the function object around it.

Parameters:

function – : a void member function.

inline virtual ~NullaryMemberFunction()
inline virtual void operator()(C &class_object)

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.

Parameters:

class_object – : the member function’s class instance.