Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
CastingFunctionBinding_Param< T, R, O, P > Class Template Reference

#include <CastingFunctionBinding_Param.h>

Inheritance diagram for CastingFunctionBinding_Param< T, R, O, P >:
[legend]
Collaboration diagram for CastingFunctionBinding_Param< T, R, O, P >:
[legend]

Public Types

typedef O(T::* Operation) (P) const
 Type of the function to execute.

Public Member Functions

 CastingFunctionBinding_Param (T *source, Operation operation, P param, const R scale=1.0)
ValueSource< R > * copy () const
getValue () const
ValueSource< double > * makedoubleReturningCopy () const
 ~CastingFunctionBinding_Param ()
 Destructor.

Private Member Functions

CastingFunctionBinding_Param< T, R, O, P > & operator= (const CastingFunctionBinding_Param< T, R, O, P > &)
 invalidated assignment operator

Private Attributes

Operation myOperation
 The object's operation to perform.
const P myParam
 The parameter to apply to the operation.
const R myScale
 The scale to apply.
T * mySource
 The object the action is directed to.

Detailed Description

template<class T, typename R, typename O, typename P>
class CastingFunctionBinding_Param< T, R, O, P >

Definition at line 35 of file CastingFunctionBinding_Param.h.

Member Typedef Documentation

◆ Operation

template<class T, typename R, typename O, typename P>
typedef O(T::* CastingFunctionBinding_Param< T, R, O, P >::Operation) (P) const

Type of the function to execute.

Definition at line 38 of file CastingFunctionBinding_Param.h.

Constructor & Destructor Documentation

◆ CastingFunctionBinding_Param()

template<class T, typename R, typename O, typename P>
CastingFunctionBinding_Param< T, R, O, P >::CastingFunctionBinding_Param ( T * source,
Operation operation,
P param,
const R scale = 1.0 )
inline

Definition at line 40 of file CastingFunctionBinding_Param.h.

References myOperation, myParam, myScale, and mySource.

Referenced by copy(), makedoubleReturningCopy(), and operator=().

Here is the caller graph for this function:

◆ ~CastingFunctionBinding_Param()

template<class T, typename R, typename O, typename P>
CastingFunctionBinding_Param< T, R, O, P >::~CastingFunctionBinding_Param ( )
inline

Destructor.

Definition at line 48 of file CastingFunctionBinding_Param.h.

Member Function Documentation

◆ copy()

template<class T, typename R, typename O, typename P>
ValueSource< R > * CastingFunctionBinding_Param< T, R, O, P >::copy ( ) const
inlinevirtual

◆ getValue()

template<class T, typename R, typename O, typename P>
R CastingFunctionBinding_Param< T, R, O, P >::getValue ( ) const
inlinevirtual

Implements ValueSource< R >.

Definition at line 50 of file CastingFunctionBinding_Param.h.

References myOperation, myParam, myScale, and mySource.

◆ makedoubleReturningCopy()

template<class T, typename R, typename O, typename P>
ValueSource< double > * CastingFunctionBinding_Param< T, R, O, P >::makedoubleReturningCopy ( ) const
inlinevirtual

◆ operator=()

template<class T, typename R, typename O, typename P>
CastingFunctionBinding_Param< T, R, O, P > & CastingFunctionBinding_Param< T, R, O, P >::operator= ( const CastingFunctionBinding_Param< T, R, O, P > & )
private

invalidated assignment operator

References CastingFunctionBinding_Param().

Field Documentation

◆ myOperation

template<class T, typename R, typename O, typename P>
Operation CastingFunctionBinding_Param< T, R, O, P >::myOperation
private

The object's operation to perform.

Definition at line 67 of file CastingFunctionBinding_Param.h.

Referenced by CastingFunctionBinding_Param(), copy(), getValue(), and makedoubleReturningCopy().

◆ myParam

template<class T, typename R, typename O, typename P>
const P CastingFunctionBinding_Param< T, R, O, P >::myParam
private

The parameter to apply to the operation.

Definition at line 73 of file CastingFunctionBinding_Param.h.

Referenced by CastingFunctionBinding_Param(), copy(), getValue(), and makedoubleReturningCopy().

◆ myScale

template<class T, typename R, typename O, typename P>
const R CastingFunctionBinding_Param< T, R, O, P >::myScale
private

The scale to apply.

Definition at line 70 of file CastingFunctionBinding_Param.h.

Referenced by CastingFunctionBinding_Param(), copy(), getValue(), and makedoubleReturningCopy().

◆ mySource

template<class T, typename R, typename O, typename P>
T* CastingFunctionBinding_Param< T, R, O, P >::mySource
private

The object the action is directed to.

Definition at line 64 of file CastingFunctionBinding_Param.h.

Referenced by CastingFunctionBinding_Param(), copy(), getValue(), and makedoubleReturningCopy().


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