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

#include <scratch_sequence.hpp>

Data Structures

class  const_iterator
 

Public Member Functions

 ScratchSequence ()
 
void set_directory (const std::string &directory)
 
std::size_t size () const noexcept
 
bool empty () const noexcept
 
void clear () noexcept
 
T at (std::size_t index) const
 
T operator[] (std::size_t index) const
 
void set (std::size_t index, T value)
 
void push_back (T value)
 
void resize (std::size_t count, T value=T{})
 
const_iterator begin () const
 
const_iterator end () const
 
void erase (const_iterator first, const_iterator last)
 
template<class Compare>
void stable_sort (Compare before)
 

Static Public Member Functions

static constexpr std::size_t resident_capacity () noexcept
 

Detailed Description

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

Definition at line 20 of file scratch_sequence.hpp.

Constructor & Destructor Documentation

◆ ScratchSequence()

template<class T>
pineforge::detail::ScratchSequence< T >::ScratchSequence ( )
inline

Definition at line 25 of file scratch_sequence.hpp.

Referenced by stable_sort().

Member Function Documentation

◆ set_directory()

template<class T>
void pineforge::detail::ScratchSequence< T >::set_directory ( const std::string & directory)
inline

Definition at line 50 of file scratch_sequence.hpp.

Referenced by stable_sort().

◆ size()

template<class T>
std::size_t pineforge::detail::ScratchSequence< T >::size ( ) const
inlinenoexcept

Definition at line 54 of file scratch_sequence.hpp.

Referenced by at(), empty(), end(), erase(), set(), and stable_sort().

◆ empty()

template<class T>
bool pineforge::detail::ScratchSequence< T >::empty ( ) const
inlinenoexcept

Definition at line 55 of file scratch_sequence.hpp.

References size().

◆ resident_capacity()

template<class T>
static constexpr std::size_t pineforge::detail::ScratchSequence< T >::resident_capacity ( )
inlinestaticconstexprnoexcept

Definition at line 56 of file scratch_sequence.hpp.

◆ clear()

template<class T>
void pineforge::detail::ScratchSequence< T >::clear ( )
inlinenoexcept

Definition at line 57 of file scratch_sequence.hpp.

Referenced by stable_sort().

◆ at()

template<class T>
T pineforge::detail::ScratchSequence< T >::at ( std::size_t index) const
inline

Definition at line 62 of file scratch_sequence.hpp.

References size().

Referenced by operator[]().

◆ operator[]()

template<class T>
T pineforge::detail::ScratchSequence< T >::operator[] ( std::size_t index) const
inline

Definition at line 67 of file scratch_sequence.hpp.

References at().

◆ set()

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

Definition at line 68 of file scratch_sequence.hpp.

References size(), and pineforge::detail::value.

◆ push_back()

template<class T>
void pineforge::detail::ScratchSequence< T >::push_back ( T value)
inline

◆ resize()

template<class T>
void pineforge::detail::ScratchSequence< T >::resize ( std::size_t count,
T value = T{} )
inline

Definition at line 84 of file scratch_sequence.hpp.

References pineforge::detail::value.

◆ begin()

template<class T>
const_iterator pineforge::detail::ScratchSequence< T >::begin ( ) const
inline

Definition at line 91 of file scratch_sequence.hpp.

◆ end()

template<class T>
const_iterator pineforge::detail::ScratchSequence< T >::end ( ) const
inline

Definition at line 92 of file scratch_sequence.hpp.

References size().

◆ erase()

template<class T>
void pineforge::detail::ScratchSequence< T >::erase ( const_iterator first,
const_iterator last )
inline

Definition at line 93 of file scratch_sequence.hpp.

References size().

◆ stable_sort()

template<class T>
template<class Compare>
void pineforge::detail::ScratchSequence< T >::stable_sort ( Compare before)
inline

Definition at line 100 of file scratch_sequence.hpp.

References clear(), push_back(), ScratchSequence(), set_directory(), and size().


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