#include <cllbklst.h>
Public Methods | |
| CallbackList () | |
| Constructor. More... | |
| virtual | ~CallbackList () |
| Destructor. More... | |
| const CallbackBase & | addCallback (const CallbackBase &newCallback) |
| Add a new callback to the list. More... | |
| void | removeCallback (const CallbackBase &oldCallback) |
| Remove a call back from the list. More... | |
| void | removeTarget (const void *target) |
| Remove all callbacks with a given target object. More... | |
| virtual void | invoke (const void *invocationData=0) |
| Invoke all callbacks in list. More... | |
Private Types | |
| typedef TIListImp< CallbackBase > | List |
| Callback list type. More... | |
| typedef TIListIteratorImp< CallbackBase > | ListIterator |
| Callback list iterator type. More... | |
Private Attributes | |
| List * | myList |
| Callback list. More... | |
Definition at line 52 of file cllbklst.h.
|
|
Callback list type.
Definition at line 105 of file cllbklst.h. |
|
|
Callback list iterator type.
Definition at line 109 of file cllbklst.h. Referenced by invoke, removeCallback, and removeTarget. |
|
|
Constructor.
Definition at line 50 of file cllbklst.cpp. References _USEMYTRACE_. |
|
|
Destructor.
Definition at line 59 of file cllbklst.cpp. References _USEMYTRACE_, and myList. |
|
|
Add a new callback to the list.
Definition at line 74 of file cllbklst.cpp. References _USEMYTRACE_, and myList. |
|
|
Invoke all callbacks in list.
Definition at line 139 of file cllbklst.cpp. References _USEMYTRACE_, ListIterator, and myList. |
|
|
Remove a call back from the list.
Definition at line 86 of file cllbklst.cpp. References _USEMYTRACE_, ListIterator, and myList. Referenced by removeTarget. |
|
|
Remove all callbacks with a given target object.
Definition at line 112 of file cllbklst.cpp. References _USEMYTRACE_, ListIterator, myList, and removeCallback. |
|
|
Callback list.
Definition at line 114 of file cllbklst.h. Referenced by addCallback, invoke, removeCallback, removeTarget, and ~CallbackList. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002