eventEmitter< T > Class Template Reference

#include <lleventemitter.h>

Collaboration diagram for eventEmitter< T >:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

template<class T>
class eventEmitter< T >

Definition at line 48 of file lleventemitter.h.


Member Typedef Documentation

template<class T>
typedef T::EventType eventEmitter< T >::EventType

Definition at line 51 of file lleventemitter.h.

template<class T>
typedef std::list< T* > eventEmitter< T >::ObserverContainer

Definition at line 52 of file lleventemitter.h.

template<class T>
typedef void( T::*) eventEmitter< T >::observerMethod(const EventType &)

Definition at line 53 of file lleventemitter.h.


Constructor & Destructor Documentation

template<class T>
eventEmitter< T >::eventEmitter (  )  [inline]

Definition at line 59 of file lleventemitter.h.

template<class T>
eventEmitter< T >::~eventEmitter (  )  [inline]

Definition at line 61 of file lleventemitter.h.


Member Function Documentation

template<class T>
BOOL eventEmitter< T >::addObserver ( T *  observerIn  )  [inline]

Definition at line 65 of file lleventemitter.h.

References FALSE, and eventEmitter< T >::observers.

template<class T>
BOOL eventEmitter< T >::remObserver ( T *  observerIn  )  [inline]

Definition at line 82 of file lleventemitter.h.

References FALSE, eventEmitter< T >::observers, and TRUE.

template<class T>
void eventEmitter< T >::update ( observerMethod  method,
const EventType msgIn 
) [inline]

Definition at line 94 of file lleventemitter.h.

References eventEmitter< T >::observers.


Member Data Documentation

template<class T>
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().


The documentation for this class was generated from the following file:
Generated on Thu Jul 1 06:11:09 2010 for Second Life Viewer by  doxygen 1.4.7