Ocean
Loading...
Searching...
No Matches
Ocean::ParameterizedFunctionBase< RT > Class Template Referenceabstract

This class is the base class for a parameterized function container. More...

#include <Caller.h>

Inheritance diagram for Ocean::ParameterizedFunctionBase< RT >:

Public Member Functions

virtual ~ParameterizedFunctionBase ()
 Destructs a parameterized function object.
virtual RT call () const =0
 Calls the internal encapsulated function and uses the specified parameters.
virtual ParameterizedFunctionBase * copy () const =0
 Creates a copy of the entire derivated object.
virtual unsigned int parameters () const =0
 Returns the number of function parameters.
virtual void * parameter (const unsigned int index)=0
 Returns a specified parameter as a void pointer to the parameter's pointer.
virtual void setParameter (const unsigned int index, const void *value)=0
 Sets a specified parameter.
virtual const std::type_info & type (const unsigned int index) const =0
 Returns the parameter type of a specific parameter.

Detailed Description

template<typename RT>
class Ocean::ParameterizedFunctionBase< RT >

This class is the base class for a parameterized function container.

This base function cantainer allows the specification of parameters and therefore can call the encapsulated function without explicit parameters.

Template Parameters
RTDefines the return data type

Constructor & Destructor Documentation

◆ ~ParameterizedFunctionBase()

template<typename RT>
Ocean::ParameterizedFunctionBase< RT >::~ParameterizedFunctionBase ( )
virtual

Destructs a parameterized function object.

Member Function Documentation

◆ call()

◆ copy()

◆ parameter()

◆ parameters()

◆ setParameter()

◆ type()


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