PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::detail::DiskIdTable< Value > Class Template Reference

#include <disk_id_table.hpp>

Public Types

using Offset = std::uint64_t
 

Public Member Functions

 DiskIdTable ()=default
 
 DiskIdTable (const DiskIdTable &)=delete
 
DiskIdTable & operator= (const DiskIdTable &)=delete
 
 DiskIdTable (DiskIdTable &&other) noexcept
 
DiskIdTable & operator= (DiskIdTable &&other) noexcept
 
void set_store (ScratchStore store) noexcept
 
bool arena_backed () const noexcept
 
bool bounded_cohorts () const noexcept
 
void set_directory (const std::string &directory)
 
void bind_scratch (const std::shared_ptr< ScratchSlab > &slab, ScratchResource resource)
 
void clear () noexcept
 
std::uint64_t size () const noexcept
 
std::uint64_t file_bytes () const noexcept
 
Offset first_inserted () const noexcept
 
Offset next_inserted (Offset at) const
 
std::string key (Offset at) const
 
Offset first_sorted () const
 
Offset next_sorted (Offset at) const
 
std::optional< Offset > find (const std::string &key) const
 
void require_insert (const std::string &key) const
 
template<class Enumerate>
void require_inserts (Enumerate &&enumerate) const
 
Value get (Offset at) const
 
void set (Offset at, const Value &value)
 
std::pair< Offset, bool > insert (const std::string &key, const Value &value)
 
template<class F>
void for_each_sorted (F &&visit) const
 
template<class F>
void for_each_inserted (F &&visit) const
 

Detailed Description

template<class Value>
class pineforge::detail::DiskIdTable< Value >

Definition at line 24 of file disk_id_table.hpp.

Member Typedef Documentation

◆ Offset

template<class Value>
using pineforge::detail::DiskIdTable< Value >::Offset = std::uint64_t

Definition at line 33 of file disk_id_table.hpp.

Constructor & Destructor Documentation

◆ DiskIdTable() [1/3]

template<class Value>
pineforge::detail::DiskIdTable< Value >::DiskIdTable ( )
default

◆ DiskIdTable() [2/3]

template<class Value>
pineforge::detail::DiskIdTable< Value >::DiskIdTable ( const DiskIdTable< Value > & )
delete

◆ DiskIdTable() [3/3]

template<class Value>
pineforge::detail::DiskIdTable< Value >::DiskIdTable ( DiskIdTable< Value > && other)
inlinenoexcept

Definition at line 37 of file disk_id_table.hpp.

Member Function Documentation

◆ operator=() [1/2]

template<class Value>
DiskIdTable & pineforge::detail::DiskIdTable< Value >::operator= ( const DiskIdTable< Value > & )
delete

◆ operator=() [2/2]

template<class Value>
DiskIdTable & pineforge::detail::DiskIdTable< Value >::operator= ( DiskIdTable< Value > && other)
inlinenoexcept

Definition at line 38 of file disk_id_table.hpp.

◆ set_store()

template<class Value>
void pineforge::detail::DiskIdTable< Value >::set_store ( ScratchStore store)
inlinenoexcept

Definition at line 49 of file disk_id_table.hpp.

◆ arena_backed()

template<class Value>
bool pineforge::detail::DiskIdTable< Value >::arena_backed ( ) const
inlinenoexcept

Definition at line 50 of file disk_id_table.hpp.

◆ bounded_cohorts()

template<class Value>
bool pineforge::detail::DiskIdTable< Value >::bounded_cohorts ( ) const
inlinenoexcept

Definition at line 51 of file disk_id_table.hpp.

◆ set_directory()

template<class Value>
void pineforge::detail::DiskIdTable< Value >::set_directory ( const std::string & directory)
inline

Definition at line 54 of file disk_id_table.hpp.

◆ bind_scratch()

template<class Value>
void pineforge::detail::DiskIdTable< Value >::bind_scratch ( const std::shared_ptr< ScratchSlab > & slab,
ScratchResource resource )
inline

Definition at line 55 of file disk_id_table.hpp.

Referenced by pineforge::detail::bind_tree_scratch_tables().

◆ clear()

template<class Value>
void pineforge::detail::DiskIdTable< Value >::clear ( )
inlinenoexcept

Definition at line 64 of file disk_id_table.hpp.

◆ size()

template<class Value>
std::uint64_t pineforge::detail::DiskIdTable< Value >::size ( ) const
inlinenoexcept

Definition at line 69 of file disk_id_table.hpp.

Referenced by pineforge::detail::bind_tree_scratch_tables().

◆ file_bytes()

template<class Value>
std::uint64_t pineforge::detail::DiskIdTable< Value >::file_bytes ( ) const
inlinenoexcept

Definition at line 70 of file disk_id_table.hpp.

◆ first_inserted()

template<class Value>
Offset pineforge::detail::DiskIdTable< Value >::first_inserted ( ) const
inlinenoexcept

Definition at line 71 of file disk_id_table.hpp.

◆ next_inserted()

template<class Value>
Offset pineforge::detail::DiskIdTable< Value >::next_inserted ( Offset at) const
inline

Definition at line 72 of file disk_id_table.hpp.

◆ key()

template<class Value>
std::string pineforge::detail::DiskIdTable< Value >::key ( Offset at) const
inline

Definition at line 73 of file disk_id_table.hpp.

◆ first_sorted()

template<class Value>
Offset pineforge::detail::DiskIdTable< Value >::first_sorted ( ) const
inline

◆ next_sorted()

template<class Value>
Offset pineforge::detail::DiskIdTable< Value >::next_sorted ( Offset at) const
inline

◆ find()

template<class Value>
std::optional< Offset > pineforge::detail::DiskIdTable< Value >::find ( const std::string & key) const
inline

◆ require_insert()

template<class Value>
void pineforge::detail::DiskIdTable< Value >::require_insert ( const std::string & key) const
inline

Definition at line 102 of file disk_id_table.hpp.

◆ require_inserts()

template<class Value>
template<class Enumerate>
void pineforge::detail::DiskIdTable< Value >::require_inserts ( Enumerate && enumerate) const
inline

Definition at line 109 of file disk_id_table.hpp.

◆ get()

◆ set()

template<class Value>
void pineforge::detail::DiskIdTable< Value >::set ( Offset at,
const Value & value )
inline

Definition at line 143 of file disk_id_table.hpp.

◆ insert()

template<class Value>
std::pair< Offset, bool > pineforge::detail::DiskIdTable< Value >::insert ( const std::string & key,
const Value & value )
inline

Definition at line 147 of file disk_id_table.hpp.

◆ for_each_sorted()

template<class Value>
template<class F>
void pineforge::detail::DiskIdTable< Value >::for_each_sorted ( F && visit) const
inline

Definition at line 193 of file disk_id_table.hpp.

◆ for_each_inserted()

template<class Value>
template<class F>
void pineforge::detail::DiskIdTable< Value >::for_each_inserted ( F && visit) const
inline

Definition at line 197 of file disk_id_table.hpp.


The documentation for this class was generated from the following file: