26 const auto raw =
static_cast<std::uint32_t
>(kind);
48enum class Phase : std::uint32_t {
66 std::uint64_t
event = 0;
Phase
Whether a calculation ran before the payload of its driving event was applied (a bar closed only beca...
EventKind
The driving events of a schedule.
constexpr bool is_known(EventKind kind) noexcept
Whether kind is in the registry: the one range check a raw number passes before the derivation treats...
constexpr std::uint32_t kCadenceMask
constexpr std::uint32_t kCadenceBarClose
constexpr std::uint32_t kCadenceTick
constexpr std::uint32_t kCadenceAdvanceTime
Which driving events make an instance calculate, as a bit set.
Status
How a derivation ended.
@ BadCadence
A cadence without the bar-close bit, or with a bit outside the set.
@ BarEndNotAfterEvent
The interval the timebase holds for an event ends no later than the event: its end cannot be the excl...
@ NoBarSlot
The timebase has no bar interval at the time of an event that opens one.
@ BarKeyExhausted
A bar lifecycle had to open while the last ordinal assigned was already the largest representable one...
@ BadArguments
A null event array with a nonzero count.
@ UnknownEventKind
An event kind outside the registry.
@ PositionOutsideWindow
A position the kernel planned itself lies outside the window of its driving event: an internal invari...
@ TraceExhausted
The trace ordinal of the next event is the largest representable one.
@ NotEngaged
The consumer's schedule group was not enabled for the current run.
Finality
Provisional for an intrabar calculation, Confirmed for the calculation that closes a bar.
One driving event: its kind and its time.
std::uint64_t bar_key
Ordinal of the bar lifecycle the calculation belongs to, assigned by the kernel: zero for the first l...
std::int64_t at_ms
Event-time position: the bar's exclusive end (never later than the event time) for a Pre calculation,...
std::uint64_t calc_ordinal
Ordinal of the calculation within its bar lifecycle.
std::uint64_t event_index
Zero-based index of the driving event among the events of the schedule.
std::uint64_t calc
Ordinal of the calculation within its driving event.