//************** // concordance BST // // proovides the concordance class which // is the only interface for the user // this class hides the underlying data structure // BST and provides functions which are // concordance-centric and not BST-centric // // DL Frey 10/21/98 //************************* #ifndef __CONCORDANCE_H_ #define __CONCORDANCE_H_ #include "ctree.h" class Concordance { private: // the concordance tree CTree tree; public: // member functions to support the user menu options // insert a 'C' string void Insert (const char *s); // print all the words whose frequency of occurrence // is >= to freq void PrintWords (int freq = 0); // return the number of unique words int CountWords (); // print word/frequency for a user-specified // word void PrintAWord (const char *s); }; #endif