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

#include <CastingFunctionBinding.h>

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

Public Types

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

Public Member Functions

 CastingFunctionBinding (T *source, Operation operation, const R scale=1)
ValueSource< R > * copy () const
getValue () const
ValueSource< double > * makedoubleReturningCopy () const
 ~CastingFunctionBinding ()
 Destructor.

Private Member Functions

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

Private Attributes

Operation myOperation
 The object's operation to perform.
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>
class CastingFunctionBinding< T, R, O >

Definition at line 35 of file CastingFunctionBinding.h.

Member Typedef Documentation

◆ Operation

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

Type of the function to execute.

Definition at line 38 of file CastingFunctionBinding.h.

Constructor & Destructor Documentation

◆ CastingFunctionBinding()

template<class T, typename R, typename O>
CastingFunctionBinding< T, R, O >::CastingFunctionBinding ( T * source,
Operation operation,
const R scale = 1 )
inline

Definition at line 40 of file CastingFunctionBinding.h.

References myOperation, myScale, and mySource.

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

Here is the caller graph for this function:

◆ ~CastingFunctionBinding()

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

Destructor.

Definition at line 46 of file CastingFunctionBinding.h.

Member Function Documentation

◆ copy()

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

◆ getValue()

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

Implements ValueSource< R >.

Definition at line 48 of file CastingFunctionBinding.h.

References myOperation, myScale, and mySource.

◆ makedoubleReturningCopy()

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

◆ operator=()

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

invalidated assignment operator

References CastingFunctionBinding().

Field Documentation

◆ myOperation

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

The object's operation to perform.

Definition at line 65 of file CastingFunctionBinding.h.

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

◆ myScale

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

The scale to apply.

Definition at line 68 of file CastingFunctionBinding.h.

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

◆ mySource

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

The object the action is directed to.

Definition at line 62 of file CastingFunctionBinding.h.

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


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