PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::source::detail::ExitScratchRows< T >::const_iterator Struct Reference

#include <exit_scratch.hpp>

Public Types

using iterator_category = std::input_iterator_tag
 
using value_type
 
using difference_type = std::ptrdiff_t
 
using pointer = void
 
using reference = value_type
 

Public Member Functions

value_type operator* () const
 
const_iterator & operator++ ()
 
const_iterator operator++ (int)
 
bool operator== (const const_iterator &other) const
 
bool operator!= (const const_iterator &other) const
 

Data Fields

const ExitScratchRows * rows = nullptr
 
std::size_t index = 0
 

Detailed Description

template<class T>
struct pineforge::source::detail::ExitScratchRows< T >::const_iterator

Definition at line 661 of file exit_scratch.hpp.

Member Typedef Documentation

◆ iterator_category

template<class T>
using pineforge::source::detail::ExitScratchRows< T >::const_iterator::iterator_category = std::input_iterator_tag

Definition at line 662 of file exit_scratch.hpp.

◆ value_type

template<class T>
using pineforge::source::detail::ExitScratchRows< T >::const_iterator::value_type
Initial value:
std::declval<const ExitScratchContext&>(), ScratchHandle{}))
std::uint64_t ScratchHandle
static T read(const ExitScratchContext &context, ScratchHandle handle)

Definition at line 663 of file exit_scratch.hpp.

◆ difference_type

template<class T>
using pineforge::source::detail::ExitScratchRows< T >::const_iterator::difference_type = std::ptrdiff_t

Definition at line 665 of file exit_scratch.hpp.

◆ pointer

template<class T>
using pineforge::source::detail::ExitScratchRows< T >::const_iterator::pointer = void

Definition at line 666 of file exit_scratch.hpp.

◆ reference

template<class T>
using pineforge::source::detail::ExitScratchRows< T >::const_iterator::reference = value_type

Definition at line 667 of file exit_scratch.hpp.

Member Function Documentation

◆ operator*()

template<class T>
value_type pineforge::source::detail::ExitScratchRows< T >::const_iterator::operator* ( ) const
inline

Definition at line 670 of file exit_scratch.hpp.

References index, and rows.

◆ operator++() [1/2]

template<class T>
const_iterator & pineforge::source::detail::ExitScratchRows< T >::const_iterator::operator++ ( )
inline

Definition at line 671 of file exit_scratch.hpp.

References index.

◆ operator++() [2/2]

template<class T>
const_iterator pineforge::source::detail::ExitScratchRows< T >::const_iterator::operator++ ( int )
inline

Definition at line 672 of file exit_scratch.hpp.

◆ operator==()

template<class T>
bool pineforge::source::detail::ExitScratchRows< T >::const_iterator::operator== ( const const_iterator & other) const
inline

Definition at line 673 of file exit_scratch.hpp.

References index, and rows.

◆ operator!=()

template<class T>
bool pineforge::source::detail::ExitScratchRows< T >::const_iterator::operator!= ( const const_iterator & other) const
inline

Definition at line 676 of file exit_scratch.hpp.

Field Documentation

◆ rows

template<class T>
const ExitScratchRows* pineforge::source::detail::ExitScratchRows< T >::const_iterator::rows = nullptr

Definition at line 668 of file exit_scratch.hpp.

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

◆ index

template<class T>
std::size_t pineforge::source::detail::ExitScratchRows< T >::const_iterator::index = 0

Definition at line 669 of file exit_scratch.hpp.

Referenced by operator*(), operator++(), and operator==().


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