SUMO - Simulation of Urban MObility
|
#include <FunctionBinding.h>
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) | |
R | getValue () const |
ValueSource< SUMOReal > * | makeSUMORealReturningCopy () const |
~FunctionBinding () | |
Destructor. | |
Private Attributes | |
Operation | myOperation |
The object's operation to perform. | |
T * | mySource |
The object the action is directed to. |
Definition at line 48 of file FunctionBinding.h.
typedef R(T::* FunctionBinding< T, R >::Operation)() const |
Type of the function to execute.
Definition at line 51 of file FunctionBinding.h.
FunctionBinding< T, R >::FunctionBinding | ( | T *const | source, |
Operation | operation | ||
) | [inline] |
Definition at line 53 of file FunctionBinding.h.
FunctionBinding< T, R >::~FunctionBinding | ( | ) | [inline] |
Destructor.
Definition at line 58 of file FunctionBinding.h.
ValueSource<R>* FunctionBinding< T, R >::copy | ( | ) | const [inline, virtual] |
Implements ValueSource< R >.
Definition at line 64 of file FunctionBinding.h.
References FunctionBinding< T, R >::myOperation, and FunctionBinding< T, R >::mySource.
R FunctionBinding< T, R >::getValue | ( | ) | const [inline, virtual] |
Implements ValueSource< R >.
Definition at line 60 of file FunctionBinding.h.
References FunctionBinding< T, R >::myOperation, and FunctionBinding< T, R >::mySource.
ValueSource<SUMOReal>* FunctionBinding< T, R >::makeSUMORealReturningCopy | ( | ) | const [inline, virtual] |
Implements ValueSource< R >.
Definition at line 68 of file FunctionBinding.h.
References FunctionBinding< T, R >::myOperation, and FunctionBinding< T, R >::mySource.
Operation FunctionBinding< T, R >::myOperation [private] |
The object's operation to perform.
Definition at line 77 of file FunctionBinding.h.
Referenced by FunctionBinding< T, R >::copy(), FunctionBinding< T, R >::getValue(), and FunctionBinding< T, R >::makeSUMORealReturningCopy().
T* FunctionBinding< T, R >::mySource [private] |
The object the action is directed to.
Definition at line 74 of file FunctionBinding.h.
Referenced by FunctionBinding< T, R >::copy(), FunctionBinding< T, R >::getValue(), and FunctionBinding< T, R >::makeSUMORealReturningCopy().