Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
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

◆ RingBuf()

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

Member Function Documentation

◆ back() [1/2]

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

◆ back() [2/2]

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

◆ begin() [1/2]

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

◆ begin() [2/2]

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

◆ clear()

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

◆ empty()

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

◆ end() [1/2]

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

◆ end() [2/2]

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

◆ front() [1/2]

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

◆ front() [2/2]

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

◆ operator[]() [1/2]

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

◆ operator[]() [2/2]

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

◆ pop_front()

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

◆ push_back()

template<class T , size_t n>
void RingBuf< T, n >::push_back ( const T item)
inline

◆ size()

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

Member Data Documentation

◆ data

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

◆ head

template<class T , size_t n>
size_t RingBuf< T, n >::head
private

◆ size_

template<class T , size_t n>
size_t RingBuf< T, n >::size_
private

◆ tail

template<class T , size_t n>
size_t RingBuf< T, n >::tail
private

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