#include <trie.hpp>
Public Member Functions |
| | Trie () |
| | ~Trie () |
| void | create (const char *file_name=NULL, UInt64 file_size=0, UInt32 max_num_keys=0, double num_nodes_per_key=0.0, double average_key_length=0.0) |
| void | create (const Trie &trie, const char *file_name=NULL, UInt64 file_size=0, UInt32 max_num_keys=0, double num_nodes_per_key=0.0, double average_key_length=0.0) |
| void | repair (const Trie &trie, const char *file_name=NULL) |
| void | open (const char *file_name) |
| void | close () |
| void | swap (Trie *trie) |
| const Key & | get_key (UInt32 key_pos) const |
| const Key & | ith_key (UInt32 key_id) const |
| bool | search (const void *ptr, UInt32 length, UInt32 *key_pos=NULL) const |
| bool | lcp_search (const void *ptr, UInt32 length, UInt32 *key_pos=NULL) const |
| bool | remove (UInt32 key_id) |
| bool | remove (const void *ptr, UInt32 length) |
| bool | insert (const void *ptr, UInt32 length, UInt32 *key_pos=NULL) |
| bool | update (UInt32 key_id, const void *ptr, UInt32 length, UInt32 *key_pos=NULL) |
| bool | update (const void *src_ptr, UInt32 src_length, const void *dest_ptr, UInt32 dest_length, UInt32 *key_pos=NULL) |
| const Node & | ith_node (UInt32 i) const |
| const Block & | ith_block (UInt32 i) const |
| const Entry & | ith_entry (UInt32 i) const |
| const Header & | header () const |
| UInt64 | file_size () const |
| UInt64 | virtual_size () const |
| UInt32 | total_key_length () const |
| UInt32 | num_keys () const |
| UInt32 | min_key_id () const |
| UInt32 | next_key_id () const |
| UInt32 | max_key_id () const |
| UInt32 | max_num_keys () const |
| UInt32 | num_nodes () const |
| UInt32 | num_phantoms () const |
| UInt32 | num_zombies () const |
| UInt32 | max_num_nodes () const |
| UInt32 | num_blocks () const |
| UInt32 | max_num_blocks () const |
| UInt32 | next_key_pos () const |
| UInt32 | key_buf_size () const |
| UInt32 | status_flags () const |
| void | clear_status_flags () |
Detailed Description
Definition at line 32 of file trie.hpp.
Constructor & Destructor Documentation
Member Function Documentation
| void clear_status_flags |
( |
| ) |
|
|
inline |
| void create |
( |
const char * |
file_name = NULL, |
|
|
UInt64 |
file_size = 0, |
|
|
UInt32 |
max_num_keys = 0, |
|
|
double |
num_nodes_per_key = 0.0, |
|
|
double |
average_key_length = 0.0 |
|
) |
| |
| void create |
( |
const Trie & |
trie, |
|
|
const char * |
file_name = NULL, |
|
|
UInt64 |
file_size = 0, |
|
|
UInt32 |
max_num_keys = 0, |
|
|
double |
num_nodes_per_key = 0.0, |
|
|
double |
average_key_length = 0.0 |
|
) |
| |
| const Header& header |
( |
| ) |
const |
|
inline |
| bool insert |
( |
const void * |
ptr, |
|
|
UInt32 |
length, |
|
|
UInt32 * |
key_pos = NULL |
|
) |
| |
|
inline |
| bool lcp_search |
( |
const void * |
ptr, |
|
|
UInt32 |
length, |
|
|
UInt32 * |
key_pos = NULL |
|
) |
| const |
|
inline |
| UInt32 max_num_blocks |
( |
| ) |
const |
|
inline |
| UInt32 max_num_nodes |
( |
| ) |
const |
|
inline |
| void open |
( |
const char * |
file_name | ) |
|
| bool remove |
( |
const void * |
ptr, |
|
|
UInt32 |
length |
|
) |
| |
|
inline |
| void repair |
( |
const Trie & |
trie, |
|
|
const char * |
file_name = NULL |
|
) |
| |
| bool search |
( |
const void * |
ptr, |
|
|
UInt32 |
length, |
|
|
UInt32 * |
key_pos = NULL |
|
) |
| const |
|
inline |
| UInt32 total_key_length |
( |
| ) |
const |
|
inline |
| bool update |
( |
const void * |
src_ptr, |
|
|
UInt32 |
src_length, |
|
|
const void * |
dest_ptr, |
|
|
UInt32 |
dest_length, |
|
|
UInt32 * |
key_pos = NULL |
|
) |
| |
|
inline |
The documentation for this class was generated from the following files: