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

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

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef void(T::* TMemberFunctionPointer )()
typedef SimpleMemberCommand Self
typedef SmartPointer< SelfPointer

Public Methods

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

Static Public Methods

Pointer New ()

Protected Methods

 SimpleMemberCommand ()
virtual ~SimpleMemberCommand ()

Protected Attributes

T * m_This
TMemberFunctionPointer m_MemberFunction

Detailed Description

template<class T>
class itk::SimpleMemberCommand< T >

Command subclass that calls a pointer to a member function.

\Class SimpleMemberCommand

SimpleMemberCommand calls a pointer to a member function with no arguments.

Definition at line 220 of file itkCommand.h.


Member Typedef Documentation

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

Reimplemented from itk::Command.

Definition at line 229 of file itkCommand.h.

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

Standard class typedefs.

Reimplemented from itk::Command.

Definition at line 228 of file itkCommand.h.

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

template<class T>
typedef void(T::* itk::SimpleMemberCommand< T >::TMemberFunctionPointer)()
 

A method callback.

Definition at line 225 of file itkCommand.h.

Referenced by itk::SimpleMemberCommand< T >::Execute(), and itk::ReceptorMemberCommand< T >::~ReceptorMemberCommand().


Constructor & Destructor Documentation

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

Definition at line 265 of file itkCommand.h.

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

Definition at line 266 of file itkCommand.h.


Member Function Documentation

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

Invoke the callback function.

Implements itk::Command.

Definition at line 253 of file itkCommand.h.

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

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

Invoke the callback function.

Implements itk::Command.

Definition at line 246 of file itkCommand.h.

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

Run-time type information (and related methods).

Reimplemented from itk::Command.

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

Method for creation through the object factory.

Reimplemented from itk::Object.

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

Specify the callback function.

Definition at line 238 of file itkCommand.h.


Member Data Documentation

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

Definition at line 264 of file itkCommand.h.

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

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

Definition at line 263 of file itkCommand.h.

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


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