Public Member Functions | Private Attributes | List of all members
ecl::NullaryFunctionCopy< FunctionObject, void > Class Template Reference

Specialisation of NullaryFunctionCopy for void return types. More...

#include <function_objects.hpp>

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

Public Member Functions

 NullaryFunctionCopy (const FunctionObject &f_o)
 NullaryFunction child constructor for nullary function objects. More...
 
void operator() ()
 This ensures any children objects are deleted correctly. More...
 
virtual ~NullaryFunctionCopy ()
 
- Public Member Functions inherited from ecl::NullaryFunction< void >
virtual ~NullaryFunction ()
 

Private Attributes

FunctionObject function_object
 

Additional Inherited Members

- Public Types inherited from ecl::NullaryFunction< void >
typedef void result_type
 The result type. More...
 

Detailed Description

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

Specialisation of NullaryFunctionCopy for void return types.

Specialises the NullaryFunctionCopy class for void return types.

Template Parameters
FunctionObject: type of the function object to be wrapped.
See also
FunctionObjects.

Definition at line 900 of file function_objects.hpp.

Constructor & Destructor Documentation

◆ NullaryFunctionCopy()

template<typename FunctionObject >
ecl::NullaryFunctionCopy< FunctionObject, void >::NullaryFunctionCopy ( const FunctionObject &  f_o)
inlineexplicit

NullaryFunction child constructor for nullary function objects.

Creates a child of the NullaryFunction class by copying a nullary function object (one that is purely by definition).

Parameters
f_o: the function object to be assigned to the NullaryFunction child.

Definition at line 911 of file function_objects.hpp.

◆ ~NullaryFunctionCopy()

template<typename FunctionObject >
virtual ecl::NullaryFunctionCopy< FunctionObject, void >::~NullaryFunctionCopy ( )
inlinevirtual

Definition at line 914 of file function_objects.hpp.

Member Function Documentation

◆ operator()()

template<typename FunctionObject >
void ecl::NullaryFunctionCopy< FunctionObject, void >::operator() ( )
inlinevirtual

This ensures any children objects are deleted correctly.

The nullary function object call.

Redirects the call to the composited nullary function object call.

Implements ecl::NullaryFunction< void >.

Definition at line 921 of file function_objects.hpp.

Member Data Documentation

◆ function_object

template<typename FunctionObject >
FunctionObject ecl::NullaryFunctionCopy< FunctionObject, void >::function_object
private

Definition at line 924 of file function_objects.hpp.


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


ecl_utilities
Author(s): Daniel Stonier
autogenerated on Wed Mar 2 2022 00:16:32