![]() |
VR-Forces 4.8 Class Documentation
|
The event queue interface is a cross thread event queue used to emit event_signal across thread boundaries. More...

Public Types | |
| typedef boost::function< void(DtEventQueueInterface *) > | Event |
| typedef std::vector< Event > | EventList |
| typedef DtBoost::shared_ptr < EventList > | SharedEventList |
Public Member Functions | |
| virtual | ~DtEventQueueInterface () |
| DtVirtualBaseClass * | findInstance (const std::string &className) |
| Find a signaler interface. More... | |
| void | registerInstance (const std::string &className, DtVirtualBaseClass *instance) |
| Register an signaler base interface. More... | |
| virtual void | postEvent (const Event &signal)=0 |
| Add an event to the queue. More... | |
| virtual void | processEvents ()=0 |
| Process the events in the queue. More... | |
| void | executeEvents (const SharedEventList &signalList) |
| Take a unique pointer to a list of events, execute each event and delete the list. More... | |
Protected Types | |
| typedef std::map< std::string, DtVirtualBaseClass * > | InstanceMap |
Protected Member Functions | |
| DtEventQueueInterface () | |
Protected Attributes | |
| InstanceMap | myInstanceMap |
Private Member Functions | |
| DtEventQueueInterface (const DtEventQueueInterface &) | |
| DtEventQueueInterface & | operator= (const DtEventQueueInterface &) |
The event queue interface is a cross thread event queue used to emit event_signal across thread boundaries.
| typedef boost::function< void (DtEventQueueInterface*) > makVrv::DtEventQueueInterface::Event |
| typedef std::vector<Event> makVrv::DtEventQueueInterface::EventList |
| typedef DtBoost::shared_ptr<EventList> makVrv::DtEventQueueInterface::SharedEventList |
|
protected |
|
virtual |
|
protected |
|
private |
| DtVirtualBaseClass* makVrv::DtEventQueueInterface::findInstance | ( | const std::string & | className | ) |
Find a signaler interface.
| void makVrv::DtEventQueueInterface::registerInstance | ( | const std::string & | className, |
| DtVirtualBaseClass * | instance | ||
| ) |
Register an signaler base interface.
|
pure virtual |
Add an event to the queue.
Implemented in makVrv::DtAsynchronousEventQueue, and makVrv::DtMainEventQueue.
|
pure virtual |
Process the events in the queue.
Implemented in makVrv::DtAsynchronousEventQueue, and makVrv::DtMainEventQueue.
| void makVrv::DtEventQueueInterface::executeEvents | ( | const SharedEventList & | signalList | ) |
Take a unique pointer to a list of events, execute each event and delete the list.
|
private |
|
protected |