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.

References myOperation, myScale, and mySource.

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

Here is the caller graph for this function:

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

Implements ValueSource< R >.

Definition at line 50 of file FunctionBinding.h.

References myOperation, myScale, and mySource.

◆ makedoubleReturningCopy()

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

Implements ValueSource< R >.

Definition at line 58 of file FunctionBinding.h.

References myOperation, myScale, mySource, and ValueSource< R >::ValueSource().

◆ operator=()

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

invalidated assignment operator

References FunctionBinding().

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 copy(), FunctionBinding(), getValue(), and makedoubleReturningCopy().

◆ myScale

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

The scale to apply.

Definition at line 70 of file FunctionBinding.h.

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

◆ 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 copy(), FunctionBinding(), getValue(), and makedoubleReturningCopy().


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