| Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
EventRouter::EventMapper Class Reference#include <EventRouter.h>
Detailed DescriptionDoes the actual storage of the mapping between EventBase's and the EventListeners/EventTrappers who should receive them.Actually only stores void*'s, so it's more general than just Listeners or Trappers
Definition at line 331 of file EventRouter.h.
Member Typedef Documentation
a mapping from source IDs (unsigned ints), each to a vector of pointers to listeners main use in filteredevents
Definition at line 399 of file EventRouter.h.
Constructor & Destructor Documentation
this shouldn't be called...
Member Function Documentation
Adds a listener for a specific source id and type from a given event generator.
Definition at line 370 of file EventRouter.cc.
Adds a listener for all events from a given event generator.
Definition at line 336 of file EventRouter.h. Referenced by EventRouter::addListener(), and EventRouter::addTrapper().
removes empty data structures associated with a single event generator
Definition at line 431 of file EventRouter.cc.
removes empty data structures for all event generators
Definition at line 427 of file EventRouter.cc. Referenced by EventRouter::removeListener(), and EventRouter::removeTrapper().
Resets the mapping.
Definition at line 462 of file EventRouter.cc. Referenced by EventRouter::reset().
template<class T>
builds a list of all listeners which should receive the event, templated to typecast the pointers for you
Definition at line 517 of file EventRouter.cc. Referenced by EventRouter::PostingStatus::PostingStatus().
so stuff can tell if it even needs to bother generating an event...
... if a tree falls in a forest, and there's no one around to see it, does it make a sound?
Definition at line 504 of file EventRouter.cc.
so stuff can tell if it even needs to bother generating an event...
... if a tree falls in a forest, and there's no one around to see it, does it make a sound?
Definition at line 490 of file EventRouter.cc.
so stuff can tell if it even needs to bother generating an event...
... if a tree falls in a forest, and there's no one around to see it, does it make a sound?
Definition at line 475 of file EventRouter.cc. Referenced by EventRouter::hasListeners().
this shouldn't be called...
Removes a listener for a specific source id and type from a given event generator, returns true if something was actually removed. Doesn't necessarily remove the vector or mapping if this was the last listener, use clean() to do that Definition at line 410 of file EventRouter.cc.
Removes a listener for all events from a given event generator, returns true if something was actually removed. Doesn't necessarily remove the vector or mapping if this was the last listener, use clean() to do that Definition at line 386 of file EventRouter.cc. Referenced by EventRouter::removeListener(), and EventRouter::removeTrapper().
Used to make sure that the specified listener exists for the given event. This is needed because after we call processEvent on a lister, we can't assume that no other listeners have been modified - one listener could cause another to turn off. If that has happened, we shouldn't send the event, even if it was in the queue originally. Definition at line 535 of file EventRouter.cc.
Used to make sure that the specified listener exists for the given event. This is needed because after we call processEvent on a lister, we can't assume that no other listeners have been modified - one listener could cause another to turn off. If that has happened, we shouldn't send the event, even if it was in the queue originally. Definition at line 374 of file EventRouter.h. Referenced by EventRouter::isListening(), EventRouter::isTrapping(), and EventRouter::PostingStatus::process().
Needed to complete EventRouter::isListening suite. Checks both allevents and filteredevents, must be found in all Definition at line 592 of file EventRouter.cc.
Needed to complete EventRouter::isListening suite. Only checks allevents Definition at line 558 of file EventRouter.cc. Referenced by EventRouter::isListeningAll(), and EventRouter::isTrappingAll().
Needed to complete EventRouter::isListening suite. Checks both allevents and filteredevents, can be found in either Definition at line 623 of file EventRouter.cc.
Needed to complete EventRouter::isListening suite. Checks both allevents and filteredevents Definition at line 567 of file EventRouter.cc. Referenced by EventRouter::isListeningAny(), and EventRouter::isTrappingAny().
Member Data Documentation
an array of vectors of pointers to listeners... in other words, a vector of listener pointers for each generator
Definition at line 402 of file EventRouter.h. Referenced by addMapping(), getMapping(), hasMapping(), removeMapping(), verifyMapping(), verifyMappingAll(), and verifyMappingAny().
not for the faint of heart: a matrix of mappings to vectors of pointers to listeners
Definition at line 404 of file EventRouter.h. Referenced by addMapping(), clean(), clear(), EventMapper(), getMapping(), hasMapping(), removeMapping(), verifyMapping(), verifyMappingAll(), and verifyMappingAny().
The documentation for this class was generated from the following files: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Tekkotsu v3.0 |
Generated Wed Oct 4 00:05:00 2006 by Doxygen 1.4.7 |