Template Class UnaryMemberFunction< C, A, void >
Defined in File function_objects.hpp
Inheritance Relationships
Base Type
public ecl::BinaryFunction< C &, A, void >
(Template Class BinaryFunction)
Class Documentation
-
template<typename C, typename A>
class UnaryMemberFunction<C, A, void> : public ecl::BinaryFunction<C&, A, void> Specialisation of the binary function object for void unary member functions.
Specialises the binary member function object for void member functions.
See also
ecl::utilities::UnaryMemberFunction
See also
generateFunctionObject, FunctionObjects.
- Template Parameters
C – : the member function’s class type.
A – : the member function’s argument type.
Public Functions
-
inline UnaryMemberFunction(void (C::* function)(A))
Binary function object constructor for unary member functions.
Accepts a unary member function, and builds the function object around it.
- Parameters
function – : a unary member function.
-
inline virtual ~UnaryMemberFunction()
-
inline virtual void operator()(C &class_object, A a)
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.
- Parameters
class_object – : the member function’s class instance.
a – : the member function’s argument value.
- Returns
R : the function’s return value.