PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
native_bar_views.hpp File Reference
#include <pineforge/bar.hpp>
#include <pineforge/native_run_spec.hpp>
#include <cstddef>
#include <cstdint>
#include <optional>
#include <string>
#include <vector>
Include dependency graph for native_bar_views.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pineforge::native_bar_views_v1::NativeBarView
 Borrowed OHLCV span, exactly the layout specified in 2.2:347-348. More...
 
struct  pineforge::native_bar_views_v1::NativeInstrumentFeedView
 Borrowed instrument feed, exactly 2.2:349. More...
 
struct  pineforge::native_bar_views_v1::NativeInstrumentFeedReadView
 Effective feed data (DESIGN 2.2:354-375; RESOLVED V1). More...
 
struct  pineforge::native_bar_views_v1::NativeBarViews
 Explicit read context (RESOLVED V1, required changes 1-4). More...
 
class  pineforge::native_bar_views_v1::NativeLowerPathSource
 Four-operation source (DESIGN 2.2:350-351; 5:1237-1262, as amended). More...
 

Namespaces

namespace  pineforge
 
namespace  pineforge::native_bar_views_v1
 

Functions

NativeInstrumentFeedReadView pineforge::native_bar_views_v1::native_instrument_feed_view (const NativeInstrumentFeed &owned, const NativeInstrumentFeedView *borrowed) noexcept
 Common accessor (DESIGN 2.2:355-375).
 
NativeRunSpecValidation pineforge::native_bar_views_v1::normalize_native_run_spec (NativeRunSpec &spec, const NativeBarViews &views) noexcept
 Existing full validation and zero-fee normalization over effective data.
 
NativeRunSpecValidation pineforge::native_bar_views_v1::validate_native_instrument_feeds (const std::vector< NativeInstrumentFeed > &feeds, const NativeBarViews &views) noexcept
 The same feed-only validation over effective data, retaining all existing refusal ordering and typed catches (DESIGN 2.2:361-363).
 
NativeRunSpecValidation pineforge::native_bar_views_v1::validate_native_timeframe_subscriptions (const std::vector< NativeTimeframeSubscription > &subscriptions, const std::string &input_tf, bool timeframe_undetected, const std::optional< NativeAuxiliaryFeed > &auxiliary_feed, const std::vector< NativeInstrumentFeed > &instrument_feeds, const NativeBarViews &views) noexcept
 The same feeds-first, auxiliary-feed, then subscription judgement over effective data, also at both begin declarations (DESIGN 2.2:361-363).
 
std::uint64_t pineforge::native_bar_views_v1::native_instrument_feeds_digest (const std::vector< NativeInstrumentFeed > &feeds, const NativeBarViews &views) noexcept
 Same count, metadata, ordered OHLCV/timestamp/close/columns fold and feed NaN canonicalization (DESIGN 2.2:364-375).
 
std::uint64_t pineforge::native_bar_views_v1::native_run_spec_digest (const NativeRunSpec &spec, const NativeBarViews &views)
 Portable spec fold with an explicit context, sharing the existing fold and relative run base; never infer external storage through a registry.
 
std::uint64_t pineforge::native_bar_views_v1::native_intrabar_path_digest (const IntrabarPath &path, const NativeLowerPathSource *source)
 Null delegates to the vector digest; nonnull replaces only lower count/ walk.