#include #include "DictionaryEntryT.h" #include "Util.h" using namespace std; DictionaryEntryT::DictionaryEntryT(){ count = 0; } DictionaryEntryT::DictionaryEntryT(string rawWord){ word = CleanString(rawWord); count = 1; } string DictionaryEntryT::GetWord(void) const{ return word; } int DictionaryEntryT::GetCount(void) const{ return count; } void DictionaryEntryT::IncrementCount(void){ ++count; } bool DictionaryEntryT::Same(const DictionaryEntryT & other) const{ return word == other.word; } bool DictionaryEntryT::Less(const DictionaryEntryT & other) const{ return word < other.word; }