ringbuf< T, SIZE > Struct Template Reference

#include <tools.h>

List of all members.

Public Member Functions

 ringbuf ()
void clear ()
bool empty () const
int maxsize () const
int length () const
T & remove ()
T & add (const T &e)
T & add ()
T & operator[] (int i)
const T & operator[] (int i) const

Public Attributes

int index
int len
T data [SIZE]

template<class T, int SIZE>
struct ringbuf< T, SIZE >


Constructor & Destructor Documentation

template<class T , int SIZE>
ringbuf< T, SIZE >::ringbuf (  )  [inline]


Member Function Documentation

template<class T , int SIZE>
T& ringbuf< T, SIZE >::add (  )  [inline]

template<class T , int SIZE>
T& ringbuf< T, SIZE >::add ( const T &  e  )  [inline]

template<class T , int SIZE>
void ringbuf< T, SIZE >::clear (  )  [inline]

template<class T , int SIZE>
bool ringbuf< T, SIZE >::empty (  )  const [inline]

template<class T , int SIZE>
int ringbuf< T, SIZE >::length (  )  const [inline]

template<class T , int SIZE>
int ringbuf< T, SIZE >::maxsize (  )  const [inline]

template<class T , int SIZE>
const T& ringbuf< T, SIZE >::operator[] ( int  i  )  const [inline]

template<class T , int SIZE>
T& ringbuf< T, SIZE >::operator[] ( int  i  )  [inline]

template<class T , int SIZE>
T& ringbuf< T, SIZE >::remove (  )  [inline]


Member Data Documentation

template<class T , int SIZE>
T ringbuf< T, SIZE >::data[SIZE]

template<class T , int SIZE>
int ringbuf< T, SIZE >::index

template<class T , int SIZE>
int ringbuf< T, SIZE >::len


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

Generated on Mon Dec 8 21:41:36 2008 for AssaultCube by  doxygen 1.5.7.1