Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
RingBuf< T, n >::const_iterator Class Reference

#include <ring_buf.h>

Public Types

typedef std::random_access_iterator_tag iterator_category
 
typedef T value_type
 
typedef ptrdiff_t difference_type
 
typedef const Tpointer
 
typedef const Treference
 

Public Member Functions

 const_iterator ()
 
 const_iterator (const T *data_, size_t pos_)
 
const Toperator[] (int idx) const
 
const Toperator* () const
 
const Toperator-> () const
 
const_iteratoroperator++ ()
 
const_iterator operator++ (int)
 
bool operator== (const const_iterator &rhs) const
 
bool operator!= (const const_iterator &rhs) const
 
bool operator< (const const_iterator &rhs) const
 
iteratoroperator+= (difference_type ofs)
 
iteratoroperator-= (difference_type ofs)
 
iterator operator+ (difference_type ofs) const
 
iterator operator- (difference_type ofs) const
 
difference_type operator- (const iterator right) const
 

Protected Attributes

const Tdata
 
size_t pos
 

Member Typedef Documentation

◆ difference_type

template<class T , size_t n>
typedef ptrdiff_t RingBuf< T, n >::const_iterator::difference_type

◆ iterator_category

template<class T , size_t n>
typedef std::random_access_iterator_tag RingBuf< T, n >::const_iterator::iterator_category

◆ pointer

template<class T , size_t n>
typedef const T* RingBuf< T, n >::const_iterator::pointer

◆ reference

template<class T , size_t n>
typedef const T& RingBuf< T, n >::const_iterator::reference

◆ value_type

template<class T , size_t n>
typedef T RingBuf< T, n >::const_iterator::value_type

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

template<class T , size_t n>
RingBuf< T, n >::const_iterator::const_iterator ( )
inline

◆ const_iterator() [2/2]

template<class T , size_t n>
RingBuf< T, n >::const_iterator::const_iterator ( const T data_,
size_t  pos_ 
)
inline

Member Function Documentation

◆ operator!=()

template<class T , size_t n>
bool RingBuf< T, n >::const_iterator::operator!= ( const const_iterator rhs) const
inline

◆ operator*()

template<class T , size_t n>
const T & RingBuf< T, n >::const_iterator::operator* ( ) const
inline

◆ operator+()

template<class T , size_t n>
iterator RingBuf< T, n >::const_iterator::operator+ ( difference_type  ofs) const
inline

◆ operator++() [1/2]

template<class T , size_t n>
const_iterator & RingBuf< T, n >::const_iterator::operator++ ( )
inline

◆ operator++() [2/2]

template<class T , size_t n>
const_iterator RingBuf< T, n >::const_iterator::operator++ ( int  )
inline

◆ operator+=()

template<class T , size_t n>
iterator & RingBuf< T, n >::const_iterator::operator+= ( difference_type  ofs)
inline

◆ operator-() [1/2]

template<class T , size_t n>
difference_type RingBuf< T, n >::const_iterator::operator- ( const iterator  right) const
inline

◆ operator-() [2/2]

template<class T , size_t n>
iterator RingBuf< T, n >::const_iterator::operator- ( difference_type  ofs) const
inline

◆ operator-=()

template<class T , size_t n>
iterator & RingBuf< T, n >::const_iterator::operator-= ( difference_type  ofs)
inline

◆ operator->()

template<class T , size_t n>
const T * RingBuf< T, n >::const_iterator::operator-> ( ) const
inline

◆ operator<()

template<class T , size_t n>
bool RingBuf< T, n >::const_iterator::operator< ( const const_iterator rhs) const
inline

◆ operator==()

template<class T , size_t n>
bool RingBuf< T, n >::const_iterator::operator== ( const const_iterator rhs) const
inline

◆ operator[]()

template<class T , size_t n>
const T & RingBuf< T, n >::const_iterator::operator[] ( int  idx) const
inline

Member Data Documentation

◆ data

template<class T , size_t n>
const T* RingBuf< T, n >::const_iterator::data
protected

◆ pos

template<class T , size_t n>
size_t RingBuf< T, n >::const_iterator::pos
protected

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