PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::RuntimeContextService Class Reference

#include <runtime_context.hpp>

Public Types

using Factory = std::function<std::unique_ptr<RuntimeContextEvaluator>()>
 

Public Member Functions

 RuntimeContextService ()
 
 ~RuntimeContextService ()
 
 RuntimeContextService (const RuntimeContextService &)
 
RuntimeContextService & operator= (const RuntimeContextService &)
 
void configure (RuntimeHistoryOptions)
 
void enable_history ()
 
bool history_enabled () const noexcept
 
void reset ()
 
void end_run () noexcept
 
void bind_batch (const RuntimeBatchLease &)
 
void bind_source (std::shared_ptr< const RuntimeHistorySource >)
 
void begin_live ()
 
void accept_batch (std::uint64_t exclusive_frontier)
 
void append_live (const Bar &)
 
std::uint64_t accepted_frontier () const noexcept
 
std::uint64_t callback_frontier () const noexcept
 
std::uint64_t frontier_before (std::int64_t exclusive_time_ms) const
 
RuntimeContextHandle active_context () const noexcept
 
RuntimeContextHandle get_or_create (const RuntimeContextKey &, const Factory &)
 
void advance (RuntimeContextHandle, std::uint64_t exclusive_frontier)
 
RuntimeContextEvaluator & published (RuntimeContextHandle)
 
void release (RuntimeContextHandle)
 
RuntimeHistoryUsage usage () const noexcept
 

Detailed Description

Definition at line 132 of file runtime_context.hpp.

Member Typedef Documentation

◆ Factory

using pineforge::RuntimeContextService::Factory = std::function<std::unique_ptr<RuntimeContextEvaluator>()>

Definition at line 134 of file runtime_context.hpp.

Constructor & Destructor Documentation

◆ RuntimeContextService() [1/2]

pineforge::RuntimeContextService::RuntimeContextService ( )

Referenced by operator=(), and RuntimeContextService().

◆ ~RuntimeContextService()

pineforge::RuntimeContextService::~RuntimeContextService ( )

◆ RuntimeContextService() [2/2]

pineforge::RuntimeContextService::RuntimeContextService ( const RuntimeContextService & )

Member Function Documentation

◆ operator=()

RuntimeContextService & pineforge::RuntimeContextService::operator= ( const RuntimeContextService & )

◆ configure()

void pineforge::RuntimeContextService::configure ( RuntimeHistoryOptions )

◆ enable_history()

void pineforge::RuntimeContextService::enable_history ( )

◆ history_enabled()

bool pineforge::RuntimeContextService::history_enabled ( ) const
noexcept

◆ reset()

void pineforge::RuntimeContextService::reset ( )

References reset().

Referenced by reset().

◆ end_run()

void pineforge::RuntimeContextService::end_run ( )
noexcept

References end_run().

Referenced by end_run().

◆ bind_batch()

void pineforge::RuntimeContextService::bind_batch ( const RuntimeBatchLease & )

References bind_batch().

Referenced by bind_batch().

◆ bind_source()

void pineforge::RuntimeContextService::bind_source ( std::shared_ptr< const RuntimeHistorySource > )

References bind_source().

Referenced by bind_source().

◆ begin_live()

void pineforge::RuntimeContextService::begin_live ( )

References begin_live().

Referenced by begin_live().

◆ accept_batch()

void pineforge::RuntimeContextService::accept_batch ( std::uint64_t exclusive_frontier)

References accept_batch().

Referenced by accept_batch().

◆ append_live()

void pineforge::RuntimeContextService::append_live ( const Bar & )

References append_live().

Referenced by append_live().

◆ accepted_frontier()

std::uint64_t pineforge::RuntimeContextService::accepted_frontier ( ) const
noexcept

References accepted_frontier().

Referenced by accepted_frontier().

◆ callback_frontier()

std::uint64_t pineforge::RuntimeContextService::callback_frontier ( ) const
noexcept

References callback_frontier().

Referenced by callback_frontier().

◆ frontier_before()

std::uint64_t pineforge::RuntimeContextService::frontier_before ( std::int64_t exclusive_time_ms) const

References frontier_before().

Referenced by frontier_before().

◆ active_context()

RuntimeContextHandle pineforge::RuntimeContextService::active_context ( ) const
noexcept

References active_context().

Referenced by active_context().

◆ get_or_create()

RuntimeContextHandle pineforge::RuntimeContextService::get_or_create ( const RuntimeContextKey & ,
const Factory &  )

References get_or_create().

Referenced by get_or_create().

◆ advance()

void pineforge::RuntimeContextService::advance ( RuntimeContextHandle ,
std::uint64_t exclusive_frontier )

References advance().

Referenced by advance().

◆ published()

RuntimeContextEvaluator & pineforge::RuntimeContextService::published ( RuntimeContextHandle )

References published().

Referenced by published().

◆ release()

void pineforge::RuntimeContextService::release ( RuntimeContextHandle )

References release().

Referenced by release().

◆ usage()

RuntimeHistoryUsage pineforge::RuntimeContextService::usage ( ) const
noexcept

References usage().

Referenced by usage().


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