PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::detail::MapReadCache< KeyRep, ValueRep, Slots > Struct Template Reference

#include <map.hpp>

Data Structures

struct  Entry
 

Public Member Functions

void clear () noexcept
 
void record (std::uint64_t hash, std::uint32_t slot, const KeyRep &key, const ValueRep &value) noexcept
 

Data Fields

std::array< Entry, Slots > entries {}
 
std::size_t next = 0
 
std::uint64_t epoch = 0
 

Static Public Attributes

static constexpr std::size_t capacity = Slots
 

Detailed Description

template<typename KeyRep, typename ValueRep, std::size_t Slots = kMapReadCacheSlots>
struct pineforge::detail::MapReadCache< KeyRep, ValueRep, Slots >

Definition at line 258 of file map.hpp.

Member Function Documentation

◆ clear()

template<typename KeyRep, typename ValueRep, std::size_t Slots = kMapReadCacheSlots>
void pineforge::detail::MapReadCache< KeyRep, ValueRep, Slots >::clear ( )
inlinenoexcept

Definition at line 277 of file map.hpp.

References entries, and next.

◆ record()

Field Documentation

◆ entries

template<typename KeyRep, typename ValueRep, std::size_t Slots = kMapReadCacheSlots>
std::array<Entry, Slots> pineforge::detail::MapReadCache< KeyRep, ValueRep, Slots >::entries {}

Definition at line 271 of file map.hpp.

Referenced by clear(), and record().

◆ next

template<typename KeyRep, typename ValueRep, std::size_t Slots = kMapReadCacheSlots>
std::size_t pineforge::detail::MapReadCache< KeyRep, ValueRep, Slots >::next = 0

Definition at line 272 of file map.hpp.

Referenced by clear(), and record().

◆ epoch

template<typename KeyRep, typename ValueRep, std::size_t Slots = kMapReadCacheSlots>
std::uint64_t pineforge::detail::MapReadCache< KeyRep, ValueRep, Slots >::epoch = 0

Definition at line 273 of file map.hpp.

◆ capacity

template<typename KeyRep, typename ValueRep, std::size_t Slots = kMapReadCacheSlots>
std::size_t pineforge::detail::MapReadCache< KeyRep, ValueRep, Slots >::capacity = Slots
staticconstexpr

Definition at line 275 of file map.hpp.


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