SUMO - Simulation of Urban MObility
|
#include <CastingFunctionBinding.h>
Public Types | |
typedef O(T::* | Operation )() const |
Type of the function to execute. | |
Public Member Functions | |
CastingFunctionBinding (T *source, Operation operation) | |
ValueSource< R > * | copy () const |
R | getValue () const |
ValueSource< SUMOReal > * | makeSUMORealReturningCopy () const |
~CastingFunctionBinding () | |
Destructor. | |
Private Attributes | |
Operation | myOperation |
The object's operation to perform. | |
T * | mySource |
The object the action is directed to. |
Definition at line 45 of file CastingFunctionBinding.h.
typedef O(T::* CastingFunctionBinding< T, R, O >::Operation)() const |
Type of the function to execute.
Definition at line 48 of file CastingFunctionBinding.h.
CastingFunctionBinding< T, R, O >::CastingFunctionBinding | ( | T * | source, |
Operation | operation | ||
) | [inline] |
Definition at line 50 of file CastingFunctionBinding.h.
CastingFunctionBinding< T, R, O >::~CastingFunctionBinding | ( | ) | [inline] |
Destructor.
Definition at line 55 of file CastingFunctionBinding.h.
ValueSource<R>* CastingFunctionBinding< T, R, O >::copy | ( | ) | const [inline, virtual] |
Implements ValueSource< R >.
Definition at line 61 of file CastingFunctionBinding.h.
References CastingFunctionBinding< T, R, O >::myOperation, and CastingFunctionBinding< T, R, O >::mySource.
R CastingFunctionBinding< T, R, O >::getValue | ( | ) | const [inline, virtual] |
Implements ValueSource< R >.
Definition at line 57 of file CastingFunctionBinding.h.
References CastingFunctionBinding< T, R, O >::myOperation, and CastingFunctionBinding< T, R, O >::mySource.
ValueSource<SUMOReal>* CastingFunctionBinding< T, R, O >::makeSUMORealReturningCopy | ( | ) | const [inline, virtual] |
Implements ValueSource< R >.
Definition at line 65 of file CastingFunctionBinding.h.
References CastingFunctionBinding< T, R, O >::myOperation, and CastingFunctionBinding< T, R, O >::mySource.
Operation CastingFunctionBinding< T, R, O >::myOperation [private] |
The object's operation to perform.
Definition at line 76 of file CastingFunctionBinding.h.
Referenced by CastingFunctionBinding< T, R, O >::copy(), CastingFunctionBinding< T, R, O >::getValue(), and CastingFunctionBinding< T, R, O >::makeSUMORealReturningCopy().
T* CastingFunctionBinding< T, R, O >::mySource [private] |
The object the action is directed to.
Definition at line 73 of file CastingFunctionBinding.h.
Referenced by CastingFunctionBinding< T, R, O >::copy(), CastingFunctionBinding< T, R, O >::getValue(), and CastingFunctionBinding< T, R, O >::makeSUMORealReturningCopy().