Edinburgh Speech Tools  2.1-release
EST_StringTrie Class Reference

A string tree index class for indexing arbitrary objects by strings of characters. More...

#include <include/EST_StringTrie.h>

Public Member Functions

 EST_StringTrie ()
 
 EST_StringTrie (const EST_StringTrie &trie)
 
 ~EST_StringTrie ()
 
void copy (const EST_StringTrie &trie)
 
void * lookup (const EST_String &key) const
 Find contents index by key, 0 if there is not contents. More...
 
void add (const EST_String &key, void *item)
 Add item indexed by key, overwriting previous contents. More...
 
void clear (void)
 Delete the tree. More...
 
void clear (void(*deletenode)(void *n))
 Delete the tree, apply deletenote function to each contents More...
 
EST_StringTrieoperator= (const EST_StringTrie &a)
 

Detailed Description

A string tree index class for indexing arbitrary objects by strings of characters.

Note this only deals with 7 but characters, and can only hold one item per index key.

Definition at line 87 of file EST_StringTrie.h.

Constructor & Destructor Documentation

EST_StringTrie::EST_StringTrie ( )

Definition at line 126 of file EST_StringTrie.cc.

EST_StringTrie::EST_StringTrie ( const EST_StringTrie trie)
inline

Definition at line 94 of file EST_StringTrie.h.

EST_StringTrie::~EST_StringTrie ( )

Definition at line 139 of file EST_StringTrie.cc.

Member Function Documentation

void EST_StringTrie::copy ( const EST_StringTrie trie)

Definition at line 131 of file EST_StringTrie.cc.

void * EST_StringTrie::lookup ( const EST_String key) const

Find contents index by key, 0 if there is not contents.

Definition at line 144 of file EST_StringTrie.cc.

void EST_StringTrie::add ( const EST_String key,
void *  item 
)

Add item indexed by key, overwriting previous contents.

Definition at line 150 of file EST_StringTrie.cc.

void EST_StringTrie::clear ( void  )

Delete the tree.

Definition at line 157 of file EST_StringTrie.cc.

void EST_StringTrie::clear ( void(*)(void *n)  deletenode)

Delete the tree, apply deletenote function to each contents

Definition at line 163 of file EST_StringTrie.cc.

EST_StringTrie& EST_StringTrie::operator= ( const EST_StringTrie a)
inline

Definition at line 109 of file EST_StringTrie.h.


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