#include <CastingFunctionBinding.h>

Definition at line 42 of file 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. | |
| typedef O(T::* CastingFunctionBinding< T, R, O >::Operation)() const |
Type of the function to execute.
| CastingFunctionBinding< T, R, O >::CastingFunctionBinding | ( | T * | source, | |
| Operation | operation | |||
| ) | [inline] |
Definition at line 47 of file CastingFunctionBinding.h.
00047 : 00048 mySource(source), 00049 myOperation(operation) {}
| CastingFunctionBinding< T, R, O >::~CastingFunctionBinding | ( | ) | [inline] |
| ValueSource<R>* CastingFunctionBinding< T, R, O >::copy | ( | ) | const [inline, virtual] |
Implements ValueSource< R >.
Definition at line 58 of file CastingFunctionBinding.h.
References CastingFunctionBinding< T, R, O >::myOperation, and CastingFunctionBinding< T, R, O >::mySource.
00058 { 00059 return new CastingFunctionBinding<T, R, O>(mySource, myOperation); 00060 }
| R CastingFunctionBinding< T, R, O >::getValue | ( | ) | const [inline, virtual] |
Implements ValueSource< R >.
Definition at line 54 of file CastingFunctionBinding.h.
References CastingFunctionBinding< T, R, O >::myOperation, and CastingFunctionBinding< T, R, O >::mySource.
00054 { 00055 return (R)(mySource->*myOperation)(); 00056 }
| ValueSource<SUMOReal>* CastingFunctionBinding< T, R, O >::makeSUMORealReturningCopy | ( | ) | const [inline, virtual] |
Implements ValueSource< R >.
Definition at line 62 of file CastingFunctionBinding.h.
References CastingFunctionBinding< T, R, O >::myOperation, and CastingFunctionBinding< T, R, O >::mySource.
00062 { 00063 return new CastingFunctionBinding<T, SUMOReal, O>(mySource, myOperation); 00064 }
Operation CastingFunctionBinding< T, R, O >::myOperation [private] |
The object's operation to perform.
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().
T* CastingFunctionBinding< T, R, O >::mySource [private] |
The object the action is directed to.
Definition at line 70 of file CastingFunctionBinding.h.
Referenced by CastingFunctionBinding< T, R, O >::copy(), CastingFunctionBinding< T, R, O >::getValue(), and CastingFunctionBinding< T, R, O >::makeSUMORealReturningCopy().
1.5.6