PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::detail::BoundDrawingState< Rec > Struct Template Reference

#include <drawing.hpp>

Data Structures

struct  DirectoryEntry
 
struct  Slot
 

Public Member Functions

 BoundDrawingState (DrawingBoundConfig config)
 
std::int32_t slot_for (std::int32_t id) const noexcept
 
std::size_t free_slot () const noexcept
 

Static Public Member Functions

static std::size_t storage_slots (DrawingBoundConfig config)
 

Data Fields

std::vector< Slot > slots
 
std::vector< DirectoryEntry > directory
 
std::deque< std::int32_t > order
 
std::int64_t next_id = 0
 
std::int32_t slot_bound = 0
 
std::uint32_t pending_creation_slots = 0
 

Detailed Description

template<class Rec>
struct pineforge::detail::BoundDrawingState< Rec >

Definition at line 608 of file drawing.hpp.

Constructor & Destructor Documentation

◆ BoundDrawingState()

template<class Rec>
pineforge::detail::BoundDrawingState< Rec >::BoundDrawingState ( DrawingBoundConfig config)
inlineexplicit

Definition at line 631 of file drawing.hpp.

References directory, pending_creation_slots, slot_bound, slots, and storage_slots().

Member Function Documentation

◆ storage_slots()

template<class Rec>
static std::size_t pineforge::detail::BoundDrawingState< Rec >::storage_slots ( DrawingBoundConfig config)
inlinestatic

◆ slot_for()

template<class Rec>
std::int32_t pineforge::detail::BoundDrawingState< Rec >::slot_for ( std::int32_t id) const
inlinenoexcept

◆ free_slot()

template<class Rec>
std::size_t pineforge::detail::BoundDrawingState< Rec >::free_slot ( ) const
inlinenoexcept

Definition at line 660 of file drawing.hpp.

References slots, and pineforge::detail::value.

Field Documentation

◆ slots

template<class Rec>
std::vector<Slot> pineforge::detail::BoundDrawingState< Rec >::slots

Definition at line 638 of file drawing.hpp.

Referenced by BoundDrawingState(), free_slot(), and slot_for().

◆ directory

template<class Rec>
std::vector<DirectoryEntry> pineforge::detail::BoundDrawingState< Rec >::directory

Definition at line 639 of file drawing.hpp.

Referenced by BoundDrawingState(), and slot_for().

◆ order

template<class Rec>
std::deque<std::int32_t> pineforge::detail::BoundDrawingState< Rec >::order

Definition at line 640 of file drawing.hpp.

◆ next_id

template<class Rec>
std::int64_t pineforge::detail::BoundDrawingState< Rec >::next_id = 0

Definition at line 641 of file drawing.hpp.

◆ slot_bound

template<class Rec>
std::int32_t pineforge::detail::BoundDrawingState< Rec >::slot_bound = 0

Definition at line 642 of file drawing.hpp.

Referenced by BoundDrawingState().

◆ pending_creation_slots

template<class Rec>
std::uint32_t pineforge::detail::BoundDrawingState< Rec >::pending_creation_slots = 0

Definition at line 643 of file drawing.hpp.

Referenced by BoundDrawingState().


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