// ******************************************************** // Header file QueueA.h for the ADT queue. // Array-based implementation. // ******************************************************** #include "QueueException.h" #include "Object.h" const int MAX_QUEUE = 100; class Queue { public: // constructors and destructor: Queue(); // default constructor // copy constructor is supplied by the compiler ~Queue(); // Queue operations: bool isEmpty() const; void enqueue(Object* newItem) throw(QueueException); Object* dequeue() throw(QueueException); void dequeueAll(); const Object* peek() const throw(QueueException); private: Object* items[MAX_QUEUE]; int front; int count; }; // end Queue class // End of header file.