|
GDCM
2.2.3
|
Command subclass that calls a pointer to a member function. More...
#include <gdcmCommand.h>


Public Types | |
| typedef MemberCommand | Self |
| typedef void(T::* | TConstMemberFunctionPointer )(const Subject *, const Event &) |
| typedef void(T::* | TMemberFunctionPointer )(Subject *, const Event &) |
Public Member Functions | |
| virtual void | Execute (Subject *caller, const Event &event) |
| virtual void | Execute (const Subject *caller, const Event &event) |
| void | SetCallbackFunction (T *object, TMemberFunctionPointer memberFunction) |
| void | SetCallbackFunction (T *object, TConstMemberFunctionPointer memberFunction) |
Static Public Member Functions | |
| static SmartPointer < MemberCommand > | New () |
Protected Member Functions | |
| MemberCommand () | |
| virtual | ~MemberCommand () |
Protected Attributes | |
| TConstMemberFunctionPointer | m_ConstMemberFunction |
| TMemberFunctionPointer | m_MemberFunction |
| T * | m_This |
Command subclass that calls a pointer to a member function.
MemberCommand calls a pointer to a member function with the same arguments as Execute on Command.
| typedef MemberCommand gdcm::MemberCommand< T >::Self |
Standard class typedefs.
| typedef void(T::* gdcm::MemberCommand< T >::TConstMemberFunctionPointer)(const Subject *, const Event &) |
| typedef void(T::* gdcm::MemberCommand< T >::TMemberFunctionPointer)(Subject *, const Event &) |
pointer to a member function that takes a Subject* and the event
| gdcm::MemberCommand< T >::MemberCommand | ( | ) | [inline, protected] |
Referenced by gdcm::MemberCommand< T >::New().
| virtual gdcm::MemberCommand< T >::~MemberCommand | ( | ) | [inline, protected, virtual] |
| virtual void gdcm::MemberCommand< T >::Execute | ( | Subject * | caller, |
| const Event & | event | ||
| ) | [inline, virtual] |
Invoke the member function.
Implements gdcm::Command.
References gdcm::MemberCommand< T >::m_MemberFunction.
| virtual void gdcm::MemberCommand< T >::Execute | ( | const Subject * | caller, |
| const Event & | event | ||
| ) | [inline, virtual] |
Invoke the member function with a const object.
Implements gdcm::Command.
References gdcm::MemberCommand< T >::m_ConstMemberFunction.
| static SmartPointer<MemberCommand> gdcm::MemberCommand< T >::New | ( | ) | [inline, static] |
Method for creation through the object factory.
References gdcm::MemberCommand< T >::MemberCommand().
| void gdcm::MemberCommand< T >::SetCallbackFunction | ( | T * | object, |
| TMemberFunctionPointer | memberFunction | ||
| ) | [inline] |
Run-time type information (and related methods). Set the callback function along with the object that it will be invoked on.
References gdcm::MemberCommand< T >::m_MemberFunction, and gdcm::MemberCommand< T >::m_This.
| void gdcm::MemberCommand< T >::SetCallbackFunction | ( | T * | object, |
| TConstMemberFunctionPointer | memberFunction | ||
| ) | [inline] |
TConstMemberFunctionPointer gdcm::MemberCommand< T >::m_ConstMemberFunction [protected] |
Referenced by gdcm::MemberCommand< T >::Execute(), and gdcm::MemberCommand< T >::SetCallbackFunction().
TMemberFunctionPointer gdcm::MemberCommand< T >::m_MemberFunction [protected] |
Referenced by gdcm::MemberCommand< T >::Execute(), and gdcm::MemberCommand< T >::SetCallbackFunction().
T* gdcm::MemberCommand< T >::m_This [protected] |
Referenced by gdcm::MemberCommand< T >::SetCallbackFunction().
1.7.6.1