MCQueue< T > Class Template Reference

#include <MCQueue.h>

Inheritance diagram for MCQueue< T >:

Inheritance graph
[legend]
Collaboration diagram for MCQueue< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MCQueue (unsigned long size)
bool push_back (const T &x)
T & front ()
bool pop_front ()
bool isFull ()
bool isEmpty ()

Private Member Functions

unsigned long nextItem (unsigned long i)

Private Attributes

unsigned long m_tail
unsigned long m_head
MVector< statusm_queue

Classes

struct  status

Detailed Description

template<typename T>
class MCQueue< T >

Definition at line 7 of file MCQueue.h.


Constructor & Destructor Documentation

template<typename T>
MCQueue< T >::MCQueue ( unsigned long  size  )  [inline]

Definition at line 10 of file MCQueue.h.


Member Function Documentation

template<typename T>
bool MCQueue< T >::push_back ( const T &  x  )  [inline]

Definition at line 16 of file MCQueue.h.

template<typename T>
T& MCQueue< T >::front (  )  [inline]

Definition at line 29 of file MCQueue.h.

template<typename T>
bool MCQueue< T >::pop_front (  )  [inline]

Definition at line 34 of file MCQueue.h.

template<typename T>
bool MCQueue< T >::isFull (  )  [inline]

Definition at line 44 of file MCQueue.h.

template<typename T>
bool MCQueue< T >::isEmpty (  )  [inline]

Definition at line 45 of file MCQueue.h.

template<typename T>
unsigned long MCQueue< T >::nextItem ( unsigned long  i  )  [inline, private]

Definition at line 55 of file MCQueue.h.


Member Data Documentation

template<typename T>
unsigned long MCQueue< T >::m_tail [private]

Definition at line 56 of file MCQueue.h.

template<typename T>
unsigned long MCQueue< T >::m_head [private]

Definition at line 57 of file MCQueue.h.

template<typename T>
MVector< status > MCQueue< T >::m_queue [private]

Definition at line 58 of file MCQueue.h.


The documentation for this class was generated from the following file:
Hosted by SourceForge.net Logo