|
Avara3D 0.2.0
C++ API reference
|
Scheduling policy controlling when update() performs a sweep. More...
#include <a3d/extension/Transients.h>
Public Types | |
| enum class | Mode { EveryUpdate , EveryNUpdates , EveryInterval } |
| Available sweep scheduling modes. More... | |
Static Public Member Functions | |
| static SweepPolicy | EveryUpdate () |
| Creates a policy that sweeps on every call to update(). More... | |
| static SweepPolicy | EveryNUpdates (std::uint64_t updates) |
| Creates a policy that sweeps after a fixed number of update() calls. More... | |
| static SweepPolicy | EveryInterval (double seconds) |
| Creates a policy that sweeps at a fixed simulation-time interval. More... | |
Public Attributes | |
| Mode | mode {Mode::EveryUpdate} |
| Selected scheduling mode. More... | |
| std::uint64_t | updateInterval {1} |
| Number of update() calls between sweeps in Mode::EveryNUpdates. More... | |
| double | timeInterval {0.0} |
| Seconds of simulation time between sweeps in Mode::EveryInterval. More... | |
Scheduling policy controlling when update() performs a sweep.
Definition at line 83 of file Transients.h.
|
strong |
Available sweep scheduling modes.
| Enumerator | |
|---|---|
| EveryUpdate | Sweep on every call to update(). |
| EveryNUpdates | Sweep after a configured number of calls to update(). |
| EveryInterval | Sweep after a configured interval of simulation time. |
Definition at line 86 of file Transients.h.
|
static |
Creates a policy that sweeps at a fixed simulation-time interval.
| seconds | Seconds of simulation time between sweeps. |
| std::invalid_argument | if seconds is less than or equal to zero. |
|
static |
|
static |
Creates a policy that sweeps on every call to update().
| Mode a3d::ext::Transients::SweepPolicy::mode {Mode::EveryUpdate} |
Selected scheduling mode.
Definition at line 93 of file Transients.h.
| double a3d::ext::Transients::SweepPolicy::timeInterval {0.0} |
Seconds of simulation time between sweeps in Mode::EveryInterval.
Definition at line 99 of file Transients.h.
| std::uint64_t a3d::ext::Transients::SweepPolicy::updateInterval {1} |
Number of update() calls between sweeps in Mode::EveryNUpdates.
Definition at line 96 of file Transients.h.