PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::detail::CommandScratchStore Class Referencefinal

#include <scratch_store.hpp>

Data Structures

struct  State
 

Public Member Functions

 CommandScratchStore (ScratchStoreConfig config, ScratchBacking *backing) noexcept
 
 ~CommandScratchStore () noexcept override
 
 CommandScratchStore (const CommandScratchStore &)=delete
 
CommandScratchStore & operator= (const CommandScratchStore &)=delete
 
 CommandScratchStore (CommandScratchStore &&)=delete
 
CommandScratchStore & operator= (CommandScratchStore &&)=delete
 
ScratchStatus status () const noexcept
 
const ReportScratchIoError * carried_failure () const noexcept override
 
std::size_t page_size () const noexcept override
 
std::uint64_t record_count () const noexcept override
 
bool transaction_active () const noexcept
 
ScratchStatus begin () noexcept
 
ScratchStatus put (const ScratchByteSource &key, const ScratchByteSource &value, ScratchHandle &result) noexcept
 
ScratchStatus erase (ScratchHandle) noexcept
 
ScratchStatus commit (ScratchDurability durability) noexcept
 
ScratchStatus rollback () noexcept
 
ScratchStatus point (ScratchHandle, ScratchRecordInfo &) const noexcept override
 
ScratchStatus read (ScratchHandle, ScratchField, std::uint64_t offset, ScratchBuffer destination) const noexcept override
 
ScratchStatus visit (ScratchHandle, ScratchBuffer page, ScratchChunkVisitor, void *context) const noexcept override
 
ScratchStatus for_each (ScratchBuffer page, ScratchRecordVisitor, void *context) const noexcept override
 
ScratchStatus first (ScratchHandle &result) const noexcept
 
ScratchStatus next (ScratchHandle current, ScratchHandle &result) const noexcept
 
ScratchStatus lower_bound (const ScratchByteSource &probe, ScratchHandle &result) const noexcept
 
ScratchStatus ordered_digest (ScratchBuffer page, std::uint64_t &result) const noexcept
 
ScratchStatus state_digest (ScratchBuffer page, std::uint64_t &result) const noexcept
 
ScratchStoreStats stats () const noexcept
 
- Public Member Functions inherited from pineforge::detail::ScratchReadback
virtual ~ScratchReadback () noexcept=default
 

Detailed Description

Definition at line 66 of file scratch_store.hpp.

Constructor & Destructor Documentation

◆ CommandScratchStore() [1/3]

pineforge::detail::CommandScratchStore::CommandScratchStore ( ScratchStoreConfig config,
ScratchBacking * backing )
inlinenoexcept

◆ ~CommandScratchStore()

pineforge::detail::CommandScratchStore::~CommandScratchStore ( )
inlineoverridenoexcept

◆ CommandScratchStore() [2/3]

pineforge::detail::CommandScratchStore::CommandScratchStore ( const CommandScratchStore & )
delete

References CommandScratchStore().

◆ CommandScratchStore() [3/3]

pineforge::detail::CommandScratchStore::CommandScratchStore ( CommandScratchStore && )
delete

References CommandScratchStore().

Member Function Documentation

◆ operator=() [1/2]

CommandScratchStore & pineforge::detail::CommandScratchStore::operator= ( const CommandScratchStore & )
delete

References CommandScratchStore().

◆ operator=() [2/2]

◆ status()

ScratchStatus pineforge::detail::CommandScratchStore::status ( ) const
inlinenoexcept

◆ carried_failure()

const ReportScratchIoError * pineforge::detail::CommandScratchStore::carried_failure ( ) const
inlineoverridevirtualnoexcept

◆ page_size()

std::size_t pineforge::detail::CommandScratchStore::page_size ( ) const
inlineoverridevirtualnoexcept

Implements pineforge::detail::ScratchReadback.

Definition at line 1773 of file scratch_store_impl.hpp.

Referenced by operator=().

◆ record_count()

std::uint64_t pineforge::detail::CommandScratchStore::record_count ( ) const
inlineoverridevirtualnoexcept

◆ transaction_active()

bool pineforge::detail::CommandScratchStore::transaction_active ( ) const
inlinenoexcept

◆ begin()

ScratchStatus pineforge::detail::CommandScratchStore::begin ( )
inlinenoexcept

◆ put()

ScratchStatus pineforge::detail::CommandScratchStore::put ( const ScratchByteSource & key,
const ScratchByteSource & value,
ScratchHandle & result )
inlinenoexcept

◆ erase()

ScratchStatus pineforge::detail::CommandScratchStore::erase ( ScratchHandle handle)
inlinenoexcept

Definition at line 1787 of file scratch_store_impl.hpp.

References pineforge::detail::programming_error.

Referenced by operator=().

◆ commit()

ScratchStatus pineforge::detail::CommandScratchStore::commit ( ScratchDurability durability)
inlinenoexcept

◆ rollback()

ScratchStatus pineforge::detail::CommandScratchStore::rollback ( )
inlinenoexcept

◆ point()

ScratchStatus pineforge::detail::CommandScratchStore::point ( ScratchHandle handle,
ScratchRecordInfo & info ) const
inlineoverridevirtualnoexcept

Implements pineforge::detail::ScratchReadback.

Definition at line 1796 of file scratch_store_impl.hpp.

References pineforge::detail::programming_error.

Referenced by operator=().

◆ read()

◆ visit()

ScratchStatus pineforge::detail::CommandScratchStore::visit ( ScratchHandle handle,
ScratchBuffer page,
ScratchChunkVisitor visitor,
void * context ) const
inlineoverridevirtualnoexcept

Implements pineforge::detail::ScratchReadback.

Definition at line 1803 of file scratch_store_impl.hpp.

References pineforge::detail::programming_error.

Referenced by operator=().

◆ for_each()

ScratchStatus pineforge::detail::CommandScratchStore::for_each ( ScratchBuffer page,
ScratchRecordVisitor visitor,
void * context ) const
inlineoverridevirtualnoexcept

Implements pineforge::detail::ScratchReadback.

Definition at line 1807 of file scratch_store_impl.hpp.

References pineforge::detail::programming_error.

Referenced by operator=().

◆ first()

ScratchStatus pineforge::detail::CommandScratchStore::first ( ScratchHandle & result) const
inlinenoexcept

Definition at line 1811 of file scratch_store_impl.hpp.

References pineforge::detail::programming_error.

Referenced by operator=().

◆ next()

ScratchStatus pineforge::detail::CommandScratchStore::next ( ScratchHandle current,
ScratchHandle & result ) const
inlinenoexcept

◆ lower_bound()

ScratchStatus pineforge::detail::CommandScratchStore::lower_bound ( const ScratchByteSource & probe,
ScratchHandle & result ) const
inlinenoexcept

◆ ordered_digest()

ScratchStatus pineforge::detail::CommandScratchStore::ordered_digest ( ScratchBuffer page,
std::uint64_t & result ) const
inlinenoexcept

Definition at line 1820 of file scratch_store_impl.hpp.

References pineforge::detail::programming_error.

Referenced by operator=().

◆ state_digest()

ScratchStatus pineforge::detail::CommandScratchStore::state_digest ( ScratchBuffer page,
std::uint64_t & result ) const
inlinenoexcept

Definition at line 1823 of file scratch_store_impl.hpp.

References pineforge::detail::programming_error.

Referenced by operator=().

◆ stats()

ScratchStoreStats pineforge::detail::CommandScratchStore::stats ( ) const
inlinenoexcept

Definition at line 1826 of file scratch_store_impl.hpp.

Referenced by operator=().


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