|
Slick Sim 0.10.1
Exchange simulator that shadows real venues for risk-free strategy testing
|
A publisher channel's view of the gate: whether it may publish yet, for the md_queue frame it is working on. More...
#include <md_feed/replay_gate.hpp>
Public Member Functions | |
| void | set (std::shared_ptr< ReplayGate > gate) |
| Call before the channel is used. A channel with a gate publishes nothing until it opens. | |
| bool | gated () const noexcept |
| bool | publishing () const noexcept |
| False while a gate is closed (or not yet open for the frame being read). | |
| void | set_position (uint64_t index) noexcept |
| The md_queue index of the next frame the publisher thread will read. | |
| bool | opened_now () noexcept |
| True once, when the gate has opened for the frames now being read: the moment the channel starts publishing what it held back. | |
A publisher channel's view of the gate: whether it may publish yet, for the md_queue frame it is working on.
Publisher thread only. Without a gate everything is published.
Definition at line 53 of file replay_gate.hpp.
|
inlinenodiscardnoexcept |
Definition at line 60 of file replay_gate.hpp.
|
inlinenodiscardnoexcept |
True once, when the gate has opened for the frames now being read: the moment the channel starts publishing what it held back.
Definition at line 69 of file replay_gate.hpp.
|
inlinenodiscardnoexcept |
False while a gate is closed (or not yet open for the frame being read).
Definition at line 62 of file replay_gate.hpp.
|
inline |
Call before the channel is used. A channel with a gate publishes nothing until it opens.
Definition at line 56 of file replay_gate.hpp.
|
inlinenoexcept |
The md_queue index of the next frame the publisher thread will read.
Definition at line 65 of file replay_gate.hpp.