#include <MasterTimer.h>
Static Public Member Functions | |
static void | AddTimer (Timer *timer, int delay) |
Adds a timer to the queue, with a given delay (in milliseconds). | |
static void | CheckTimers () |
checks the timer and trigger an event for each of them whose timer is elapsed. | |
Private Member Functions | |
MasterTimer () | |
Constructor. Private on purpose. | |
~MasterTimer () | |
Destructor. | |
Private Attributes | |
priority_queue< TimerEntry, deque< TimerEntry >, compareEntries > | queue |
Priority queue that holds our TimerEntry instances. | |
Static Private Attributes | |
static MasterTimer * | s_Instance |
One and only instance of that class. | |
Classes | |
struct | compareEntries |
Just a function that order our TimerEntry instances. More... | |
struct | TimerEntry |
TimerEntry is the internal data structure MasterTimer manipulates. There's no reason for it to be used for other purposes. More... |
|
Constructor. Private on purpose.
|
|
Destructor.
|
|
Adds a timer to the queue, with a given delay (in milliseconds).
|
|
checks the timer and trigger an event for each of them whose timer is elapsed.
|
|
Priority queue that holds our TimerEntry instances.
|
|
One and only instance of that class.
|