PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::native_calendar::native_calendar_v2::NativeSessionDay Struct Reference

#include <native_calendar.hpp>

Public Member Functions

bool holds (int64_t ms) const noexcept
 
bool in_session_at (int64_t ms) const noexcept
 

Data Fields

int64_t origin_ms = 0
 
int64_t next_origin_ms = 0
 
int64_t ordinal = 0
 
std::vector< std::pair< int64_t, int64_t > > spans
 

Detailed Description

Definition at line 440 of file native_calendar.hpp.

Member Function Documentation

◆ holds()

bool pineforge::native_calendar::native_calendar_v2::NativeSessionDay::holds ( int64_t ms) const
inlinenoexcept

Definition at line 446 of file native_calendar.hpp.

References next_origin_ms, and origin_ms.

◆ in_session_at()

bool pineforge::native_calendar::native_calendar_v2::NativeSessionDay::in_session_at ( int64_t ms) const
inlinenoexcept

Definition at line 447 of file native_calendar.hpp.

References spans.

Field Documentation

◆ origin_ms

int64_t pineforge::native_calendar::native_calendar_v2::NativeSessionDay::origin_ms = 0

Definition at line 441 of file native_calendar.hpp.

Referenced by holds().

◆ next_origin_ms

int64_t pineforge::native_calendar::native_calendar_v2::NativeSessionDay::next_origin_ms = 0

Definition at line 442 of file native_calendar.hpp.

Referenced by holds().

◆ ordinal

int64_t pineforge::native_calendar::native_calendar_v2::NativeSessionDay::ordinal = 0

Definition at line 443 of file native_calendar.hpp.

◆ spans

std::vector<std::pair<int64_t, int64_t> > pineforge::native_calendar::native_calendar_v2::NativeSessionDay::spans

Definition at line 444 of file native_calendar.hpp.

Referenced by in_session_at().


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