PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::native_driver_v5::NativeInputPreflightResult Struct Reference

What preflight_native_inputs answers: the error and the first offending bar's index, or -1 when the refusal is not about one bar. More...

#include <market_driver.hpp>

Public Member Functions

constexpr bool ok () const noexcept
 
constexpr operator bool () const noexcept
 

Data Fields

NativeInputPreflightError error = NativeInputPreflightError::None
 
int index = -1
 

Detailed Description

What preflight_native_inputs answers: the error and the first offending bar's index, or -1 when the refusal is not about one bar.

ok() and the explicit operator bool are the success reads.

Definition at line 219 of file market_driver.hpp.

Member Function Documentation

◆ ok()

bool pineforge::native_driver_v5::NativeInputPreflightResult::ok ( ) const
inlineconstexprnoexcept

Definition at line 223 of file market_driver.hpp.

References error, and pineforge::native_driver_v5::None.

Referenced by operator bool().

◆ operator bool()

pineforge::native_driver_v5::NativeInputPreflightResult::operator bool ( ) const
inlineexplicitconstexprnoexcept

Definition at line 226 of file market_driver.hpp.

References ok().

Field Documentation

◆ error

NativeInputPreflightError pineforge::native_driver_v5::NativeInputPreflightResult::error = NativeInputPreflightError::None

Definition at line 220 of file market_driver.hpp.

Referenced by ok().

◆ index

int pineforge::native_driver_v5::NativeInputPreflightResult::index = -1

Definition at line 221 of file market_driver.hpp.


The documentation for this struct was generated from the following file: