// carqueue.h // ---------------------------------------------------------------------- // // CSE 143 // Homework 4 // http://www.cs.washington.edu/education/courses/143/00su/homework/ // 21 Jul 2000, Ken Yasuhara // 23 Jul 2000, removed isFull() decl., Ken Yasuhara #ifndef _CARQUEUE_H_ #define _CARQUEUE_H_ #include "car.h" class CarQueue { public: CarQueue(); int getSize() const; bool isEmpty() const; // fails assertion if queue is full void enqueue(Car *carPtr); // returns NULL if queue is empty Car *dequeue(); // returns NULL if index is invalid Car *getItemAt(const int index) const; // useful for debugging void print() const; private: }; #endif // _CARQUEUE_H_