#include <functionQueue.h>
◆ ExecTiming
| Enumerator |
|---|
| PRE_TICK | |
| POST_TICK | |
◆ DtFunctionQueue()
| makVre::DtFunctionQueue::DtFunctionQueue |
( |
| ) |
|
|
default |
◆ ~DtFunctionQueue()
| virtual makVre::DtFunctionQueue::~DtFunctionQueue |
( |
| ) |
|
|
virtual |
◆ add() [1/2]
| void makVre::DtFunctionQueue::add |
( |
std::function< void()> | f, |
|
|
int | delayInTicks = 0, |
|
|
ExecTiming | timing = PRE_TICK ) |
Defers a function to be executed after a number of ticks.
- Parameters
-
| f | Function to execute |
| delayInTicks | Number of ticks to wait before execution (default: 0) |
| timing | Tick phase in which to execute: PRE_TICK or POST_TICK (default: PRE_TICK) |
Schedules a function to be executed after the specified number of ticks.
References PRE_TICK.
◆ add() [2/2]
| void makVre::DtFunctionQueue::add |
( |
std::function< void()> | f, |
|
|
double | delayInSeconds, |
|
|
ExecTiming | timing = PRE_TICK ) |
Defers a function to be executed after a time delay.
- Parameters
-
| f | Function to execute |
| delayInSeconds | Seconds to wait before execution |
| timing | Tick phase in which to execute: PRE_TICK or POST_TICK (default: PRE_TICK) |
Schedules a function to be executed after the specified time delay in seconds.
References PRE_TICK.
◆ preTick()
| void makVre::DtFunctionQueue::preTick |
( |
makVrv::DtDe & | | ) |
|
|
protected |
◆ postTick()
| void makVre::DtFunctionQueue::postTick |
( |
| ) |
|
|
protected |
◆ connectTicks()
| void makVre::DtFunctionQueue::connectTicks |
( |
| ) |
|
|
protected |
◆ processQueue()
| void makVre::DtFunctionQueue::processQueue |
( |
std::list< QueuedFunction > & | queue, |
|
|
double | dt ) |
|
protected |
◆ myPreTickQueue
List of deferred functions.
Contains functions that are scheduled to be executed after a delay.
◆ myPostTickQueue
◆ myTicksConnected
| bool makVre::DtFunctionQueue::myTicksConnected = false |
|
protected |
◆ myPreTickLastTime
| double makVre::DtFunctionQueue::myPreTickLastTime = 0.0 |
|
protected |
◆ myPostTickLastTime
| double makVre::DtFunctionQueue::myPostTickLastTime = 0.0 |
|
protected |
◆ myDe
| makVrv::DtDe* makVre::DtFunctionQueue::myDe = nullptr |
|
protected |
The documentation for this class was generated from the following file: