# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLMISC::CEventEmitterMulti Class Reference

The composite pattern applied to events emmitters. More...

#include <event_emitter_multi.h>

Inheritance diagram for NLMISC::CEventEmitterMulti:

NLMISC::IEventEmitter NLMISC::CRefCount List of all members.

Public Methods

 ~CEventEmitterMulti ()
 ============================================================. More...

void addEmitter (IEventEmitter *e, bool mustDelete)
 ============================================================. More...

void removeEmitter (IEventEmitter *e)
 ============================================================. More...

bool isEmitter (IEventEmitter *e) const
 ============================================================. More...

uint getNumEmitters () const
IEventEmittergetEmitter (uint index)
 ============================================================. More...

virtual void submitEvents (CEventServer &server)
 ============================================================. More...


Private Types

typedef std::vector< std::pair<
IEventEmitter *, bool > > 
TEmitterCont

Private Attributes

TEmitterCont _Emitters

Detailed Description

The composite pattern applied to events emmitters.

This is useful when you don't have the opportunity to register more than one event emitter to an event server.

Definition at line 41 of file event_emitter_multi.h.


Member Typedef Documentation

typedef std::vector<std::pair<IEventEmitter *, bool> > NLMISC::CEventEmitterMulti::TEmitterCont [private]
 

Definition at line 59 of file event_emitter_multi.h.


Constructor & Destructor Documentation

NLMISC::CEventEmitterMulti::~CEventEmitterMulti  
 

============================================================.

Definition at line 45 of file event_emitter_multi.cpp.

References _Emitters.


Member Function Documentation

void NLMISC::CEventEmitterMulti::addEmitter IEventEmitter   e,
bool    mustDelete
 

============================================================.

Definition at line 57 of file event_emitter_multi.cpp.

References _Emitters, isEmitter, and nlassert.

IEventEmitter * NLMISC::CEventEmitterMulti::getEmitter uint    index
 

============================================================.

Definition at line 92 of file event_emitter_multi.cpp.

References _Emitters, index, and nlassert.

uint NLMISC::CEventEmitterMulti::getNumEmitters   const [inline]
 

Definition at line 53 of file event_emitter_multi.h.

References _Emitters.

bool NLMISC::CEventEmitterMulti::isEmitter IEventEmitter   e const
 

============================================================.

Definition at line 77 of file event_emitter_multi.cpp.

References _Emitters.

Referenced by addEmitter.

void NLMISC::CEventEmitterMulti::removeEmitter IEventEmitter   e
 

============================================================.

Definition at line 65 of file event_emitter_multi.cpp.

References _Emitters, and nlassert.

void NLMISC::CEventEmitterMulti::submitEvents CEventServer   server [virtual]
 

============================================================.

Implements NLMISC::IEventEmitter.

Definition at line 84 of file event_emitter_multi.cpp.

References _Emitters.


Member Data Documentation

TEmitterCont NLMISC::CEventEmitterMulti::_Emitters [private]
 

Definition at line 60 of file event_emitter_multi.h.

Referenced by addEmitter, getEmitter, getNumEmitters, isEmitter, removeEmitter, submitEvents, and ~CEventEmitterMulti.


The documentation for this class was generated from the following files: