#include "Entry.h" Entry::Entry( Word Wrd):key(Wrd) { } Entry::Entry( Word Wrd, Reference Ref ):key(Wrd) { reflist.push_back(Ref); } Word Entry::GetKey() const { return key; } void Entry::AddRef( Reference Ref) { reflist.push_back(Ref); } void Entry::Output( ostream& fout ) { int refcnt = reflist.size(); int counter = 0; //key.UpperCase(); fout << endl; key.Output(fout); fout << '(' << refcnt << ')' << endl; for(list::iterator I = reflist.begin(); I != reflist.end(); I++) { I->Output(fout); if( !(++counter % 10) ) fout << endl; } fout << endl; }