PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pine_adapter.cpp File Reference
#include <pineforge/source/pine_adapter.hpp>
#include <pineforge/source/pine_input_domain.hpp>
#include <pineforge/source/magnifier_intrabars.hpp>
#include <pineforge/source/pine_strategy_host.hpp>
#include <pineforge/compat/pine/market_admission.hpp>
#include <pineforge/pending_order_mirror.hpp>
#include "pine_cohort_exposure.hpp"
#include <pineforge/native_calendar.hpp>
#include <pineforge/timeframe.hpp>
#include "../engine_internal.hpp"
#include "../engine_value_invalid.hpp"
#include "../native_execution_consumer.hpp"
#include <pineforge/compat/pine/trail_ticks.hpp>
#include "../timezone.hpp"
#include "pine_host_reads.hpp"
#include "pine_quiet_bar.hpp"
#include "../compat/pine/callback_lifecycle_rules.hpp"
#include "pine_reissue_binding.hpp"
#include "pine_run_failure.hpp"
#include "pine_checked_arith.hpp"
#include "pine_command_scratch_production.hpp"
#include "../command_scratch_cache.hpp"
#include "pine_sequence_cache_observer.hpp"
#include "exit_scratch_versions_production.hpp"
#include "pine_value_admission.hpp"
#include "pine_position_tail.hpp"
#include "pine_position_tail_binding.hpp"
#include "pine_position_tail_summary.hpp"
#include "pine_source_key_test.hpp"
#include "roster_pass_work.hpp"
#include <algorithm>
#include <atomic>
#include <array>
#include <cassert>
#include <cerrno>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <cstring>
#include <exception>
#include <limits>
#include <map>
#include <memory>
#include <new>
#include <stdexcept>
#include <string_view>
#include <type_traits>
#include <typeinfo>
#include <utility>
#include "exit_payload_codec.inc"
#include "../scratch_table_binders.hpp"
#include <pineforge/run_failure.hpp>

Go to the source code of this file.

Namespaces

namespace  pineforge
 
namespace  pineforge::source
 
namespace  pineforge::source::detail
 
namespace  pineforge::detail
 

Macros

#define PINEFORGE_POSITION_TAIL_DIAGNOSTICS    ::pineforge::source::detail::PositionTailNoDiagnostics
 
#define PINEFORGE_TAIL_WORK(site, count)
 
#define PINEFORGE_LOOKUP_INDEX_WORK(site, owner, run, count)
 
#define PINEFORGE_RETIREMENT_OBSERVE(rows, cycle, askable, roots, candidates, first)
 
#define PINEFORGE_MARGIN_REVIVAL_OBSERVE(before, rows, event, context, units, cycle, selected)
 
#define PF_RARE(condition)
 
#define PINEFORGE_AUDIT_PLACEMENT_SCAN(table, ...)
 
#define PINEFORGE_FULL_CLOSE_EXIT_ORACLE()
 
#define PINEFORGE_FULL_CLOSE_EXIT_CALL()
 

Functions

void pineforge::source::detail::set_pine_callback_lifecycle_rule (PineCallbackLifecycleRule rule, bool on) noexcept
 
bool pineforge::source::detail::pine_callback_lifecycle_rule (PineCallbackLifecycleRule rule) noexcept
 
MarginRuleSwitches & pineforge::source::detail::margin_rule_switches () noexcept
 
MarginScheduleSwitches & pineforge::source::detail::margin_schedule_switches () noexcept
 
MarginOpeningSwitches & pineforge::source::detail::margin_opening_switches () noexcept
 
ScriptRuleSwitches & pineforge::source::detail::script_rule_switches () noexcept
 
ExitBindingRuleSwitches & pineforge::source::detail::exit_binding_rule_switches () noexcept
 
PoocCloseFillViewSwitches & pineforge::source::detail::pooc_close_fill_view_switches () noexcept
 
void pineforge::source::detail::placement_audit_erase (const PlacementTable *table, std::uint64_t incarnation, PlacementSnapshot &&row)
 
void pineforge::source::detail::placement_audit_forget (const PlacementTable *table) noexcept
 
void pineforge::source::detail::placement_audit_miss (const PlacementTable *table, std::uint64_t incarnation, unsigned line) noexcept
 
void pineforge::source::detail::placement_audit_scan_hit (const PlacementTable *table, std::uint64_t incarnation, unsigned line) noexcept
 
const std::vector< std::pair< std::uint64_t, const PlacementSnapshot * > > * pineforge::source::detail::placement_audit_tombstones (const PlacementTable *table)
 
ExitScratchContext & pineforge::source::detail::exit_scratch (const PineExecutionAdapter &)
 
void pineforge::source::detail::exit_scratch_failure (ScratchStatus)
 
const char * pineforge::source::instrument_feed_field_name (NativeRunSpecField field) noexcept
 
RunFailureValue pineforge::source::run_spec_field_failure (NativeRunSpecField field) noexcept
 
void pineforge::source::detail::set_retain_retired_rows (bool retain) noexcept
 
bool pineforge::source::detail::retain_retired_rows () noexcept
 
void pineforge::source::detail::set_carry_reissue_bindings (bool carry) noexcept
 
bool pineforge::source::detail::carry_reissue_bindings () noexcept
 
std::uint64_t pineforge::source::detail::retired_rows_erased () noexcept
 
void pineforge::detail::bind_tree_scratch_tables (source::PineExecutionAdapter &, const std::shared_ptr< ScratchSlab > &)
 
void pineforge::detail::bind_id_pair_scratch_tables (source::PineExecutionAdapter &, const std::shared_ptr< ScratchSlab > &)
 
CohortExposureFold pineforge::source::detail::fold_cohort_exposure (const OriginRoster &origins, const std::unordered_map< std::uint64_t, double > &live_units_by_origin) noexcept
 

Macro Definition Documentation

◆ PINEFORGE_POSITION_TAIL_DIAGNOSTICS

◆ PINEFORGE_TAIL_WORK

#define PINEFORGE_TAIL_WORK ( site,
count )
Value:
((void)0)

Definition at line 47 of file pine_adapter.cpp.

Referenced by pineforge::source::PineExecutionAdapter::hash_state().

◆ PINEFORGE_LOOKUP_INDEX_WORK

#define PINEFORGE_LOOKUP_INDEX_WORK ( site,
owner,
run,
count )
Value:
((void)0)

Definition at line 52 of file pine_adapter.cpp.

◆ PINEFORGE_RETIREMENT_OBSERVE

#define PINEFORGE_RETIREMENT_OBSERVE ( rows,
cycle,
askable,
roots,
candidates,
first )
Value:
((void)0)

Definition at line 55 of file pine_adapter.cpp.

◆ PINEFORGE_MARGIN_REVIVAL_OBSERVE

#define PINEFORGE_MARGIN_REVIVAL_OBSERVE ( before,
rows,
event,
context,
units,
cycle,
selected )
Value:
((void)0)

Definition at line 58 of file pine_adapter.cpp.

◆ PF_RARE

◆ PINEFORGE_AUDIT_PLACEMENT_SCAN

#define PINEFORGE_AUDIT_PLACEMENT_SCAN ( table,
... )
Value:
((void)0)

Definition at line 1099 of file pine_adapter.cpp.

◆ PINEFORGE_FULL_CLOSE_EXIT_ORACLE

#define PINEFORGE_FULL_CLOSE_EXIT_ORACLE ( )
Value:
false

Definition at line 29183 of file pine_adapter.cpp.

◆ PINEFORGE_FULL_CLOSE_EXIT_CALL

#define PINEFORGE_FULL_CLOSE_EXIT_CALL ( )
Value:
((void)0)

Definition at line 29186 of file pine_adapter.cpp.