GDCM
2.4.5
|
Command subclass that calls a pointer to a member function. More...
#include <gdcmCommand.h>
Public Types | |
typedef SimpleMemberCommand | Self |
typedef void(T::* | TMemberFunctionPointer) () |
Public Member Functions | |
virtual void | Execute (Subject *, const Event &) |
virtual void | Execute (const Subject *, const Event &) |
void | SetCallbackFunction (T *object, TMemberFunctionPointer memberFunction) |
![]() | |
Subject () | |
~Subject () | |
unsigned long | AddObserver (const Event &event, Command *) |
unsigned long | AddObserver (const Event &event, Command *) const |
Command * | GetCommand (unsigned long tag) |
bool | HasObserver (const Event &event) const |
void | InvokeEvent (const Event &) |
void | InvokeEvent (const Event &) const |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) |
![]() | |
Object () | |
Object (const Object &) | |
Special requirement for copy/cstor, assignment operator. More... | |
virtual | ~Object () |
void | operator= (const Object &) |
virtual void | Print (std::ostream &) const |
Static Public Member Functions | |
static SmartPointer< SimpleMemberCommand > | New () |
Protected Member Functions | |
SimpleMemberCommand () | |
virtual | ~SimpleMemberCommand () |
![]() | |
Command () | |
~Command () | |
![]() | |
void | Register () |
void | UnRegister () |
Protected Attributes | |
TMemberFunctionPointer | m_MemberFunction |
T * | m_This |
Command subclass that calls a pointer to a member function.
SimpleMemberCommand calls a pointer to a member function with no arguments.
typedef SimpleMemberCommand gdcm::SimpleMemberCommand< T >::Self |
Standard class typedefs.
typedef void(T::* gdcm::SimpleMemberCommand< T >::TMemberFunctionPointer) () |
A method callback.
|
inlineprotected |
Referenced by gdcm::SimpleMemberCommand< T >::New().
|
inlineprotectedvirtual |
|
inlinevirtual |
Invoke the callback function.
Implements gdcm::Command.
References gdcm::SimpleMemberCommand< T >::m_MemberFunction.
|
inlinevirtual |
Abstract method that defines the action to be taken by the command. This variant is expected to be used when requests comes from a const Object
Implements gdcm::Command.
References gdcm::SimpleMemberCommand< T >::m_MemberFunction.
|
inlinestatic |
Run-time type information (and related methods). Method for creation through the object factory.
References gdcm::SimpleMemberCommand< T >::SimpleMemberCommand().
|
inline |
Specify the callback function.
References gdcm::SimpleMemberCommand< T >::m_MemberFunction, and gdcm::SimpleMemberCommand< T >::m_This.
|
protected |
|
protected |
Referenced by gdcm::SimpleMemberCommand< T >::SetCallbackFunction().