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_StringTrie & | operator= (const EST_StringTrie &a) |
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.
EST_StringTrie::EST_StringTrie | ( | ) |
Definition at line 126 of file EST_StringTrie.cc.
|
inline |
Definition at line 94 of file EST_StringTrie.h.
EST_StringTrie::~EST_StringTrie | ( | ) |
Definition at line 139 of file EST_StringTrie.cc.
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.
|
inline |
Definition at line 109 of file EST_StringTrie.h.