Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::MemberCommand< T > Class Template Reference
[ITK System Objects]

Command subclass that calls a pointer to a member function. More...

#include <itkCommand.h>

Inheritance diagram for itk::MemberCommand< T >:

Inheritance graph
[legend]
Collaboration diagram for itk::MemberCommand< T >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef MemberCommand Self
typedef SmartPointer< SelfPointer
typedef void(T::* TMemberFunctionPointer )(Object *, const EventObject &)
typedef void(T::* TConstMemberFunctionPointer )(const Object *, const EventObject &)

Public Member Functions

virtual const char * GetClassName () const
void SetCallbackFunction (T *object, TMemberFunctionPointer memberFunction)
void SetCallbackFunction (T *object, TConstMemberFunctionPointer memberFunction)
virtual void Execute (Object *caller, const EventObject &event)
virtual void Execute (const Object *caller, const EventObject &event)

Static Public Member Functions

Pointer New ()

Protected Member Functions

 MemberCommand ()
virtual ~MemberCommand ()

Protected Attributes

T * m_This
TMemberFunctionPointer m_MemberFunction
TConstMemberFunctionPointer m_ConstMemberFunction

Detailed Description

template<class T>
class itk::MemberCommand< T >

Command subclass that calls a pointer to a member function.

MemberCommand

MemberCommand calls a pointer to a member function with the same arguments as Execute on Command.

Definition at line 74 of file itkCommand.h.


Member Typedef Documentation

template<class T>
typedef SmartPointer<Self> itk::MemberCommand< T >::Pointer
 

Reimplemented from itk::Command.

Definition at line 85 of file itkCommand.h.

template<class T>
typedef MemberCommand itk::MemberCommand< T >::Self
 

Standard class typedefs.

Reimplemented from itk::Command.

Definition at line 84 of file itkCommand.h.

Referenced by itk::MemberCommand< T >::MemberCommand().

template<class T>
typedef void(T::* itk::MemberCommand< T >::TConstMemberFunctionPointer)(const Object *, const EventObject &)
 

pointer to a member function that takes a Object* and the event Definition at line 80 of file itkCommand.h.

template<class T>
typedef void(T::* itk::MemberCommand< T >::TMemberFunctionPointer)(Object *, const EventObject &)
 

pointer to a member function that takes a Object* and the event Definition at line 79 of file itkCommand.h.


Constructor & Destructor Documentation

template<class T>
itk::MemberCommand< T >::MemberCommand  )  [inline, protected]
 

Definition at line 133 of file itkCommand.h.

References itk::MemberCommand< T >::Self.

template<class T>
virtual itk::MemberCommand< T >::~MemberCommand  )  [inline, protected, virtual]
 

Definition at line 134 of file itkCommand.h.


Member Function Documentation

template<class T>
virtual void itk::MemberCommand< T >::Execute const Object caller,
const EventObject event
[inline, virtual]
 

Invoke the member function with a const object.

Implements itk::Command.

Definition at line 120 of file itkCommand.h.

References itk::MemberCommand< T >::m_ConstMemberFunction.

template<class T>
virtual void itk::MemberCommand< T >::Execute Object caller,
const EventObject event
[inline, virtual]
 

Invoke the member function.

Implements itk::Command.

Definition at line 110 of file itkCommand.h.

References itk::MemberCommand< T >::m_MemberFunction.

template<class T>
virtual const char* itk::MemberCommand< T >::GetClassName  )  const [virtual]
 

Run-time type information (and related methods).

Reimplemented from itk::Command.

template<class T>
Pointer itk::MemberCommand< T >::New  )  [static]
 

Method for creation through the object factory.

Reimplemented from itk::Object.

template<class T>
void itk::MemberCommand< T >::SetCallbackFunction T *  object,
TConstMemberFunctionPointer  memberFunction
[inline]
 

Set the callback function along with the object that it will be invoked on. Definition at line 101 of file itkCommand.h.

References itk::MemberCommand< T >::m_ConstMemberFunction, and itk::MemberCommand< T >::m_This.

template<class T>
void itk::MemberCommand< T >::SetCallbackFunction T *  object,
TMemberFunctionPointer  memberFunction
[inline]
 

Set the callback function along with the object that it will be invoked on. Definition at line 95 of file itkCommand.h.

References itk::MemberCommand< T >::m_MemberFunction, and itk::MemberCommand< T >::m_This.


Member Data Documentation

template<class T>
TConstMemberFunctionPointer itk::MemberCommand< T >::m_ConstMemberFunction [protected]
 

Definition at line 132 of file itkCommand.h.

Referenced by itk::MemberCommand< T >::Execute(), and itk::MemberCommand< T >::SetCallbackFunction().

template<class T>
TMemberFunctionPointer itk::MemberCommand< T >::m_MemberFunction [protected]
 

Definition at line 131 of file itkCommand.h.

Referenced by itk::MemberCommand< T >::Execute(), and itk::MemberCommand< T >::SetCallbackFunction().

template<class T>
T* itk::MemberCommand< T >::m_This [protected]
 

Definition at line 130 of file itkCommand.h.

Referenced by itk::MemberCommand< T >::SetCallbackFunction().


The documentation for this class was generated from the following file:
Generated at Sun Apr 1 02:59:40 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000