Template Class NullaryFreeFunction< void >
Defined in File function_objects.hpp
Inheritance Relationships
Base Type
public ecl::NullaryFunction< void >
(Template Class NullaryFunction)
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.
See also
NullaryFreeFunction, generateFunctionObject, FunctionObjects.
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.
-
inline NullaryFreeFunction(void (*function)())