|
PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
|
Data Structures | |
| struct | ElementCodec |
| struct | ElementCodec< ScriptArray< U >, void > |
| struct | ElementCodec< std::string, void > |
| struct | HasId |
| struct | HasId< T, std::void_t< decltype(std::declval< T >().id)> > |
| struct | StoreHeader |
Functions | |
| void | index_error (const char *, std::int64_t, std::uint64_t, bool missing=false) |
| void | index_error_double (const char *, double, std::uint64_t) |
| void | empty_array_error (const char *) |
| void | size_error () |
| void | invariant (const char *) |
| void | inverted_range_error (const char *) |
| std::int64_t | checked_index_double (double, std::uint64_t, const char *) |
| o1::Id | clone_bytes (const o1::Store &, o1::Id, o1::Store &) |
| o1::Id | store_string (o1::Store &, const std::string &) |
| std::string | load_string (const o1::Store &, o1::Id) |
| void | read_exact (const o1::Store &store, o1::Id id, std::uint64_t offset, void *destination, std::size_t bytes) |
| void | write_exact (o1::Store &store, o1::Id id, std::uint64_t offset, const void *source, std::size_t bytes) |
| std::uint64_t | checked (std::int64_t raw, std::uint64_t size, const char *method, bool relative, bool end=false) |
| template<class Index> | |
| std::int64_t | index_integer (Index value, std::uint64_t size, const char *method) |
Variables | |
| constexpr std::uint64_t | kHeaderMagic = UINT64_C(0x5046415252303032) |
| constexpr std::uint64_t | kPayloadPageBytes = 4096 |
| void pineforge::detail::script_array::index_error | ( | const char * | , |
| std::int64_t | , | ||
| std::uint64_t | , | ||
| bool | missing = false ) |
Referenced by checked(), and index_integer().
| void pineforge::detail::script_array::index_error_double | ( | const char * | , |
| double | , | ||
| std::uint64_t | ) |
Referenced by index_integer().
| void pineforge::detail::script_array::empty_array_error | ( | const char * | ) |
| void pineforge::detail::script_array::size_error | ( | ) |
Referenced by pineforge::ScriptArray< T >::append(), and pineforge::ScriptArray< T >::push_back().
| void pineforge::detail::script_array::invariant | ( | const char * | ) |
Referenced by read_exact(), pineforge::ScriptArray< T >::reserve(), pineforge::ScriptArray< T >::store(), and write_exact().
| void pineforge::detail::script_array::inverted_range_error | ( | const char * | ) |
Referenced by pineforge::ScriptArray< T >::slice().
| std::int64_t pineforge::detail::script_array::checked_index_double | ( | double | , |
| std::uint64_t | , | ||
| const char * | ) |
Referenced by index_integer().
|
inline |
Definition at line 69 of file array.hpp.
References invariant(), and pineforge::detail::o1::Store::read().
Referenced by pineforge::detail::script_array::ElementCodec< std::string, void >::hash().
|
inline |
Definition at line 75 of file array.hpp.
References invariant(), and pineforge::detail::o1::Store::write().
|
inline |
Definition at line 81 of file array.hpp.
References pineforge::detail::end, and index_error().
Referenced by pineforge::ScriptArray< T >::fill(), pineforge::ScriptArray< T >::get_i(), pineforge::ScriptArray< T >::get_raw(), pineforge::ScriptArray< T >::insert(), pineforge::ScriptArray< T >::insert_raw(), pineforge::ScriptArray< T >::mutate(), pineforge::ScriptArray< T >::remove_i(), pineforge::ScriptArray< T >::remove_raw(), pineforge::ScriptArray< T >::set_i(), pineforge::ScriptArray< T >::set_raw(), and pineforge::ScriptArray< T >::slice().
| std::int64_t pineforge::detail::script_array::index_integer | ( | Index | value, |
| std::uint64_t | size, | ||
| const char * | method ) |
Definition at line 94 of file array.hpp.
References checked_index_double(), index_error(), index_error_double(), pineforge::is_na(), and pineforge::detail::value.
Referenced by pineforge::ScriptArray< T >::fill(), pineforge::ScriptArray< T >::get(), pineforge::ScriptArray< T >::get_raw(), pineforge::ScriptArray< T >::get_v6(), pineforge::ScriptArray< T >::insert(), pineforge::ScriptArray< T >::insert_raw(), pineforge::ScriptArray< T >::remove(), pineforge::ScriptArray< T >::remove_raw(), pineforge::ScriptArray< T >::set(), pineforge::ScriptArray< T >::set_raw(), pineforge::ScriptArray< T >::set_v6(), and pineforge::ScriptArray< T >::slice().
|
inlineconstexpr |
Definition at line 55 of file array.hpp.
Referenced by pineforge::ScriptArray< T >::hash_into(), and pineforge::ScriptArray< T >::ScriptArray().
|
inlineconstexpr |
Definition at line 56 of file array.hpp.
Referenced by pineforge::detail::script_array::ElementCodec< std::string, void >::hash().