#include <freEvents.h>


Public Types | |
| typedef bool(T::* | CallEvent )(CallbackType callbackID, CallbackFlagType flag, void *pData, void *pSender, long threadID) |
| typedef itk::SmartPointer < CallbackEvent< T > > | Pointer |
Public Member Functions | |
| virtual const char * | GetNameOfClass () const |
| virtual bool | Execute (CallbackType callbackID, CallbackFlagType flag, void *pData, void *pSender, long threadID=0) |
Static Public Member Functions | |
| static Pointer | New (T *pObject, CallEvent pE) |
Protected Member Functions | |
| CallbackEvent (T *pObject, CallEvent pCE) | |
Private Attributes | |
| T * | m_Object |
| CallEvent | m_CallEvent |
Other than the EventBase this object is used by a class to pass a member function as a function pointer to allow a callback. The template T is the class which offers the function pointer. (This differentiation between type based Event and untyped EventBase is needed, because the call of member function always passes a hidden pointer (this-pointer), unlike a call of aglobal function).
This Event is used for callback based data retrieval or other situations where a part of f.r.e.e. should get the possibility to interact or make a request.
Definition at line 226 of file freEvents.h.
| typedef bool(T::* FREE::CallbackEvent< T >::CallEvent)(CallbackType callbackID, CallbackFlagType flag, void *pData, void *pSender, long threadID) |
| typedef itk::SmartPointer<CallbackEvent<T> > FREE::CallbackEvent< T >::Pointer |
| FREE::CallbackEvent< T >::CallbackEvent | ( | T * | pObject, | |
| CallEvent | pCE | |||
| ) | [inline, protected] |
Definition at line 241 of file freEvents.h.
References FREE::CallbackEvent< T >::m_CallEvent, and FREE::CallbackEvent< T >::m_Object.
| static Pointer FREE::CallbackEvent< T >::New | ( | T * | pObject, | |
| CallEvent | pE | |||
| ) | [inline, static] |
Definition at line 233 of file freEvents.h.
| virtual const char* FREE::CallbackEvent< T >::GetNameOfClass | ( | ) | const [inline, virtual] |
| virtual bool FREE::CallbackEvent< T >::Execute | ( | CallbackType | callbackID, | |
| CallbackFlagType | flag, | |||
| void * | pData, | |||
| void * | pSender, | |||
| long | threadID = 0 | |||
| ) | [inline, virtual] |
This Event is used for callback based data retrieval or other situations where a part of f.r.e.e. should get the possibility to interact or make a request.
| [in] | callbackID | Defines the callback type and so the meaning of flag and pData. Typical callbacks of f.r.e.e. are defined in freConstCallbackIDs.h, where the meaning of flag and pData are also explained. |
| [in] | flag | Possibility of an additional specification of the callback. Meaning depends on the callbackID. |
| [in] | pData | Void pointer to other data structures may be passed or wanted with the callback. Meaning and use depends on the callbackID. |
| [in] | pSender | Pointer to the object who called the event. |
| [in] | threadID | ID of the thread executing the event. By default this value is 0. This ID is not unique over the complete system, it should only be assumed that it is unique in the context of the sender. |
Reimplemented from FREE::CallbackEventBase.
Definition at line 263 of file freEvents.h.
References FREE::CallbackEvent< T >::m_CallEvent, and FREE::CallbackEvent< T >::m_Object.
T* FREE::CallbackEvent< T >::m_Object [private] |
Definition at line 234 of file freEvents.h.
Referenced by FREE::CallbackEvent< T >::CallbackEvent(), and FREE::CallbackEvent< T >::Execute().
CallEvent FREE::CallbackEvent< T >::m_CallEvent [private] |
Reimplemented from FREE::CallbackEventBase.
Definition at line 238 of file freEvents.h.
Referenced by FREE::CallbackEvent< T >::CallbackEvent(), and FREE::CallbackEvent< T >::Execute().
1.5.3 written by Dimitri van Heesch,
© 1997-2000