git-svn-id: svn://svn.code.sf.net/p/bitchx/code/tags/ircii-pana-1.1-final@1 13b04d17-f746-0410-82c6-800466cd88b0
35 lines
637 B
C++
35 lines
637 B
C++
#ifndef _LEXICON_H_
|
|
#define _LEXICON_H_
|
|
|
|
#include "gnode.h"
|
|
#include "list.h"
|
|
|
|
class Lexicon {
|
|
public:
|
|
Lexicon(char *fileName); // GOOD
|
|
~Lexicon();
|
|
bool lookupWord(char *word);
|
|
bool lookupNext(void);
|
|
genericNode *currNode(void); // GOOD
|
|
|
|
private:
|
|
struct lexicalNode;
|
|
typedef struct lexicalNode {
|
|
genericNode *node;
|
|
|
|
lexicalNode *leftPtr;
|
|
lexicalNode *rightPtr;
|
|
};
|
|
|
|
void insert(genericNode *newWord); // GOOD
|
|
void insert(genericNode *newWord, lexicalNode *root); // GOOD
|
|
|
|
bool lookupWord(lexicalNode *root, char *word);
|
|
|
|
lexicalNode *rootPtr;
|
|
lexicalNode *currPtr;
|
|
List *featureSeek;
|
|
};
|
|
|
|
#endif
|