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

#include <series.hpp>

Public Member Functions

 WindowValues (WindowCacheCapacity capacity=window_cache_capacity())
 
 WindowValues (std::size_t size, T initial, WindowCacheCapacity capacity=window_cache_capacity())
 
 WindowValues (const WindowValues &other)
 
WindowValues & operator= (const WindowValues &other)
 
 WindowValues (WindowValues &&other) noexcept(std::is_nothrow_move_constructible_v< T >)
 
WindowValues & operator= (WindowValues &&other) noexcept(std::is_nothrow_move_assignable_v< T >)
 
void reset (std::size_t size, T initial)
 
T read (std::size_t index) const
 
void write (std::size_t index, T value)
 
void retire_page (std::size_t page)
 
std::size_t size () const
 
WindowCacheCapacity cache_capacity () const
 
ReadThroughCachePolicy read_cache_policy () const noexcept
 
ReadThroughCacheStats read_cache_stats () const noexcept
 
WindowCacheStats cache_stats () const
 

Static Public Attributes

static constexpr std::size_t kChunk = 1024
 

Detailed Description

template<class T>
class pineforge::detail::WindowValues< T >

Definition at line 65 of file series.hpp.

Constructor & Destructor Documentation

◆ WindowValues() [1/4]

template<class T>
pineforge::detail::WindowValues< T >::WindowValues ( WindowCacheCapacity capacity = window_cache_capacity())
inlineexplicit

Definition at line 69 of file series.hpp.

Referenced by operator=(), operator=(), WindowValues(), and WindowValues().

◆ WindowValues() [2/4]

template<class T>
pineforge::detail::WindowValues< T >::WindowValues ( std::size_t size,
T initial,
WindowCacheCapacity capacity = window_cache_capacity() )
inline

Definition at line 71 of file series.hpp.

References reset(), and size().

◆ WindowValues() [3/4]

template<class T>
pineforge::detail::WindowValues< T >::WindowValues ( const WindowValues< T > & other)
inline

Definition at line 74 of file series.hpp.

References WindowValues().

◆ WindowValues() [4/4]

template<class T>
pineforge::detail::WindowValues< T >::WindowValues ( WindowValues< T > && other)
inlinenoexcept

Definition at line 84 of file series.hpp.

References WindowValues().

Member Function Documentation

◆ operator=() [1/2]

template<class T>
WindowValues & pineforge::detail::WindowValues< T >::operator= ( const WindowValues< T > & other)
inline

Definition at line 77 of file series.hpp.

References WindowValues().

◆ operator=() [2/2]

template<class T>
WindowValues & pineforge::detail::WindowValues< T >::operator= ( WindowValues< T > && other)
inlinenoexcept

Definition at line 91 of file series.hpp.

References WindowValues().

◆ reset()

template<class T>
void pineforge::detail::WindowValues< T >::reset ( std::size_t size,
T initial )
inline

◆ read()

template<class T>
T pineforge::detail::WindowValues< T >::read ( std::size_t index) const
inline

Definition at line 127 of file series.hpp.

References kChunk, and pineforge::detail::status.

◆ write()

template<class T>
void pineforge::detail::WindowValues< T >::write ( std::size_t index,
T value )
inline

Definition at line 146 of file series.hpp.

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

Referenced by pineforge::DynamicRingBuffer< T >::resize().

◆ retire_page()

template<class T>
void pineforge::detail::WindowValues< T >::retire_page ( std::size_t page)
inline

Definition at line 167 of file series.hpp.

◆ size()

template<class T>
std::size_t pineforge::detail::WindowValues< T >::size ( ) const
inline

Definition at line 172 of file series.hpp.

Referenced by reset(), and WindowValues().

◆ cache_capacity()

template<class T>
WindowCacheCapacity pineforge::detail::WindowValues< T >::cache_capacity ( ) const
inline

Definition at line 173 of file series.hpp.

◆ read_cache_policy()

◆ read_cache_stats()

template<class T>
ReadThroughCacheStats pineforge::detail::WindowValues< T >::read_cache_stats ( ) const
inlinenoexcept

Definition at line 184 of file series.hpp.

Referenced by cache_stats().

◆ cache_stats()

template<class T>
WindowCacheStats pineforge::detail::WindowValues< T >::cache_stats ( ) const
inline

Definition at line 187 of file series.hpp.

References kChunk, and read_cache_stats().

Field Documentation

◆ kChunk

template<class T>
std::size_t pineforge::detail::WindowValues< T >::kChunk = 1024
staticconstexpr

Definition at line 67 of file series.hpp.

Referenced by cache_stats(), read(), read_cache_policy(), and write().


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