Template Class NullaryFreeFunction< void >

Inheritance Relationships

Base Type

Class Documentation

template<>
class NullaryFreeFunction<void> : public ecl::NullaryFunction<void>

Specialisation for free nullary functions that return void.

Specialisation for free nullary functions that return void.

Public Functions

inline NullaryFreeFunction(void (*function)())

Nullary function object constructor for void global/static functions with no args.

Accepts a void global/static function with no args and builds the function object around it.

Parameters:

function – : the global/static function.

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

Returns:

R : the function’s return value.