|
PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
|
An owned lower-timeframe execution path. More...
#include <native_run_spec.hpp>
Data Structures | |
| struct | lower_tf |
| A RETAINED finer feed: the host's own lower-timeframe bars, the literal they are at, and the sampling policy over them. More... | |
| struct | none |
| No intrabar path: the confirmed OHLC waypoints are the whole modeled walk, and on_native_sub_bar never fires. More... | |
| struct | synthesized |
| A synthesized path has no retained lower feed. More... | |
Public Types | |
| enum class | SampleEligibility : std::uint32_t { ContinuousSegments = 0 , DistributionSamples = 1 } |
| using | value_type = std::variant<none, lower_tf, synthesized> |
| The three alternatives as one value. | |
Public Member Functions | |
| bool | is_none () const noexcept |
| Whether this run declares no intrabar path at all. | |
| const lower_tf * | lower () const noexcept |
| The retained finer feed, or nullptr when this is not the lower_tf alternative. | |
| lower_tf * | lower () noexcept |
| The mutable retained finer feed, or nullptr; a staged spec's feed is copied by configure_native, so mutating it afterwards changes nothing about the run. | |
| const synthesized * | synthesized_path () const noexcept |
| The synthesized sampling policy, or nullptr when this is not that alternative. | |
| synthesized * | synthesized_path () noexcept |
| The mutable synthesized sampling policy, or nullptr. | |
Data Fields | |
| value_type | value = none{} |
An owned lower-timeframe execution path.
It is deliberately a run-spec value rather than a caller borrow: public begin arguments expire when the begin call returns, whereas native matching may need the lower bars later while sealing an aggregated script bar.
Definition at line 378 of file native_run_spec.hpp.
| using pineforge::native_run_spec_v3::IntrabarPath::value_type = std::variant<none, lower_tf, synthesized> |
The three alternatives as one value.
Exhaustive; use the accessors below rather than std::get_if at call sites.
Definition at line 417 of file native_run_spec.hpp.
|
strong |
| Enumerator | |
|---|---|
| ContinuousSegments | Native hosts retain continuous matching between generated samples unless they explicitly request point-only sample eligibility. |
| DistributionSamples | |
Definition at line 382 of file native_run_spec.hpp.
|
inlinenoexcept |
Whether this run declares no intrabar path at all.
Definition at line 422 of file native_run_spec.hpp.
References value.
|
inlinenoexcept |
The retained finer feed, or nullptr when this is not the lower_tf alternative.
Definition at line 424 of file native_run_spec.hpp.
References value.
Referenced by pineforge::source::PineScheduler::lower_path_bar_at().
|
inlinenoexcept |
The mutable retained finer feed, or nullptr; a staged spec's feed is copied by configure_native, so mutating it afterwards changes nothing about the run.
Definition at line 427 of file native_run_spec.hpp.
References value.
|
inlinenoexcept |
The synthesized sampling policy, or nullptr when this is not that alternative.
Definition at line 429 of file native_run_spec.hpp.
References value.
|
inlinenoexcept |
The mutable synthesized sampling policy, or nullptr.
Definition at line 433 of file native_run_spec.hpp.
References value.
| value_type pineforge::native_run_spec_v3::IntrabarPath::value = none{} |
Definition at line 419 of file native_run_spec.hpp.
Referenced by is_none(), lower(), lower(), pineforge::source::PineExecutionAdapter::project(), synthesized_path(), and synthesized_path().