#include <FunctionBinding.h>

Definition at line 44 of file FunctionBinding.h.
Public Types | |
| typedef R(T::* | Operation )() const |
| Type of the function to execute. | |
Public Member Functions | |
| ValueSource< R > * | copy () const |
| FunctionBinding (T *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. | |
| typedef R(T::* FunctionBinding< T, R >::Operation)() const |
Type of the function to execute.
| FunctionBinding< T, R >::FunctionBinding | ( | T * | source, | |
| Operation | operation | |||
| ) | [inline] |
Definition at line 49 of file FunctionBinding.h.
00049 : 00050 mySource(source), 00051 myOperation(operation) {}
| FunctionBinding< T, R >::~FunctionBinding | ( | ) | [inline] |
| ValueSource<R>* FunctionBinding< T, R >::copy | ( | ) | const [inline, virtual] |
Implements ValueSource< R >.
Definition at line 60 of file FunctionBinding.h.
References FunctionBinding< T, R >::myOperation, and FunctionBinding< T, R >::mySource.
00060 { 00061 return new FunctionBinding<T, R>(mySource, myOperation); 00062 }
| R FunctionBinding< T, R >::getValue | ( | ) | const [inline, virtual] |
Implements ValueSource< R >.
Definition at line 56 of file FunctionBinding.h.
References FunctionBinding< T, R >::myOperation, and FunctionBinding< T, R >::mySource.
00056 { 00057 return (mySource->*myOperation)(); 00058 }
| ValueSource<SUMOReal>* FunctionBinding< T, R >::makeSUMORealReturningCopy | ( | ) | const [inline, virtual] |
Implements ValueSource< R >.
Definition at line 64 of file FunctionBinding.h.
References FunctionBinding< T, R >::myOperation, and FunctionBinding< T, R >::mySource.
00064 { 00065 return new CastingFunctionBinding<T, SUMOReal, R>(mySource, myOperation); 00066 }
Operation FunctionBinding< T, R >::myOperation [private] |
The object's operation to perform.
Definition at line 73 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 70 of file FunctionBinding.h.
Referenced by FunctionBinding< T, R >::copy(), FunctionBinding< T, R >::getValue(), and FunctionBinding< T, R >::makeSUMORealReturningCopy().
1.5.6