Public Types | Public Member Functions | Private Attributes
ecl::UnaryFunctionReference< ReferenceWrapper, T, void > Class Template Reference

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

#include <function_objects.hpp>

Inheritance diagram for ecl::UnaryFunctionReference< ReferenceWrapper, T, void >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef ReferenceWrapper::type FunctionObject

Public Member Functions

void operator() (T t)
 This ensures any children objects are deleted correctly.
 UnaryFunctionReference (const ReferenceWrapper &wrapper)
 Creates a UnaryFunction descendant from a reference wrapper.
virtual ~UnaryFunctionReference ()

Private Attributes

FunctionObjectfunction_object

Detailed Description

template<typename ReferenceWrapper, typename T>
class ecl::UnaryFunctionReference< ReferenceWrapper, T, void >

Creates a void unary function from a reference wrapper.

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

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

Definition at line 1074 of file function_objects.hpp.


Member Typedef Documentation

template<typename ReferenceWrapper , typename T >
typedef ReferenceWrapper::type ecl::UnaryFunctionReference< ReferenceWrapper, T, void >::FunctionObject

The wrapper's function object reference type.

Definition at line 1077 of file function_objects.hpp.


Constructor & Destructor Documentation

template<typename ReferenceWrapper , typename T >
ecl::UnaryFunctionReference< ReferenceWrapper, T, void >::UnaryFunctionReference ( const ReferenceWrapper wrapper) [inline, explicit]

Creates a UnaryFunction descendant from a reference wrapper.

Creates a UnaryFunction descendant by reference (not copying).

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

Definition at line 1085 of file function_objects.hpp.

template<typename ReferenceWrapper , typename T >
virtual ecl::UnaryFunctionReference< ReferenceWrapper, T, void >::~UnaryFunctionReference ( ) [inline, virtual]

Definition at line 1088 of file function_objects.hpp.


Member Function Documentation

template<typename ReferenceWrapper , typename T >
void ecl::UnaryFunctionReference< ReferenceWrapper, T, void >::operator() ( t) [inline, virtual]

This ensures any children objects are deleted correctly.

The unary function object call.

Redirects the call to the referenced unary function object call.

Implements ecl::UnaryFunction< T, void >.

Definition at line 1095 of file function_objects.hpp.


Member Data Documentation

template<typename ReferenceWrapper , typename T >
FunctionObject& ecl::UnaryFunctionReference< ReferenceWrapper, T, void >::function_object [private]

Definition at line 1098 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