Eclipse SUMO - Simulation of Urban MObility
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. More...
 

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. More...
 

Private Member Functions

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

Private Attributes

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

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,
param,
const R  scale = 1.0 
)
inline

Definition at line 40 of file CastingFunctionBinding_Param.h.

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

◆ getValue()

◆ 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

Field Documentation

◆ myOperation

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

◆ myParam

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

◆ myScale

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

◆ mySource

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

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