This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Typedefs | |
typedef _apatnode | APATNODE |
Patricia binary tree node, to search related pointer from string. | |
typedef _patnode | PATNODE |
Another patricia binary tree node, to search integer value from string. | |
Functions | |
int | testbit (char *str, int bitplace) |
int | where_the_bit_differ (char *str1, char *str2) |
PATNODE * | make_ptree (char **words, int *data, int wordsnum, int bitplace) |
void | disp_ptree (PATNODE *node, int level) |
int | ptree_search_data (char *str, PATNODE *rootnode) |
PATNODE * | ptree_make_root_node (int data) |
void | ptree_add_entry (char *str, int data, char *matchstr, PATNODE **rootnode) |
void | free_ptree (PATNODE *rootnode) |
void * | aptree_search_data (char *str, APATNODE *rootnode) |
APATNODE * | aptree_make_root_node (void *data) |
void | aptree_add_entry (char *str, void *data, char *matchstr, APATNODE **rootnode) |
void | aptree_remove_entry (char *str, APATNODE **rootnode) |
void | aptree_traverse_and_do (APATNODE *node, void(*callback)(void *)) |
void | free_aptree (APATNODE *rootnode) |
Definition in file ptree.h.
|
String bit test function.
Definition at line 36 of file ptree.c. Referenced by aptree_add_entry_at(), make_ptree(), ptree_add_entry_at(), and where_the_bit_differ(). |
|
Find in which bit the two strings differ, starting from the head.
Definition at line 61 of file ptree.c. Referenced by aptree_add_entry(), and ptree_add_entry(). |
|
Make a patricia tree for given string arrays. Recursively called by descending the scan bit.
Definition at line 105 of file ptree.c. Referenced by make_ptree(), and ngram_make_lookup_tree(). |
|
Output a tree structure in text for debug, traversing pre-order
Definition at line 168 of file ptree.c. Referenced by disp_ptree(). |
|
Search for the data whose key string matches the given string.
Definition at line 246 of file ptree.c. Referenced by ngram_lookup_word(), and set_unigram(). |
|
Make a root node of a index tree.
Definition at line 268 of file ptree.c. Referenced by ptree_add_entry(), and set_unigram(). |
|
Insert a new node to the index tree.
Definition at line 326 of file ptree.c. Referenced by set_unigram(). |
|
Free all the sub nodes from specified node.
Definition at line 345 of file ptree.c. Referenced by free_ptree(), and ngram_info_free(). |
|
Search for the data whose key string matches the given string.
Definition at line 103 of file aptree.c. Referenced by add_to_error(), cdset_lookup(), codebook_add(), codebook_lookup(), dens_add(), dens_lookup(), hmm_add_physical_to_logical(), hmm_add_pseudo_phones_sub(), htk_hmmdata_add(), htk_hmmdata_lookup_logical(), htk_hmmdata_lookup_physical(), lcdset_lookup_with_category(), make_hmm_basephone_list(), mark_word_edge(), new_str2phseq(), rdhmmlist(), regist_cdset(), remove_cdset(), state_add(), state_lookup(), trans_add(), trans_lookup(), var_add(), and var_lookup(). |
|
Make a root node of a index tree.
Definition at line 125 of file aptree.c. Referenced by add_to_error(), aptree_add_entry(), codebook_add(), dens_add(), hmm_add_physical_to_logical(), hmm_add_pseudo_phones_sub(), htk_hmmdata_add(), make_hmm_basephone_list(), rdhmmlist(), regist_cdset(), state_add(), trans_add(), and var_add(). |
|
Insert a new node to the index tree.
Definition at line 183 of file aptree.c. Referenced by add_to_error(), codebook_add(), dens_add(), hmm_add_physical_to_logical(), hmm_add_pseudo_phones_sub(), htk_hmmdata_add(), make_hmm_basephone_list(), rdhmmlist(), regist_cdset(), state_add(), trans_add(), and var_add(). |
|
Remove a node from the index tree.
Definition at line 254 of file aptree.c. Referenced by remove_cdset(). |
|
Recursive function to traverse index tree and execute the callback for all the existing data.
Definition at line 276 of file aptree.c. Referenced by aptree_traverse_and_do(), count_all_phone(), lcdset_remove_with_category_all(), print_all_basephone_detail(), print_all_basephone_name(), put_all_cdinfo(), test_interword_triphone(), triphone_callback_left(), and wt_tmix(). |
|
Free all the sub nodes from specified node.
Definition at line 296 of file aptree.c. Referenced by free_aptree(), and lcdset_remove_with_category_all(). |