Dillo v3.1.1-91-g6d5b3ee3
Loading...
Searching...
No Matches
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
 

Detailed Description

Definition at line 10 of file hyphenator.hh.

Constructor & Destructor Documentation

◆ Trie()

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

Definition at line 530 of file hyphenator.cc.

References array, dataZone, freeArray, and size.

◆ ~Trie()

dw::Trie::~Trie ( )

Definition at line 538 of file hyphenator.cc.

References array, dataZone, and freeArray.

Member Function Documentation

◆ getData()

const char * dw::Trie::getData ( unsigned char  c,
int *  state 
)
inline

◆ load()

◆ save()

void dw::Trie::save ( FILE *  file)

◆ validState()

bool dw::Trie::validState ( int  state)
inline

Definition at line 30 of file hyphenator.hh.

References size.

Referenced by getData(), and dw::Hyphenator::hyphenateSingleWord().

Member Data Documentation

◆ array

TrieNode* dw::Trie::array
private

Definition at line 19 of file hyphenator.hh.

Referenced by getData(), load(), save(), Trie(), and ~Trie().

◆ dataZone

lout::misc::ZoneAllocator* dw::Trie::dataZone
private

Definition at line 22 of file hyphenator.hh.

Referenced by load(), Trie(), and ~Trie().

◆ freeArray

bool dw::Trie::freeArray
private

Definition at line 21 of file hyphenator.hh.

Referenced by load(), Trie(), and ~Trie().

◆ root

const int dw::Trie::root = 0
static

Definition at line 29 of file hyphenator.hh.

Referenced by dw::Hyphenator::hyphenateSingleWord().

◆ size

int dw::Trie::size
private

Definition at line 20 of file hyphenator.hh.

Referenced by load(), save(), Trie(), and validState().


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