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

itk::ReceptorMemberCommand< 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::ReceptorMemberCommand:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef void(T::* TMemberFunctionPointer )(const EventObject &)
typedef ReceptorMemberCommand Self
typedef SmartPointer< SelfPointer

Public Methods

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

Static Public Methods

Pointer New ()

Protected Methods

 ReceptorMemberCommand ()
virtual ~ReceptorMemberCommand ()

Protected Attributes

T * m_This
TMemberFunctionPointer m_MemberFunction

Detailed Description

template<class T>
class itk::ReceptorMemberCommand< T >

Command subclass that calls a pointer to a member function.

\Class ReceptorMemberCommand

ReceptorMemberCommand calls a pointer to a member function with only and itk::EventObject as argument

Definition at line 152 of file itkCommand.h.


Member Typedef Documentation

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

Reimplemented from itk::Command.

Definition at line 161 of file itkCommand.h.

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

Standard class typedefs.

Reimplemented from itk::Command.

Definition at line 160 of file itkCommand.h.

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

pointer to a member function that takes a Object* and the event

Definition at line 157 of file itkCommand.h.

Referenced by itk::ReceptorMemberCommand< T >::Execute().


Constructor & Destructor Documentation

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

Definition at line 201 of file itkCommand.h.

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

Definition at line 202 of file itkCommand.h.

References itk::SimpleMemberCommand< T >::Self, and itk::SimpleMemberCommand< T >::TMemberFunctionPointer.


Member Function Documentation

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

Invoke the member function with a const object

Implements itk::Command.

Definition at line 189 of file itkCommand.h.

References itk::ReceptorMemberCommand< T >::m_MemberFunction, itk::ReceptorMemberCommand< T >::m_This, and itk::ReceptorMemberCommand< T >::TMemberFunctionPointer.

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

Invoke the member function.

Implements itk::Command.

Definition at line 179 of file itkCommand.h.

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

Run-time type information (and related methods).

Reimplemented from itk::Command.

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

Method for creation through the object factory.

Reimplemented from itk::Object.

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

Set the callback function along with the object that it will be invoked on.

Definition at line 171 of file itkCommand.h.


Member Data Documentation

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

Definition at line 200 of file itkCommand.h.

Referenced by itk::ReceptorMemberCommand< T >::Execute().

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

Definition at line 199 of file itkCommand.h.

Referenced by itk::ReceptorMemberCommand< T >::Execute().


The documentation for this class was generated from the following file:
Generated at Wed Mar 12 01:20:31 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000