Template Class UnaryFreeFunction< A, void >

Inheritance Relationships

Base Type

Class Documentation

template<typename A>
class UnaryFreeFunction<A, void> : public ecl::UnaryFunction<A, void>

Specialisations for free unary functions with no return type.

Specialisations for free unary functions with no return type.

See also

ecl::utilities::UnaryFreeFunction, generateFunctionObject, FunctionObjects.

Template Parameters:

A – : the argument type.

Public Functions

inline UnaryFreeFunction(void (*function)(A))

Unary function object constructor for global/static unary functions with no return type.

Accepts a void global/static function with a single argument and builds the function object around it.

Parameters:

function – : a global/static function with a single argument.

inline virtual ~UnaryFreeFunction()
inline virtual void operator()(A a)

This ensures any children objects are deleted correctly.

A unary function object call.

Redirects the unary function object call to the composited void global/static function.

Returns:

R : the function’s return value.