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

#include <FunctionBinding.h>

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

Public Types

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

Public Member Functions

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

Private Member Functions

FunctionBinding< T, R > & operator= (const FunctionBinding< T, R > &)
 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>
class FunctionBinding< T, R >

Definition at line 37 of file FunctionBinding.h.

Member Typedef Documentation

◆ Operation

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

Type of the function to execute.

Definition at line 40 of file FunctionBinding.h.

Constructor & Destructor Documentation

◆ FunctionBinding()

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

Definition at line 42 of file FunctionBinding.h.

◆ ~FunctionBinding()

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

Destructor.

Definition at line 48 of file FunctionBinding.h.

Member Function Documentation

◆ copy()

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

◆ getValue()

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

◆ makedoubleReturningCopy()

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

◆ operator=()

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

invalidated assignment operator

Field Documentation

◆ myOperation

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

The object's operation to perform.

Definition at line 67 of file FunctionBinding.h.

Referenced by FunctionBinding< T, R >::copy(), FunctionBinding< T, R >::getValue(), and FunctionBinding< T, R >::makedoubleReturningCopy().

◆ myScale

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

◆ mySource

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

The object the action is directed to.

Definition at line 64 of file FunctionBinding.h.

Referenced by FunctionBinding< T, R >::copy(), FunctionBinding< T, R >::getValue(), and FunctionBinding< T, R >::makedoubleReturningCopy().


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