// carqueue.h: the queue of waiting cars for the CSC 270 simulation example
// -- J. Clarke, March-June 1996

#include "porting.h"

class carQueueClass {
private:
	struct queueItem {
		carClass * data;
		queueItem * next;
	};

	queueItem * firstWaitingCar, * lastWaitingCar;
	int localQueueSize;
	double totalEmptyQueueTime;

public:
	carQueueClass (void);
	int queueSize (void);
	double emptyTime (void);
	void insert (carClass * newestCar);
	carClass * getNext (void);
};
