PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::OwnedStorageUsage Struct Reference

#include <owned_storage.hpp>

Public Member Functions

bool complete () const noexcept
 
std::uint64_t resident_bytes () const noexcept
 
std::uint64_t storage_bytes () const noexcept
 

Static Public Member Functions

static std::uint64_t sum (std::uint64_t a, std::uint64_t b) noexcept
 

Data Fields

std::uint64_t resident_metadata_bytes = 0
 
std::uint64_t resident_payload_bytes = 0
 
std::uint64_t backing_bytes = 0
 
std::uint64_t logical_payload_bytes = 0
 
std::uint64_t workspace_bytes = 0
 
std::uint64_t observer_workspace_bytes = 0
 
std::uint64_t unsupported = 0
 
bool overflow = false
 

Detailed Description

Definition at line 39 of file owned_storage.hpp.

Member Function Documentation

◆ sum()

static std::uint64_t pineforge::OwnedStorageUsage::sum ( std::uint64_t a,
std::uint64_t b )
inlinestaticnoexcept

Definition at line 49 of file owned_storage.hpp.

Referenced by resident_bytes(), and storage_bytes().

◆ complete()

bool pineforge::OwnedStorageUsage::complete ( ) const
inlinenoexcept

Definition at line 53 of file owned_storage.hpp.

References overflow, and unsupported.

Referenced by storage_bytes().

◆ resident_bytes()

std::uint64_t pineforge::OwnedStorageUsage::resident_bytes ( ) const
inlinenoexcept

Definition at line 54 of file owned_storage.hpp.

References resident_metadata_bytes, resident_payload_bytes, and sum().

Referenced by storage_bytes().

◆ storage_bytes()

std::uint64_t pineforge::OwnedStorageUsage::storage_bytes ( ) const
inlinenoexcept

Definition at line 60 of file owned_storage.hpp.

References backing_bytes, complete(), resident_bytes(), and sum().

Field Documentation

◆ resident_metadata_bytes

std::uint64_t pineforge::OwnedStorageUsage::resident_metadata_bytes = 0

Definition at line 40 of file owned_storage.hpp.

Referenced by resident_bytes().

◆ resident_payload_bytes

std::uint64_t pineforge::OwnedStorageUsage::resident_payload_bytes = 0

Definition at line 41 of file owned_storage.hpp.

Referenced by resident_bytes().

◆ backing_bytes

std::uint64_t pineforge::OwnedStorageUsage::backing_bytes = 0

Definition at line 42 of file owned_storage.hpp.

Referenced by storage_bytes().

◆ logical_payload_bytes

std::uint64_t pineforge::OwnedStorageUsage::logical_payload_bytes = 0

Definition at line 43 of file owned_storage.hpp.

◆ workspace_bytes

std::uint64_t pineforge::OwnedStorageUsage::workspace_bytes = 0

Definition at line 44 of file owned_storage.hpp.

Referenced by pineforge::detail::WindowValues< T >::cache_stats().

◆ observer_workspace_bytes

std::uint64_t pineforge::OwnedStorageUsage::observer_workspace_bytes = 0

Definition at line 45 of file owned_storage.hpp.

Referenced by pineforge::OwnedStorage::usage().

◆ unsupported

std::uint64_t pineforge::OwnedStorageUsage::unsupported = 0

Definition at line 46 of file owned_storage.hpp.

Referenced by complete().

◆ overflow

bool pineforge::OwnedStorageUsage::overflow = false

Definition at line 47 of file owned_storage.hpp.

Referenced by complete().


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