Class EventQueue
Defined in File event.h
Class Documentation
-
class EventQueue
Manages pending events.
Stores events that trigger and are waiting to be handled.
Manages the order of event execution based on their priority value.
Public Functions
-
EventQueue() = default
EventQueue constructor.
-
inline bool empty() const
Check if the queue is empty.
- Returns:
True if the queue is empty, false otherwise
-
inline void push(PendingEvent event)
Push an event to the queue.
- Parameters:
event – The event to push
-
inline PendingEvent pop()
Get the next event to handle and remove it from the queue.
- Throws:
std::runtime_error – if there are no pending events
- Returns:
The next event to handle
-
EventQueue() = default