|
PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
|
#include <script_string.hpp>
Data Structures | |
| struct | Handle |
Public Types | |
| using | size_type = std::uint64_t |
Public Member Functions | |
| ScriptString () noexcept=default | |
| ScriptString (detail::o1::Store &, std::string_view bytes={}, size_type proven_byte_bound=0) | |
| ScriptString (const char *) | |
| ScriptString (const std::string &) | |
| ScriptString (std::string_view) | |
| ScriptString (const ScriptString &) | |
| ScriptString (ScriptString &&) noexcept | |
| ScriptString & | operator= (const ScriptString &) |
| ScriptString & | operator= (ScriptString &&) |
| ~ScriptString () | |
| void | swap (ScriptString &) noexcept |
| size_type | size () const noexcept |
| size_type | length () const noexcept |
| bool | empty () const noexcept |
| detail::o1::Store * | store () const noexcept |
| void | keep_store_alive (std::shared_ptr< void > owner) noexcept |
| void | reserve (size_type proven_byte_bound) |
| ScriptString & | append (const ScriptString &) |
| ScriptString & | append (std::string_view) |
| ScriptString & | append (const char *value) |
| ScriptString & | append (const std::string &value) |
| ScriptString & | operator+= (const ScriptString &value) |
| ScriptString & | operator+= (std::string_view value) |
| ScriptString & | operator+= (const char *value) |
| ScriptString & | operator+= (const std::string &value) |
| ScriptString & | operator+= (char value) |
| void | clear () |
| char | operator[] (size_type) const |
| char | at (size_type) const |
| ScriptString | substr (size_type pos=0, size_type count=npos) const |
| std::size_t | read (size_type offset, void *destination, std::size_t bytes) const |
| int | compare (const ScriptString &) const |
| int | compare (std::string_view) const |
| int | compare (const char *value) const |
| int | compare (const std::string &value) const |
| int | compare (size_type pos, size_type count, const ScriptString &) const |
| size_type | find (const ScriptString &, size_type pos=0) const |
| size_type | find (std::string_view, size_type pos=0) const |
| size_type | find (const char *value, size_type pos=0) const |
| size_type | find (const std::string &value, size_type pos=0) const |
| size_type | find (char, size_type pos=0) const |
| std::size_t | hash () const |
| template<class Sink> | |
| void | hash_into (Sink &sink) const |
| Handle | pin () const |
| std::string | to_std_string () const |
| template<class Function> | |
| void | with_std_string (Function &&function) |
Static Public Member Functions | |
| static ScriptString | from_handle (detail::o1::Store &, Handle) |
| static void | unpin (detail::o1::Store &, Handle) |
Static Public Attributes | |
| static constexpr size_type | npos = UINT64_MAX |
| static constexpr std::size_t | chunk_bytes = 4096 |
Definition at line 40 of file script_string.hpp.
| using pineforge::ScriptString::size_type = std::uint64_t |
Definition at line 42 of file script_string.hpp.
|
defaultnoexcept |
Referenced by append(), append(), append(), append(), compare(), compare(), find(), from_handle(), operator+=(), operator+=(), operator+=(), operator+=(), operator+=(), operator=(), operator=(), ScriptString(), ScriptString(), ScriptString(), substr(), swap(), with_std_string(), and ~ScriptString().
|
explicit |
References ScriptString().
| pineforge::ScriptString::ScriptString | ( | const char * | ) |
| pineforge::ScriptString::ScriptString | ( | const std::string & | ) |
| pineforge::ScriptString::ScriptString | ( | std::string_view | ) |
| pineforge::ScriptString::ScriptString | ( | const ScriptString & | ) |
References ScriptString().
|
noexcept |
References ScriptString().
| pineforge::ScriptString::~ScriptString | ( | ) |
References ScriptString().
| ScriptString & pineforge::ScriptString::operator= | ( | const ScriptString & | ) |
References ScriptString().
| ScriptString & pineforge::ScriptString::operator= | ( | ScriptString && | ) |
References ScriptString().
|
noexcept |
References ScriptString(), and swap().
Referenced by swap(), and with_std_string().
|
inlinenoexcept |
Definition at line 67 of file script_string.hpp.
References size().
Referenced by empty(), hash_into(), length(), and size().
|
inlinenoexcept |
Definition at line 68 of file script_string.hpp.
References size().
|
inlinenoexcept |
Definition at line 69 of file script_string.hpp.
References size().
|
inlinenoexcept |
Definition at line 70 of file script_string.hpp.
|
inlinenoexcept |
Definition at line 74 of file script_string.hpp.
| void pineforge::ScriptString::reserve | ( | size_type | proven_byte_bound | ) |
| ScriptString & pineforge::ScriptString::append | ( | const ScriptString & | ) |
| ScriptString & pineforge::ScriptString::append | ( | std::string_view | ) |
References ScriptString().
|
inline |
Definition at line 81 of file script_string.hpp.
References append(), and ScriptString().
Referenced by append().
|
inline |
Definition at line 82 of file script_string.hpp.
References append(), and ScriptString().
Referenced by append().
|
inline |
Definition at line 83 of file script_string.hpp.
References append(), and ScriptString().
|
inline |
Definition at line 84 of file script_string.hpp.
References append(), and ScriptString().
|
inline |
Definition at line 85 of file script_string.hpp.
References append(), and ScriptString().
|
inline |
Definition at line 86 of file script_string.hpp.
References append(), and ScriptString().
|
inline |
Definition at line 87 of file script_string.hpp.
References append(), and ScriptString().
| void pineforge::ScriptString::clear | ( | ) |
Referenced by pineforge::operator+().
| char pineforge::ScriptString::operator[] | ( | size_type | ) | const |
| char pineforge::ScriptString::at | ( | size_type | ) | const |
| ScriptString pineforge::ScriptString::substr | ( | size_type | pos = 0, |
| size_type | count = npos ) const |
References npos, and ScriptString().
| std::size_t pineforge::ScriptString::read | ( | size_type | offset, |
| void * | destination, | ||
| std::size_t | bytes ) const |
Referenced by hash_into().
| int pineforge::ScriptString::compare | ( | const ScriptString & | ) | const |
References ScriptString().
Referenced by pineforge::operator<(), pineforge::operator<(), pineforge::operator<=(), pineforge::operator==(), pineforge::operator==(), pineforge::operator>(), and pineforge::operator>=().
| int pineforge::ScriptString::compare | ( | std::string_view | ) | const |
|
inline |
|
inline |
| int pineforge::ScriptString::compare | ( | size_type | pos, |
| size_type | count, | ||
| const ScriptString & | ) const |
References ScriptString().
| size_type pineforge::ScriptString::find | ( | const ScriptString & | , |
| size_type | pos = 0 ) const |
References ScriptString().
| std::size_t pineforge::ScriptString::hash | ( | ) | const |
|
inline |
Definition at line 113 of file script_string.hpp.
| Handle pineforge::ScriptString::pin | ( | ) | const |
|
static |
References ScriptString().
Referenced by pineforge::detail::MapExternalCodec< ScriptString >::decode(), and pineforge::detail::MapExternalCodec< ScriptString >::retain().
|
static |
| std::string pineforge::ScriptString::to_std_string | ( | ) | const |
Referenced by with_std_string().
|
inline |
Definition at line 129 of file script_string.hpp.
References ScriptString(), swap(), and to_std_string().
|
staticconstexpr |
Definition at line 43 of file script_string.hpp.
Referenced by pineforge::ScriptStringParts::end(), pineforge::ScriptStringParts::iterator::ScriptStringParts, and substr().
|
staticconstexpr |
Definition at line 44 of file script_string.hpp.