|
PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
|
#include <array.hpp>
Public Types | |
| using | value_type = T |
Public Member Functions | |
| ScriptArray ()=default | |
| ScriptArray (detail::o1::Store &store) | |
| ScriptArray (detail::o1::Store &store, std::uint64_t count, const T &initial=na< T >()) | |
| ScriptArray (const ScriptArray &other) | |
| ScriptArray & | operator= (const ScriptArray &other) |
| ScriptArray (ScriptArray &&other) noexcept | |
| ScriptArray & | operator= (ScriptArray &&other) |
| ~ScriptArray () | |
| bool | store_backed () const noexcept |
| detail::o1::Id | id () const noexcept |
| detail::o1::Store & | store () const |
| bool | alive () const |
| std::uint64_t | size () const |
| std::uint64_t | capacity () const |
| bool | empty () const |
| ScriptArray | alias () const |
| ScriptArray | copy () const |
| template<class Index> | |
| T | get (Index index) const |
| template<class Index> | |
| void | set (Index index, const T &value) |
| T | get_i (std::int64_t index) const |
| void | set_i (std::int64_t index, const T &value) |
| T | remove_i (std::int64_t index) |
| template<class Index> | |
| T | get_raw (Index index) const |
| template<class Index> | |
| void | set_raw (Index index, const T &value) |
| template<class Index> | |
| T | remove_raw (Index index) |
| template<class Index> | |
| T | get_v6 (Index index) const |
| template<class Index> | |
| void | set_v6 (Index index, const T &value) |
| template<class Index> | |
| T | remove (Index index) |
| template<class Function> | |
| void | mutate (std::int64_t index, Function &&function) |
| void | reserve (std::uint64_t count) |
| void | push_back (const T &value) |
| void | push (const T &value) |
| template<class Index> | |
| void | insert (Index index, const T &value) |
| template<class Index> | |
| void | insert_raw (Index index, const T &value) |
| void | unshift (const T &value) |
| T | first () const |
| T | last () const |
| T | pop () |
| T | shift () |
| void | clear () |
| void | append (const ScriptArray &other) |
| void | concat (const ScriptArray &other) |
| void | fill (const T &value) |
| template<class From> | |
| void | fill (const T &value, From from) |
| template<class From, class To> | |
| void | fill (const T &value, From from, To to) |
| template<class From, class To> | |
| ScriptArray | slice (From from, To to) const |
| void | reverse () |
| template<class Sink> | |
| void | hash_into (Sink &sink) const |
Static Public Member Functions | |
| static ScriptArray | preallocated (detail::o1::Store &store, std::uint64_t capacity) |
| static ScriptArray | from (detail::o1::Store &store, std::initializer_list< T > values) |
Static Public Attributes | |
| static constexpr std::size_t | element_bytes = sizeof(Cell) |
| static constexpr std::size_t | header_bytes = sizeof(Header) |
| static constexpr std::size_t | payload_page_bytes = detail::script_array::kPayloadPageBytes |
| using pineforge::ScriptArray< T >::value_type = T |
|
default |
|
inlineexplicit |
Definition at line 349 of file array.hpp.
References pineforge::detail::script_array::kHeaderMagic, and store().
|
inline |
Definition at line 354 of file array.hpp.
References pineforge::na(), push_back(), reserve(), and store().
|
inline |
|
inlinenoexcept |
Definition at line 381 of file array.hpp.
References pineforge::detail::o1::kNullId.
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
Definition at line 388 of file array.hpp.
References pineforge::detail::o1::kNullId.
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 409 of file array.hpp.
Referenced by detail::script_array::ElementCodec.
|
inline |
Definition at line 410 of file array.hpp.
References pineforge::detail::script_array::invariant().
Referenced by alias(), detail::script_array::ElementCodec, from(), preallocated(), ScriptArray(), ScriptArray(), and slice().
|
inline |
|
inline |
|
inline |
Definition at line 416 of file array.hpp.
Referenced by preallocated().
|
inline |
|
inline |
Definition at line 418 of file array.hpp.
References ScriptArray(), and store().
|
inline |
Definition at line 419 of file array.hpp.
References ScriptArray().
Referenced by pineforge::detail::script_array::ElementCodec< ScriptArray< U >, void >::decode().
|
inline |
Definition at line 422 of file array.hpp.
References get_raw(), pineforge::detail::script_array::index_integer(), pineforge::na(), and size().
|
inline |
Definition at line 431 of file array.hpp.
References pineforge::detail::script_array::index_integer(), set_raw(), and size().
|
inline |
Definition at line 439 of file array.hpp.
References pineforge::detail::script_array::checked(), and size().
Referenced by get_v6().
|
inline |
Definition at line 442 of file array.hpp.
References pineforge::detail::script_array::checked(), and size().
Referenced by set_v6().
|
inline |
Definition at line 445 of file array.hpp.
References pineforge::detail::script_array::checked(), and size().
Referenced by remove().
|
inline |
Definition at line 449 of file array.hpp.
References pineforge::detail::script_array::checked(), pineforge::detail::script_array::index_integer(), and size().
Referenced by get().
|
inline |
Definition at line 455 of file array.hpp.
References pineforge::detail::script_array::checked(), pineforge::detail::script_array::index_integer(), and size().
Referenced by set().
|
inline |
Definition at line 461 of file array.hpp.
References pineforge::detail::script_array::checked(), pineforge::detail::script_array::index_integer(), and size().
|
inline |
Definition at line 467 of file array.hpp.
References get_i(), pineforge::detail::script_array::index_integer(), and size().
|
inline |
Definition at line 471 of file array.hpp.
References pineforge::detail::script_array::index_integer(), set_i(), and size().
Definition at line 475 of file array.hpp.
References pineforge::detail::script_array::index_integer(), remove_i(), and size().
|
inline |
Definition at line 480 of file array.hpp.
References pineforge::detail::script_array::checked(), and size().
|
inline |
Definition at line 487 of file array.hpp.
References pineforge::detail::script_array::invariant().
Referenced by preallocated(), and ScriptArray().
|
inline |
Definition at line 497 of file array.hpp.
References pineforge::detail::script_array::ElementCodec< T, Enable >::encode(), and pineforge::detail::script_array::size_error().
Referenced by push(), and ScriptArray().
|
inline |
Definition at line 503 of file array.hpp.
References push_back().
|
inline |
Definition at line 506 of file array.hpp.
References pineforge::detail::script_array::checked(), pineforge::detail::script_array::index_integer(), and size().
Referenced by unshift().
|
inline |
Definition at line 513 of file array.hpp.
References pineforge::detail::script_array::checked(), pineforge::detail::script_array::index_integer(), and size().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 529 of file array.hpp.
References empty(), pineforge::detail::script_array::empty_array_error(), and size().
|
inline |
Definition at line 533 of file array.hpp.
References empty(), and pineforge::detail::script_array::empty_array_error().
|
inline |
Definition at line 538 of file array.hpp.
References pineforge::detail::script_array::ElementCodec< T, Enable >::destroy(), and pineforge::detail::script_array::ElementCodec< T, Enable >::owns_objects.
|
inline |
Definition at line 547 of file array.hpp.
References pineforge::detail::script_array::ElementCodec< T, Enable >::clone(), size(), and pineforge::detail::script_array::size_error().
Referenced by concat().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 563 of file array.hpp.
References pineforge::detail::script_array::checked(), first(), from(), pineforge::detail::script_array::index_integer(), last(), and size().
|
inline |
Definition at line 573 of file array.hpp.
References pineforge::detail::script_array::checked(), pineforge::detail::script_array::ElementCodec< T, Enable >::clone(), first(), from(), pineforge::detail::script_array::index_integer(), pineforge::detail::script_array::inverted_range_error(), last(), preallocated(), size(), and store().
|
inline |
|
inline |
Definition at line 599 of file array.hpp.
References pineforge::detail::script_array::ElementCodec< T, Enable >::hash(), pineforge::detail::script_array::kHeaderMagic, and size().
Referenced by pineforge::detail::script_array::ElementCodec< ScriptArray< U >, void >::hash().
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |