Files
bitchx/dll/europa/cse476/lexicon.h
Kevin Easton 28febcfea9 Initial import of the ircii-pana-1.1-final source tree.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/tags/ircii-pana-1.1-final@1 13b04d17-f746-0410-82c6-800466cd88b0
2008-02-25 09:25:32 +00:00

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