Public Member Functions | Private Attributes
ecl::NullaryFunctionReference< FunctionObject, void > Class Template Reference

Creates a void nullary function from a reference wrapper. More...

#include <function_objects.hpp>

Inheritance diagram for ecl::NullaryFunctionReference< FunctionObject, void >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 NullaryFunctionReference (const ReferenceWrapper< FunctionObject > &wrapper)
 Creates a NullaryFunction descendant from a reference wrapper.
void operator() ()
 This ensures any children objects are deleted correctly.
virtual ~NullaryFunctionReference ()

Private Attributes

FunctionObject & function_object

Detailed Description

template<typename FunctionObject>
class ecl::NullaryFunctionReference< FunctionObject, void >

Creates a void nullary function from a reference wrapper.

Takes a reference wrapper containing a nullary function (strictly by definition) object reference and creates a NullaryFunction descendant. This is a specialisation which caters to nullary function objects with void return type.

Template Parameters:
FunctionObject: type of the function object to be referenced.
See also:
NullaryFunctionReference, FunctionObjects.

Definition at line 913 of file function_objects.hpp.


Constructor & Destructor Documentation

template<typename FunctionObject >
ecl::NullaryFunctionReference< FunctionObject, void >::NullaryFunctionReference ( const ReferenceWrapper< FunctionObject > &  wrapper) [inline, explicit]

Creates a NullaryFunction descendant from a reference wrapper.

Creates a NullaryFunction descendant by reference (not copying).

Parameters:
wrapper: the reference wrapper holding the nullary function object to be referenced.

Definition at line 923 of file function_objects.hpp.

template<typename FunctionObject >
virtual ecl::NullaryFunctionReference< FunctionObject, void >::~NullaryFunctionReference ( ) [inline, virtual]

Definition at line 926 of file function_objects.hpp.


Member Function Documentation

template<typename FunctionObject >
void ecl::NullaryFunctionReference< FunctionObject, void >::operator() ( ) [inline, virtual]

This ensures any children objects are deleted correctly.

The nullary function object call.

Redirects the call to the referenced nullary function object call.

Implements ecl::NullaryFunction< void >.

Definition at line 933 of file function_objects.hpp.


Member Data Documentation

template<typename FunctionObject >
FunctionObject& ecl::NullaryFunctionReference< FunctionObject, void >::function_object [private]

Definition at line 936 of file function_objects.hpp.


The documentation for this class was generated from the following file:


ecl_utilities
Author(s): Daniel Stonier
autogenerated on Sun Oct 5 2014 23:35:35