PineForge
unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pine_placement_retention.hpp
Go to the documentation of this file.
1
#pragma once
2
3
// R5 lane V19-E: the test-only switch behind the retired-row erasure.
4
//
5
// PineExecutionAdapter::erase_retired_rows erases, at every bar open, the
6
// placement row of each request that is no longer working and that nothing
7
// can read again. The equivalence witness
8
// (tests/test_adapter_live_state_equivalence.cpp) runs every script twice --
9
// erasing, and with every row retained as before V19-E -- and holds the two
10
// runs' observable transcripts equal bar for bar. The shipped library never
11
// sets the switch. Not part of the installed API.
12
13
#include <cstdint>
14
15
namespace
pineforge::source::detail
{
16
17
// While set, no placement row is erased (process-wide: set it only around
18
// single-threaded runs).
19
void
set_retain_retired_rows
(
bool
retain)
noexcept
;
20
bool
retain_retired_rows
() noexcept;
21
// How many rows the process's adapters have erased (a statistic).
22
std::uint64_t
retired_rows_erased
() noexcept;
23
24
}
// namespace pineforge::source::detail
pineforge::source::detail
Definition
exit_payload_readback.hpp:52
pineforge::source::detail::retain_retired_rows
bool retain_retired_rows() noexcept
Definition
pine_adapter.cpp:3737
pineforge::source::detail::retired_rows_erased
std::uint64_t retired_rows_erased() noexcept
Definition
pine_adapter.cpp:3748
pineforge::source::detail::set_retain_retired_rows
void set_retain_retired_rows(bool retain) noexcept
Definition
pine_adapter.cpp:3734
src
source
pine_placement_retention.hpp
PineForge unreleased — Apache-2.0 —
github.com/pineforge-4pass/pineforge-engine
—
pineforge.dev