// File: bstrq.h // // Derive a BString queue from the generic queue class #ifndef _bstrq_h #define _bstrq_h #include "bstring2.h" #include "genq.h" class BStringQ : public GenQ { // public derivation of GenQ class public: BStringQ() ; // constructor ~BStringQ() ; // destructor // overide GenQ operations // void enqueue(const BString&) ; // add a string to the end of queue BString dequeue() ; // return and delete from front of queue BString peek() ; // return string at the front void remove(const BString&) ; // remove items wth key equal to given one private: static int cmp (void *, void *) ; // string comparison static void prt (void *) ; // print a string } ; #endif