EvtHandlerCollection Class Reference

Thread safe mapping from evtHandlerId to wxEvtHandler*. More...

#include <springunitsync.h>

Collaboration diagram for EvtHandlerCollection:
Collaboration graph
[legend]

Public Member Functions

 EvtHandlerCollection ()
int Add (wxEvtHandler *evtHandler)
void Remove (int evtHandlerId)
void PostEvent (int evtHandlerId, wxEvent &evt)

Private Types

typedef std::map< int,
wxEvtHandler * > 
EvtHandlerMap

Private Attributes

wxCriticalSection m_lock
EvtHandlerMap m_items
int m_last_id

Detailed Description

Thread safe mapping from evtHandlerId to wxEvtHandler*.

Definition at line 36 of file springunitsync.h.


Member Typedef Documentation

typedef std::map<int, wxEvtHandler*> EvtHandlerCollection::EvtHandlerMap [private]

Definition at line 46 of file springunitsync.h.


Constructor & Destructor Documentation

EvtHandlerCollection::EvtHandlerCollection (  )  [inline]

Definition at line 39 of file springunitsync.h.


Member Function Documentation

int EvtHandlerCollection::Add ( wxEvtHandler evtHandler  ) 

Definition at line 1364 of file springunitsync.cpp.

void EvtHandlerCollection::PostEvent ( int  evtHandlerId,
wxEvent &  evt 
)

Definition at line 1379 of file springunitsync.cpp.

void EvtHandlerCollection::Remove ( int  evtHandlerId  ) 

Definition at line 1372 of file springunitsync.cpp.


Field Documentation

Definition at line 49 of file springunitsync.h.

Definition at line 50 of file springunitsync.h.

wxCriticalSection EvtHandlerCollection::m_lock [mutable, private]

Definition at line 48 of file springunitsync.h.


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

Generated on Thu Dec 29 00:11:44 2011 for SpringLobby by doxygen 1.6.3