#include <lleventemitter.h>
Collaboration diagram for eventEmitter< T >:
Public Types | |
typedef T::EventType | EventType |
typedef std::list< T * > | ObserverContainer |
typedef void(T::*) | observerMethod (const EventType &) |
Public Member Functions | |
eventEmitter () | |
~eventEmitter () | |
BOOL | addObserver (T *observerIn) |
BOOL | remObserver (T *observerIn) |
void | update (observerMethod method, const EventType &msgIn) |
Protected Attributes | |
ObserverContainer | observers |
Definition at line 48 of file lleventemitter.h.
typedef T::EventType eventEmitter< T >::EventType |
Definition at line 51 of file lleventemitter.h.
typedef std::list< T* > eventEmitter< T >::ObserverContainer |
Definition at line 52 of file lleventemitter.h.
typedef void( T::*) eventEmitter< T >::observerMethod(const EventType &) |
Definition at line 53 of file lleventemitter.h.
eventEmitter< T >::eventEmitter | ( | ) | [inline] |
Definition at line 59 of file lleventemitter.h.
eventEmitter< T >::~eventEmitter | ( | ) | [inline] |
Definition at line 61 of file lleventemitter.h.
BOOL eventEmitter< T >::addObserver | ( | T * | observerIn | ) | [inline] |
BOOL eventEmitter< T >::remObserver | ( | T * | observerIn | ) | [inline] |
Definition at line 82 of file lleventemitter.h.
References FALSE, eventEmitter< T >::observers, and TRUE.
void eventEmitter< T >::update | ( | observerMethod | method, | |
const EventType & | msgIn | |||
) | [inline] |
ObserverContainer eventEmitter< T >::observers [protected] |
Definition at line 56 of file lleventemitter.h.
Referenced by eventEmitter< T >::addObserver(), eventEmitter< T >::remObserver(), and eventEmitter< T >::update().