ezEngine  Release 25.03
const_iterator_base< ARRAY, T, reverse > Struct Template Reference

Base class for STL like random access iterators. More...

#include <ArrayIterator.h>

Public Types

using iterator_category = std::random_access_iterator_tag
 
using value_type = T
 
using difference_type = std::ptrdiff_t
 
using pointer = const T *
 
using reference = const T &
 

Public Member Functions

 const_iterator_base (const ARRAY &deque, size_t uiIndex)
 
EZ_ALWAYS_INLINE const_iterator_baseoperator++ ()
 
EZ_ALWAYS_INLINE const_iterator_baseoperator-- ()
 
EZ_ALWAYS_INLINE const_iterator_base operator++ (int)
 
EZ_ALWAYS_INLINE const_iterator_base operator-- (int)
 
EZ_ALWAYS_INLINE bool operator== (const const_iterator_base &rhs) const
 
EZ_ALWAYS_INLINE bool operator!= (const const_iterator_base &rhs) const
 
EZ_ALWAYS_INLINE std::ptrdiff_t operator- (const const_iterator_base &rhs) const
 
EZ_ALWAYS_INLINE const_iterator_base operator+ (std::ptrdiff_t rhs) const
 
EZ_ALWAYS_INLINE const_iterator_base operator- (std::ptrdiff_t rhs) const
 
EZ_ALWAYS_INLINE void operator+= (std::ptrdiff_t rhs)
 
EZ_ALWAYS_INLINE void operator-= (std::ptrdiff_t rhs)
 
const T & operator* () const
 
const EZ_ALWAYS_INLINE T * operator-> () const
 
EZ_ALWAYS_INLINE bool operator< (const const_iterator_base &rhs) const
 
EZ_ALWAYS_INLINE bool operator> (const const_iterator_base &rhs) const
 
EZ_ALWAYS_INLINE bool operator<= (const const_iterator_base &rhs) const
 
EZ_ALWAYS_INLINE bool operator>= (const const_iterator_base &rhs) const
 
const EZ_ALWAYS_INLINE T & operator[] (size_t uiIndex) const
 

Protected Attributes

ARRAY * m_pArray
 
size_t m_uiIndex
 

Detailed Description

template<class ARRAY, class T, bool reverse = false>
struct const_iterator_base< ARRAY, T, reverse >

Base class for STL like random access iterators.


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