Template Class BoundUnaryFreeFunction< A, void >

Inheritance Relationships

Base Type

Class Documentation

template<typename A>
class BoundUnaryFreeFunction<A, void> : public ecl::NullaryFunction<void>

Specialisation for bound void unary functions.

Specialises BoundUnaryFreeFunction for functions with no return type.

See also

ecl::utilities::BoundUnaryFreeFunction, generateFunctionObject, FunctionObjects.

Template Parameters:

A – : the type of the argument to be bound.

Public Functions

inline BoundUnaryFreeFunction(void (*function)(A), A a)

Binds a unary function and creates a nullary function object.

Accepts both the function and a value for its single argument, binds them and creates a nullary function object.

Parameters:
  • function – : the unary global/static function.

  • a – : the argument to bind.

inline virtual ~BoundUnaryFreeFunction()
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 global/static function.

Returns:

void : the function’s return value.