Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

CircBuffer< Thing, max_size > Class Template Reference

#include <circBuffer.h>

List of all members.

Public Member Functions

INLINE CircBuffer ()
INLINE ~CircBuffer ()
INLINE int size () const
INLINE bool empty () const
INLINE const Thing & front () const
INLINE Thing & front ()
INLINE void pop_front ()
INLINE const Thing & operator[] (int n) const
INLINE Thing & operator[] (int n)
INLINE bool full () const
INLINE const Thing & back () const
INLINE Thing & back ()
INLINE void push_back (const Thing &t)

Private Attributes

Thing _array [max_size+1]
int _in
int _out

template<class Thing, int max_size>
class CircBuffer< Thing, max_size >


Constructor & Destructor Documentation

template<class Thing, int max_size>
INLINE CircBuffer< Thing, max_size >::CircBuffer  ) 
 

template<class Thing, int max_size>
INLINE CircBuffer< Thing, max_size >::~CircBuffer  ) 
 


Member Function Documentation

template<class Thing, int max_size>
INLINE Thing& CircBuffer< Thing, max_size >::back  ) 
 

template<class Thing, int max_size>
INLINE const Thing& CircBuffer< Thing, max_size >::back  )  const
 

template<class Thing, int max_size>
INLINE bool CircBuffer< Thing, max_size >::empty  )  const
 

template<class Thing, int max_size>
INLINE Thing& CircBuffer< Thing, max_size >::front  ) 
 

template<class Thing, int max_size>
INLINE const Thing& CircBuffer< Thing, max_size >::front  )  const
 

template<class Thing, int max_size>
INLINE bool CircBuffer< Thing, max_size >::full  )  const
 

template<class Thing, int max_size>
INLINE Thing& CircBuffer< Thing, max_size >::operator[] int  n  ) 
 

template<class Thing, int max_size>
INLINE const Thing& CircBuffer< Thing, max_size >::operator[] int  n  )  const
 

template<class Thing, int max_size>
INLINE void CircBuffer< Thing, max_size >::pop_front  ) 
 

template<class Thing, int max_size>
INLINE void CircBuffer< Thing, max_size >::push_back const Thing &  t  ) 
 

template<class Thing, int max_size>
INLINE int CircBuffer< Thing, max_size >::size  )  const
 


Member Data Documentation

template<class Thing, int max_size>
Thing CircBuffer< Thing, max_size >::_array[max_size+1] [private]
 

Definition at line 64 of file circBuffer.h.

template<class Thing, int max_size>
int CircBuffer< Thing, max_size >::_in [private]
 

Definition at line 65 of file circBuffer.h.

template<class Thing, int max_size>
int CircBuffer< Thing, max_size >::_out [private]
 

Definition at line 65 of file circBuffer.h.


The documentation for this class was generated from the following file:
Generated on Fri Apr 18 00:11:32 2003 for Panda by doxygen1.3