Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
 

Detailed Description

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

Definition at line 102 of file ring_buf.h.

Member Typedef Documentation

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

Definition at line 107 of file ring_buf.h.

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

Definition at line 105 of file ring_buf.h.

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

Definition at line 108 of file ring_buf.h.

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

Definition at line 109 of file ring_buf.h.

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

Definition at line 106 of file ring_buf.h.

Constructor & Destructor Documentation

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

Definition at line 111 of file ring_buf.h.

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

Definition at line 113 of file ring_buf.h.

Member Function Documentation

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

Definition at line 127 of file ring_buf.h.

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

Definition at line 117 of file ring_buf.h.

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

Definition at line 135 of file ring_buf.h.

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

Definition at line 121 of file ring_buf.h.

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

Definition at line 123 of file ring_buf.h.

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

Definition at line 131 of file ring_buf.h.

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

Definition at line 137 of file ring_buf.h.

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

Definition at line 139 of file ring_buf.h.

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

Definition at line 133 of file ring_buf.h.

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

Definition at line 119 of file ring_buf.h.

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

Definition at line 129 of file ring_buf.h.

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

Definition at line 125 of file ring_buf.h.

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

Definition at line 115 of file ring_buf.h.

Member Data Documentation

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

Definition at line 143 of file ring_buf.h.

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

Definition at line 144 of file ring_buf.h.


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