Lumiera  0.pre.03
»edit your freedom«
IndexAccessCore< PTR > Struct Template Reference

#include "lib/iter-index.hpp"

Description

template<typename PTR>
struct lib::iter::IndexAccessCore< PTR >

Implementation of a »IterStateCore« to access the container through an embedded index variable.

Definition at line 55 of file iter-index.hpp.

Public Types

using IterWrapper = lib::IterStateWrapper< value_type, IndexAccessCore >
 
using reference = typename meta::RefTraits< ResVal >::Reference
 
using ResVal = decltype(data_->operator[](0))
 
using value_type = typename meta::RefTraits< ResVal >::Value
 

Public Member Functions

bool checkPoint () const
 
bool isValidIDX (size_t idx) const
 
void iterNext ()
 
reference yield () const
 

Public Attributes

PTR data_ {}
 
size_t idx_ {0}
 

Friends

bool operator!= (IndexAccessCore const &c1, IndexAccessCore const &c2)
 
bool operator== (IndexAccessCore const &c1, IndexAccessCore const &c2)
 
+ Collaboration diagram for IndexAccessCore< PTR >:

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