Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef PQ_TYPE_H
- #define PQ_TYPE_H
- #include "heaptype.h"
- #include <iostream>
- using namespace std;
- class FullPQ {
- };
- class EmptyPQ {
- };
- template <typename T>
- class PQType {
- int length;
- HeapType<T> items;
- int maxItems;
- public:
- PQType(int);
- ~PQType();
- void MakeEmpty ();
- bool IsEmpty();
- bool IsFull();
- void Enqueue(T);
- void EnqueueMin(T);
- void Dequeue(T&);
- void DequeueMin(T&);
- void PrintQueue();
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement