// Word Class Header
#ifndef INCLUDE_WORD
#define INCLUDE_WORD
#include <iostream>
namespace ISR
{
class cWord
{
public:
// ctor/dctor
cWord(const std::string &, const int &); // ctor
cWord(const std::string & ); // ctor
~cWord(); // dctor
// functions
int GetRef() const { return mRef; }
std::string GetStr() const { return mStr; }
//operator overloading
bool operator<(const cWord&) const;
cWord *operator++();
private:
std::string mStr; // the word
int mRef; // number of references
};
}
#endif // INCLUDE_WORD