Copyright 1998 Russell Leighton
Changes:
#include "sys.h"
#include "errors.h"
#include "util.h"
Go to the source code of this file.
Data Structures | |
| struct | aw_trie_node_struct |
| struct | aw_trie_struct |
| struct | oht_t |
Typedefs | |
| typedef aw_trie_node_struct | aw_trie_node_t |
| typedef aw_trie_struct | aw_trie_t |
Functions | |
| void | aw_trie_clear (aw_trie_t *trie) |
| Leave the nodes, clear the buckets. | |
| void * | aw_trie_delete (const byte_t *s, aw_trie_t *trie) |
Remove a value associated with string from a trie
| |
| void | aw_trie_destroy (aw_trie_t *trie) |
| Free memory used by trie. | |
| void * | aw_trie_fetch (const byte_t *s, const aw_trie_t *trie) |
| int32_t | aw_trie_insert (const byte_t *s, void *value_ptr, aw_trie_t *trie) |
Insert a string into a trie with a pointer to an associated value.
| |
| aw_trie_t * | aw_trie_make (void) |
Constructor for a trie dictionary structure
| |
| void | aw_trie_thin (aw_trie_t *trie, void *user_ptr, u_int32_t(*eval)(void *user_ptr, void *value_ptr)) |
| Free the memory for those nodes that eval( user_ptr, value_ptr ) returns non-zero . Can be used to map all elements. | |
| int32_t | aw_trie_uincr (const byte_t *s, u_int32_t uincr, aw_trie_t *trie) |
Interpret the user pointer as a 32bit unsigned int and increment by 'incr' .
| |
|
|
|
|
|
|
|
|
Leave the nodes, clear the buckets. aw_trie_clear |
|
||||||||||||
|
Remove a value associated with string from a trie
aw_trie_delete |
|
|
Free memory used by trie. aw_trie_destroy |
|
||||||||||||
|
aw_trie_fetch
|
|
||||||||||||||||
|
Insert a string into a trie with a pointer to an associated value.
aw_trie_insert |
|
|
Constructor for a trie dictionary structure
aw_trie_make |
|
||||||||||||||||
|
Free the memory for those nodes that eval( user_ptr, value_ptr ) returns non-zero . Can be used to map all elements. aw_trie_thin |
|
||||||||||||||||
|
Interpret the user pointer as a 32bit unsigned int and increment by 'incr' .
aw_trie_uincr |