name: Queue<class TObject>: public DstrBase <TObject>

synopsis:

g++ [flags ...] file ...

#include <Queue.h>
Queue();
boolean assign(const Queue<TObject>& copy_queue);
boolean add(TObject* item);
TObject* remove(TObject* item = (TObject*)NULL);
const TObject* peek() const;
boolean clear();
quick start:

// declare a character queue and add two characters into it
//
Queue<Char> queue;
Char item0(L'a');
Char item1(L'b');
queue.add(&item0);
queue.add(&item1);

// remove the top item from the queue
//
Char* item2 = new Char();
queue.remove(item2);

if(!item2->eq(item0)) {
  // error
}
description:

The Queue class is a container class that implements a standard queue (first-in, first-out) using a double linked list. For a good reference on queues, see: This class uses the double linked list in USER mode, since this list is used to store either the actual data or a pointer to it.

dependencies:

public constants:

error codes:

protected data:

required public methods:

class-specific public methods:

private methods:

examples:

notes: