Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
RingBuf< T, n >::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 Tpointer
 
typedef Treference
 

Public Member Functions

 iterator ()
 
 iterator (T *data_, size_t pos_)
 
Toperator[] (int idx) const
 
Toperator* () const
 
Toperator-> () const
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
bool operator== (const iterator &rhs) const
 
bool operator!= (const iterator &rhs) const
 
bool operator< (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

Tdata
 
size_t pos
 

Member Typedef Documentation

◆ difference_type

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

◆ iterator_category

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

◆ pointer

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

◆ reference

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

◆ value_type

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

Constructor & Destructor Documentation

◆ iterator() [1/2]

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

◆ iterator() [2/2]

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

Member Function Documentation

◆ operator!=()

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

◆ operator*()

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

◆ operator+()

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

◆ operator++() [1/2]

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

◆ operator++() [2/2]

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

◆ operator+=()

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

◆ operator-() [1/2]

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

◆ operator-() [2/2]

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

◆ operator-=()

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

◆ operator->()

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

◆ operator<()

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

◆ operator==()

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

◆ operator[]()

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

Member Data Documentation

◆ data

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

◆ pos

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

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