home *** CD-ROM | disk | FTP | other *** search
- #ifndef QUEUE_H
- #define QUEUE_H
-
- class Queue
- {
- public:
- Queue();
- ~Queue();
- void add(T theData);
- T remove();
-
- class QueueEmpty
- {
- };
-
- private:
- class listNode
- {
- friend class Queue;
- static listNode* kNull;
- public:
- listNode();
- T fData;
- listNode* fPrevious;
- listNode* fNext;
- };
- listNode* fHead;
- listNode* fTail;
- };
- #endif
-
-