#include <PDG_EventEmitter.h>
Definition at line 22 of file PDG_EventEmitter.h.
PDG_EventEmitter::PDG_EventEmitter |
( |
PDG_EventQueue * |
event_queue, |
|
|
bool |
block_destruction |
|
) |
| |
virtual PDG_EventEmitter::~PDG_EventEmitter |
( |
| ) |
|
|
virtual |
Adds an event handlers that listens for all types of events.
Adds an event handlers that listens for a specific event.
Adds an event handler with a filter, so that it only listens for events in the specified list
void PDG_EventEmitter::clearEventQueue |
( |
| ) |
|
Clears the emitter's event queue without running any registration or deregistration logic
void PDG_EventEmitter::emitEvent |
( |
const PDG_Event & |
event, |
|
|
bool |
immediate = false |
|
) |
| const |
Emit an event to all handlers.
Safely makes a copy of the list of handlers. If this emitter is currently being destroyed, the resulting array is empty
int64 PDG_EventEmitter::getMemoryUsage |
( |
bool |
inclusive | ) |
const |
Returns memory usage for this event emitter instance.
void PDG_EventEmitter::removeAllEventHandlers |
( |
bool |
user_handler_only = false | ) |
|
Removes all event handlers from this emitter. If user_handler_only is true, only user-added event handlers are removed.
Removes an event handler from this emitter.
Sets the event queue associated with this event emitter. This method will also register the emitter with the queue, and unregister it with the old queue. If the queue is being destroyed then the clearEventQueue method should be called instead
bool PDG_EventEmitter::shouldEmit |
( |
const PDG_Event & |
event | ) |
const |
Returns true if the emitter should handle the specified event, and false if no handler is assigned for it
virtual const PDG_EventFilter& PDG_EventEmitter::supportedEventTypes |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following file: