|
PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
|
#include <id_table_read_cache.hpp>
Public Member Functions | |
| IdTableReadCache (std::size_t bytes=0) | |
| IdTableReadCache (const IdTableReadCache &)=delete | |
| IdTableReadCache & | operator= (const IdTableReadCache &)=delete |
| IdTableReadCache (IdTableReadCache &&other) noexcept | |
| IdTableReadCache & | operator= (IdTableReadCache &&other) noexcept |
| void | set_capacity (std::size_t bytes) |
| void | invalidate () const noexcept |
| void | invalidate_from (unsigned file, std::uint64_t offset) const noexcept |
| void | release () noexcept |
| void | before_write (unsigned file, std::uint64_t logical_end, std::uint64_t offset, std::size_t length) const noexcept |
| template<class File> | |
| void | read (const File &source, bool plain_disk, std::uint64_t logical_end, unsigned file, std::uint64_t offset, void *destination, std::size_t length) const |
Static Public Attributes | |
| static constexpr std::size_t | kPageBytes = 4096 |
| static constexpr std::size_t | kCacheBytes = 64 * 1024 |
| static constexpr std::size_t | kSlots = kCacheBytes / kPageBytes |
| static constexpr std::size_t | kPairCacheBytes = kCacheBytes / 2 |
| static constexpr std::size_t | kAdapterCacheBytes = 3 * kCacheBytes |
Definition at line 37 of file id_table_read_cache.hpp.
|
inlineexplicit |
Definition at line 45 of file id_table_read_cache.hpp.
References set_capacity().
Referenced by IdTableReadCache(), IdTableReadCache(), operator=(), and operator=().
|
delete |
References IdTableReadCache().
|
inlinenoexcept |
Definition at line 48 of file id_table_read_cache.hpp.
References IdTableReadCache().
|
delete |
References IdTableReadCache().
|
inlinenoexcept |
Definition at line 49 of file id_table_read_cache.hpp.
References IdTableReadCache(), and release().
|
inline |
Definition at line 59 of file id_table_read_cache.hpp.
References kCacheBytes, kPageBytes, and release().
Referenced by IdTableReadCache().
|
inlinenoexcept |
Definition at line 65 of file id_table_read_cache.hpp.
Referenced by release().
|
inlinenoexcept |
Definition at line 68 of file id_table_read_cache.hpp.
References kPageBytes.
Referenced by before_write().
|
inlinenoexcept |
Definition at line 73 of file id_table_read_cache.hpp.
References invalidate().
Referenced by operator=(), and set_capacity().
|
inlinenoexcept |
Definition at line 75 of file id_table_read_cache.hpp.
References invalidate_from(), and kPageBytes.
|
inline |
Definition at line 91 of file id_table_read_cache.hpp.
References kPageBytes.
|
staticconstexpr |
Definition at line 39 of file id_table_read_cache.hpp.
Referenced by before_write(), invalidate_from(), read(), and set_capacity().
|
staticconstexpr |
Definition at line 40 of file id_table_read_cache.hpp.
Referenced by set_capacity().
|
staticconstexpr |
Definition at line 41 of file id_table_read_cache.hpp.
|
staticconstexpr |
Definition at line 42 of file id_table_read_cache.hpp.
|
staticconstexpr |
Definition at line 43 of file id_table_read_cache.hpp.