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 * GetNameOfClass () 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 81 of file itkCommand.h.


Member Typedef Documentation

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

Reimplemented from itk::Command.

Definition at line 92 of file itkCommand.h.

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

Standard class typedefs.

Reimplemented from itk::Command.

Definition at line 91 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 87 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 86 of file itkCommand.h.


Constructor & Destructor Documentation

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

Definition at line 140 of file itkCommand.h.

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

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

Definition at line 141 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 127 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 117 of file itkCommand.h.

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

template<class T>
virtual const char* itk::MemberCommand< T >::GetNameOfClass  )  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 108 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 102 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 139 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 138 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 137 of file itkCommand.h.

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


The documentation for this class was generated from the following file:
Generated at Thu May 25 01:45:53 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000