Class Queue


			
template class Queue<class Type> : public List<Type>
Programmer: Ryan Davis

Description:

Provide a standard queue collection based on lists.

Public Methods:

virtual Boolean push (const Type & item);
I am the push method. I push onto the head of my stack. I will return false if I couldn't make a new node on the stack.

virtual Type pop ();
I am the pop method. I pop the first item off the tail of my stack and return it to you. WARNING: I will bomb if my stack is empty and you call me. I am a simple accessor. I will return a copy of the "top" item in the stack (i.e. the first item pushed). apply protection on non-stack methods...

Protected Methods:

virtual Boolean append (const Type & );


virtual Boolean prepend (const Type & );


virtual Boolean remove ();


Protected Members: