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.

◆ ~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

◆ 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

Field Documentation

◆ myOperation

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

◆ myScale

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

◆ mySource

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

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