simple hash_set<>-based lexicon class
|
typedef __gnu_cxx::hash_set< std::string > | Lexicon |
|
◆ Lexicon
typedef for underlying lexicon data
◆ wasteLexicon()
moot::wasteLexicon::wasteLexicon |
( |
| ) |
|
|
inline |
◆ ~wasteLexicon()
moot::wasteLexicon::~wasteLexicon |
( |
| ) |
|
|
inline |
◆ clear()
void moot::wasteLexicon::clear |
( |
void |
| ) |
|
|
inline |
◆ lookup()
bool moot::wasteLexicon::lookup |
( |
const std::string & |
word | ) |
const |
|
inline |
- Returns
- true iff word is present in the lexicon
◆ insert()
void moot::wasteLexicon::insert |
( |
const std::string & |
word | ) |
|
|
inline |
insert word into the lexicon
References load().
◆ load() [1/3]
◆ load() [2/3]
◆ load() [3/3]
bool moot::wasteLexicon::load |
( |
const char * |
filename | ) |
|
load lexicon from a named file; wraps load(mootoi::mistream*) method
- Returns
- true on success, false otherwise
◆ lex
The documentation for this class was generated from the following file: