#include <WordSet.hpp>
Inheritance diagram for WordSet:

Public Methods | |
| WordSet () | |
| WordSet (char *filename) | |
| Create object, and load set from file. | |
| ~WordSet () | |
| void | load (char *filename) |
| Load a set from file. Does not clear the set first. | |
| void | add (char *word) |
| Add a word (char *) to the set. | |
| bool | contains (char *word) |
| Check for the existence of a word in the set. | |
| void | clear () |
| Empty the set and free memory. | |
Protected Attributes | |
| set<char *, lt_str> | words |
| The set used to store words. | |
A generic class that provides a neat and easy to use wrapper to a hash_set<char *>. It can load items in the set from a file (one item per line). It also handles its own memory conveniently.
|
|
|
|
|
Create object, and load set from file.
|
|
|
|
|
|
Add a word (char *) to the set.
|
|
|
Empty the set and free memory.
|
|
|
Check for the existence of a word in the set.
|
|
|
Load a set from file. Does not clear the set first.
|
|
|
The set used to store words.
|
1.2.4 written by Dimitri van Heesch,
© 1997-2000