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

FIFO Class Template Reference

#include <FIFO.h>

Inheritance diagram for FIFO:

vector List of all members.

Public Methods

 FIFO (unsigned int depth = 0)
 FIFO (const FIFO& f)
bool push (const _T& x)
_T pop ()
_T& front ()
_T& back ()
const _T& front () const
const _T& back () const
bool empty () const
unsigned int maxSize () const
unsigned int size () const
void clear ()
void printOn (std::ostream& out = cout)
bool full () const
bool avail () const

Private Attributes

unsigned int m_depth

Constructor & Destructor Documentation

template<class_T>
FIFO<_T>::FIFO<_T> ( unsigned int depth = 0 ) [inline]
 

Definition at line 23 of file FIFO.h.

template<class_T>
FIFO<_T>::FIFO<_T> ( const FIFO<_T> & f ) [inline]
 

Definition at line 33 of file FIFO.h.


Member Function Documentation

template<class_T>
bool FIFO<_T>::avail ( ) const [inline]
 

Definition at line 103 of file FIFO.h.

template<class_T>
const _T & FIFO<_T>::back ( ) const [inline]
 

Definition at line 68 of file FIFO.h.

template<class_T>
_T & FIFO<_T>::back ( ) [inline]
 

Definition at line 65 of file FIFO.h.

template<class_T>
void FIFO<_T>::clear ( ) [inline]
 

Definition at line 84 of file FIFO.h.

template<class_T>
bool FIFO<_T>::empty ( ) const [inline]
 

Definition at line 70 of file FIFO.h.

template<class_T>
const _T & FIFO<_T>::front ( ) const [inline]
 

Definition at line 67 of file FIFO.h.

template<class_T>
_T & FIFO<_T>::front ( ) [inline]
 

Definition at line 64 of file FIFO.h.

template<class_T>
bool FIFO<_T>::full ( ) const [inline]
 

Definition at line 101 of file FIFO.h.

template<class_T>
unsigned int FIFO<_T>::maxSize ( ) const [inline]
 

Definition at line 73 of file FIFO.h.

template<class_T>
_T FIFO<_T>::pop ( ) [inline]
 

Definition at line 53 of file FIFO.h.

template<class_T>
void FIFO<_T>::printOn ( std::ostream & out = cout ) [inline]
 

Definition at line 90 of file FIFO.h.

template<class_T>
bool FIFO<_T>::push ( const _T & x ) [inline]
 

Definition at line 41 of file FIFO.h.

template<class_T>
unsigned int FIFO<_T>::size ( ) const [inline]
 

Definition at line 79 of file FIFO.h.

Referenced by avail(), empty(), full(), pop(), and push().


Member Data Documentation

template<class_T>
unsigned int FIFO<_T>::m_depth [private]
 

Definition at line 108 of file FIFO.h.


The documentation for this class was generated from the following file:
Generated at Wed Nov 21 12:20:22 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000