#ifndef WORD_MAP_HDR #define WORD_MAP_HDR #include #include #include "concordia/concordia_exception.hpp" #include #include #include #include "build/libdivsufsort/include/divsufsort.h" /*! Class representing dictionary for word to int encoding. */ using namespace std; class WordMap { public: explicit WordMap() throw(ConcordiaException); /*! Destructor. */ virtual ~WordMap(); sauchar_t getWordCode(const string & word); private: friend class boost::serialization::access; template void serialize(Archive & ar, const unsigned int version) { ar & _map; ar & _nextFree; } map _map; sauchar_t _nextFree; }; #endif