|
PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
|
Data Structures | |
| class | Core |
| struct | Fold |
Typedefs | |
| using | Byte = unsigned char |
Functions | |
| std::uint64_t | ld64 (const Byte *p) noexcept |
| void | st64 (Byte *p, std::uint64_t value) noexcept |
| std::uint32_t | ld32 (const Byte *p) noexcept |
| void | st32 (Byte *p, std::uint32_t value) noexcept |
Variables | |
| constexpr std::uint64_t | kMagic = 0x3142535243534650ull |
| constexpr std::uint64_t | kVersion = 1 |
| constexpr std::uint32_t | kTypeIndexLeaf = 2 |
| constexpr std::uint32_t | kTypeIndexNode = 3 |
| constexpr std::uint32_t | kTypeHandleLeaf = 4 |
| constexpr std::uint32_t | kTypeHandleNode = 5 |
| constexpr std::uint32_t | kTypeCells = 6 |
| constexpr std::uint32_t | kTypeBlob = 7 |
| constexpr std::uint32_t | kTypeFree = 8 |
| constexpr std::size_t | kHeader = 16 |
| constexpr std::size_t | kTrailer = 16 |
| constexpr std::size_t | kCell = 64 |
| constexpr std::size_t | kCellPayload = 56 |
| constexpr std::size_t | kWorkPages = 6 |
| constexpr std::uint64_t | kLive = 1 |
| constexpr std::uint64_t | kGhost = 2 |
| constexpr unsigned | kMaxDepth = 48 |
| constexpr std::size_t | kMaxHeight = 12 |
| constexpr std::size_t | kSuperFields = 18 |
| constexpr std::uint64_t | kNoSlot = UINT64_MAX |
| using pineforge::detail::scratch_impl::Byte = unsigned char |
Definition at line 27 of file scratch_store_impl.hpp.
|
inlinenoexcept |
Definition at line 29 of file scratch_store_impl.hpp.
References pineforge::detail::value.
Referenced by pineforge::detail::scratch_impl::Core::alloc_page(), pineforge::detail::scratch_impl::Core::blob_free(), pineforge::detail::scratch_impl::Core::blob_read(), pineforge::detail::scratch_impl::Core::cell_alloc(), pineforge::detail::scratch_impl::Core::decode_super(), pineforge::detail::scratch_impl::Core::descend(), pineforge::detail::scratch_impl::Core::digest(), pineforge::detail::scratch_impl::Core::erase_impl(), pineforge::detail::scratch_impl::Core::for_each(), pineforge::detail::scratch_impl::Core::hfind_leaf(), pineforge::detail::scratch_impl::Core::hget(), pineforge::detail::scratch_impl::Core::hset(), pineforge::detail::scratch_impl::Core::insert_up(), pineforge::detail::scratch_impl::Core::leaf_entry(), pineforge::detail::scratch_impl::Core::leftmost_leaf(), pineforge::detail::scratch_impl::Core::lower_bound(), pineforge::detail::scratch_impl::Core::next(), pineforge::detail::scratch_impl::Core::remove_child(), pineforge::detail::scratch_impl::Core::rollback_impl(), pineforge::detail::scratch_impl::Core::touch(), pineforge::detail::scratch_impl::Core::tree_erase(), and pineforge::detail::scratch_impl::Core::tree_insert().
|
inlinenoexcept |
Definition at line 34 of file scratch_store_impl.hpp.
References pineforge::detail::value.
Referenced by pineforge::detail::scratch_impl::Core::blob_create(), pineforge::detail::scratch_impl::Core::commit_impl(), pineforge::detail::scratch_impl::Core::encode_super(), pineforge::detail::scratch_impl::Core::hfind_leaf(), pineforge::detail::scratch_impl::Core::hset(), pineforge::detail::scratch_impl::Core::insert_up(), pineforge::detail::scratch_impl::Fold::le64(), pineforge::detail::scratch_impl::Core::new_root(), pineforge::detail::scratch_impl::Core::remove_child(), pineforge::detail::scratch_impl::Core::rollback_impl(), pineforge::detail::scratch_impl::Core::touch(), pineforge::detail::scratch_impl::Core::tree_insert(), pineforge::detail::scratch_impl::Core::wr64(), and pineforge::detail::scratch_impl::Core::wr_page().
|
inlinenoexcept |
Definition at line 37 of file scratch_store_impl.hpp.
Referenced by pineforge::detail::scratch_impl::Core::hfind_leaf(), pineforge::detail::scratch_impl::Core::hset(), pineforge::detail::scratch_impl::Core::index_count(), pineforge::detail::scratch_impl::Core::insert_up(), pineforge::detail::scratch_impl::Core::remove_child(), pineforge::detail::scratch_impl::Core::tree_erase(), and pineforge::detail::scratch_impl::Core::tree_insert().
|
inlinenoexcept |
Definition at line 41 of file scratch_store_impl.hpp.
References pineforge::detail::value.
Referenced by pineforge::detail::scratch_impl::Core::blob_create(), pineforge::detail::scratch_impl::Core::cell_alloc(), pineforge::detail::scratch_impl::Core::hfind_leaf(), pineforge::detail::scratch_impl::Core::insert_up(), pineforge::detail::scratch_impl::Core::new_root(), pineforge::detail::scratch_impl::Core::remove_child(), pineforge::detail::scratch_impl::Core::tree_erase(), pineforge::detail::scratch_impl::Core::tree_insert(), and pineforge::detail::scratch_impl::Core::wr32().
|
constexpr |
Definition at line 60 of file scratch_store_impl.hpp.
Referenced by pineforge::detail::scratch_impl::Core::decode_super(), and pineforge::detail::scratch_impl::Core::encode_super().
|
constexpr |
Definition at line 61 of file scratch_store_impl.hpp.
Referenced by pineforge::detail::scratch_impl::Core::decode_super(), and pineforge::detail::scratch_impl::Core::encode_super().
|
constexpr |
Definition at line 62 of file scratch_store_impl.hpp.
Referenced by pineforge::detail::scratch_impl::Core::tree_insert().
|
constexpr |
Definition at line 63 of file scratch_store_impl.hpp.
Referenced by pineforge::detail::scratch_impl::Core::insert_up(), and pineforge::detail::scratch_impl::Core::new_root().
|
constexpr |
Definition at line 64 of file scratch_store_impl.hpp.
Referenced by pineforge::detail::scratch_impl::Core::hfind_leaf().
|
constexpr |
Definition at line 65 of file scratch_store_impl.hpp.
Referenced by pineforge::detail::scratch_impl::Core::hfind_leaf().
|
constexpr |
Definition at line 66 of file scratch_store_impl.hpp.
Referenced by pineforge::detail::scratch_impl::Core::cell_alloc().
|
constexpr |
Definition at line 67 of file scratch_store_impl.hpp.
Referenced by pineforge::detail::scratch_impl::Core::blob_create().
|
constexpr |
Definition at line 68 of file scratch_store_impl.hpp.
Referenced by pineforge::detail::scratch_impl::Core::free_page().
|
constexpr |
Definition at line 69 of file scratch_store_impl.hpp.
Referenced by pineforge::detail::scratch_impl::Core::cell_off(), pineforge::detail::scratch_impl::Core::hget(), and pineforge::detail::scratch_impl::Core::hset().
|
constexpr |
Definition at line 70 of file scratch_store_impl.hpp.
Referenced by pineforge::detail::scratch_impl::Core::Core(), pineforge::detail::scratch_impl::Core::rollback_impl(), and pineforge::detail::scratch_impl::Core::wr_page().
|
constexpr |
Definition at line 71 of file scratch_store_impl.hpp.
Referenced by pineforge::detail::scratch_impl::Core::blob_create(), pineforge::detail::scratch_impl::Core::cell_off(), and pineforge::detail::scratch_impl::Core::Core().
|
constexpr |
Definition at line 72 of file scratch_store_impl.hpp.
Referenced by pineforge::detail::scratch_impl::Core::blob_create(), and pineforge::detail::scratch_impl::Core::blob_read().
|
constexpr |
Definition at line 73 of file scratch_store_impl.hpp.
Referenced by pineforge::detail::scratch_impl::Core::required_bytes().
|
constexpr |
Definition at line 74 of file scratch_store_impl.hpp.
Referenced by pineforge::detail::scratch_impl::Core::erase(), pineforge::detail::scratch_impl::Core::live_entry(), and pineforge::detail::scratch_impl::Core::put_impl().
|
constexpr |
Definition at line 75 of file scratch_store_impl.hpp.
Referenced by pineforge::detail::scratch_impl::Core::erase_impl(), and pineforge::detail::scratch_impl::Core::release_separator().
|
constexpr |
Definition at line 76 of file scratch_store_impl.hpp.
Referenced by pineforge::detail::scratch_impl::Core::descend().
|
constexpr |
Definition at line 78 of file scratch_store_impl.hpp.
Referenced by pineforge::detail::scratch_impl::Core::hfind_leaf().
|
constexpr |
Definition at line 79 of file scratch_store_impl.hpp.
Referenced by pineforge::detail::scratch_impl::Core::decode_super(), and pineforge::detail::scratch_impl::Core::encode_super().
|
constexpr |
Definition at line 80 of file scratch_store_impl.hpp.
Referenced by pineforge::detail::scratch_impl::Core::commit_impl(), and pineforge::detail::scratch_impl::Core::rollback_impl().