$search

ecl::NullaryFreeFunction< void > Class Template Reference

Specialisation for free nullary functions that return void. More...

#include <function_objects.hpp>

Inheritance diagram for ecl::NullaryFreeFunction< void >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 NullaryFreeFunction (void(*function)())
 Nullary function object constructor for void global/static functions with no args.
void operator() ()
 This ensures any children objects are deleted correctly.
virtual ~NullaryFreeFunction ()

Private Attributes

void(* free_function )()

Detailed Description

template<>
class ecl::NullaryFreeFunction< void >

Specialisation for free nullary functions that return void.

Specialisation for free nullary functions that return void.

See also:
NullaryFreeFunction, generateFunctionObject, FunctionObjects.

Definition at line 155 of file function_objects.hpp.


Constructor & Destructor Documentation

ecl::NullaryFreeFunction< void >::NullaryFreeFunction ( void(*)()  function  )  [inline]

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.

Definition at line 165 of file function_objects.hpp.

virtual ecl::NullaryFreeFunction< void >::~NullaryFreeFunction (  )  [inline, virtual]

Definition at line 167 of file function_objects.hpp.


Member Function Documentation

void ecl::NullaryFreeFunction< void >::operator() (  )  [inline, virtual]

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.

Implements ecl::NullaryFunction< void >.

Definition at line 176 of file function_objects.hpp.


Member Data Documentation

void(* ecl::NullaryFreeFunction< void >::free_function)() [private]

Definition at line 179 of file function_objects.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends


ecl_utilities
Author(s): Daniel Stonier (d.stonier@gmail.com)
autogenerated on Fri Mar 1 15:21:00 2013