Dillo
Classes | Public Member Functions | Static Public Attributes | Private Attributes | List of all members
dw::Trie Class Reference

#include <hyphenator.hh>

Classes

struct  TrieNode
 

Public Member Functions

 Trie (TrieNode *array=NULL, int size=0, bool freeArray=false, lout::misc::ZoneAllocator *dataZone=NULL)
 
 ~Trie ()
 
bool validState (int state)
 
const char * getData (unsigned char c, int *state)
 
void save (FILE *file)
 
int load (FILE *file)
 

Static Public Attributes

static const int root = 0
 

Private Attributes

TrieNodearray
 
int size
 
bool freeArray
 
lout::misc::ZoneAllocatordataZone
 

Constructor & Destructor Documentation

dw::Trie::Trie ( TrieNode array = NULL,
int  size = 0,
bool  freeArray = false,
lout::misc::ZoneAllocator dataZone = NULL 
)
dw::Trie::~Trie ( )

Member Function Documentation

const char* dw::Trie::getData ( unsigned char  c,
int *  state 
)
inline
int dw::Trie::load ( FILE *  file)
void dw::Trie::save ( FILE *  file)
bool dw::Trie::validState ( int  state)
inline

References size.

Referenced by getData().

Member Data Documentation

TrieNode* dw::Trie::array
private
lout::misc::ZoneAllocator* dw::Trie::dataZone
private
bool dw::Trie::freeArray
private
const int dw::Trie::root = 0
static
int dw::Trie::size
private

Referenced by validState().


The documentation for this class was generated from the following files: