Pyrogenesis  trunk
Classes | Public Member Functions | Private Attributes | List of all members
RingBuf< T, n > Class Template Reference

#include <ring_buf.h>

Classes

class  const_iterator
 
class  iterator
 

Public Member Functions

 RingBuf ()
 
void clear ()
 
size_t size () const
 
bool empty () const
 
const Toperator[] (int ofs) const
 
Toperator[] (int ofs)
 
Tfront ()
 
const Tfront () const
 
Tback ()
 
const Tback () const
 
void push_back (const T &item)
 
void pop_front ()
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 

Private Attributes

size_t size_
 
size_t head
 
size_t tail
 
T data [n]
 

Constructor & Destructor Documentation

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

Member Function Documentation

template<class T, size_t n>
T& RingBuf< T, n >::back ( )
inline
template<class T, size_t n>
const T& RingBuf< T, n >::back ( ) const
inline
template<class T, size_t n>
iterator RingBuf< T, n >::begin ( )
inline
template<class T, size_t n>
const_iterator RingBuf< T, n >::begin ( ) const
inline
template<class T, size_t n>
void RingBuf< T, n >::clear ( )
inline
template<class T, size_t n>
bool RingBuf< T, n >::empty ( ) const
inline
template<class T, size_t n>
iterator RingBuf< T, n >::end ( )
inline
template<class T, size_t n>
const_iterator RingBuf< T, n >::end ( ) const
inline
template<class T, size_t n>
T& RingBuf< T, n >::front ( )
inline
template<class T, size_t n>
const T& RingBuf< T, n >::front ( ) const
inline
template<class T, size_t n>
const T& RingBuf< T, n >::operator[] ( int  ofs) const
inline
template<class T, size_t n>
T& RingBuf< T, n >::operator[] ( int  ofs)
inline
template<class T, size_t n>
void RingBuf< T, n >::pop_front ( )
inline
template<class T, size_t n>
void RingBuf< T, n >::push_back ( const T item)
inline
template<class T, size_t n>
size_t RingBuf< T, n >::size ( ) const
inline

Member Data Documentation

template<class T, size_t n>
T RingBuf< T, n >::data[n]
private
template<class T, size_t n>
size_t RingBuf< T, n >::head
private
template<class T, size_t n>
size_t RingBuf< T, n >::size_
private
template<class T, size_t n>
size_t RingBuf< T, n >::tail
private

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