Pyrogenesis  trunk
Public Types | Public Member Functions | Protected Attributes | List of all members
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

template<class T, size_t n>
typedef ptrdiff_t RingBuf< T, n >::iterator::difference_type
template<class T, size_t n>
typedef std::random_access_iterator_tag RingBuf< T, n >::iterator::iterator_category
template<class T, size_t n>
typedef T* RingBuf< T, n >::iterator::pointer
template<class T, size_t n>
typedef T& RingBuf< T, n >::iterator::reference
template<class T, size_t n>
typedef T RingBuf< T, n >::iterator::value_type

Constructor & Destructor Documentation

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

Member Function Documentation

template<class T, size_t n>
bool RingBuf< T, n >::iterator::operator!= ( const iterator rhs) const
inline
template<class T, size_t n>
T& RingBuf< T, n >::iterator::operator* ( ) const
inline
template<class T, size_t n>
iterator RingBuf< T, n >::iterator::operator+ ( difference_type  ofs) const
inline
template<class T, size_t n>
iterator& RingBuf< T, n >::iterator::operator++ ( )
inline
template<class T, size_t n>
iterator RingBuf< T, n >::iterator::operator++ ( int  )
inline
template<class T, size_t n>
iterator& RingBuf< T, n >::iterator::operator+= ( difference_type  ofs)
inline
template<class T, size_t n>
iterator RingBuf< T, n >::iterator::operator- ( difference_type  ofs) const
inline
template<class T, size_t n>
difference_type RingBuf< T, n >::iterator::operator- ( const iterator  right) const
inline
template<class T, size_t n>
iterator& RingBuf< T, n >::iterator::operator-= ( difference_type  ofs)
inline
template<class T, size_t n>
T* RingBuf< T, n >::iterator::operator-> ( ) const
inline
template<class T, size_t n>
bool RingBuf< T, n >::iterator::operator< ( const iterator rhs) const
inline
template<class T, size_t n>
bool RingBuf< T, n >::iterator::operator== ( const iterator rhs) const
inline
template<class T, size_t n>
T& RingBuf< T, n >::iterator::operator[] ( int  idx) const
inline

Member Data Documentation

template<class T, size_t n>
T* RingBuf< T, n >::iterator::data
protected
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: