Constant-storage domain aggregation, performed before display snapshot coalescing. One producer owns mutation; copy value() into immutable provider storage before publishing. No allocation, I/O or UI affinity. Caller chooses bucket boundaries and tick ordering.
More...
#include <chart.hpp>
|
| bool | add (double price) noexcept |
| | Add an ordered price tick without dropping its effect.
|
| std::optional< Ohlc > | value () const noexcept |
| | Copy the current aggregate.
|
|
void | reset () noexcept |
| | Begin the next caller-defined bucket; no queued or published state is affected.
|
Constant-storage domain aggregation, performed before display snapshot coalescing. One producer owns mutation; copy value() into immutable provider storage before publishing. No allocation, I/O or UI affinity. Caller chooses bucket boundaries and tick ordering.
◆ add()
| bool portals::OhlcBucket::add |
( |
double | price | ) |
|
|
noexcept |
Add an ordered price tick without dropping its effect.
- Parameters
-
| price | Finite domain price; NaN/infinity are explicitly rejected. |
- Returns
- True when included; false leaves the aggregate unchanged.
◆ value()
| std::optional< Ohlc > portals::OhlcBucket::value |
( |
| ) |
const |
|
noexcept |
Copy the current aggregate.
- Returns
- Empty before the first finite tick, otherwise an independent OHLC value.
The documentation for this class was generated from the following file: