Dazzle.Trie – libdazzle-1.0 Reference Manual
Packages
libdazzle-1.0
Dazzle
Trie
Trie
@ref
destroy
insert
lookup
remove
traverse
unref
Trie
Object Hierarchy:
Description:
[
CCode
( ref_function =
"dzl_trie_ref"
, type_id =
"dzl_trie_get_type ()"
, unref_function =
"dzl_trie_unref"
) ]
[
Compact
]
public
class
Trie
Namespace:
Dazzle
Package:
libdazzle-1.0
Content:
Creation methods:
public
Trie
(
DestroyNotify
value_destroy)
Creates a new
Trie
.
Methods:
public
Trie
@ref
()
public
void
destroy
()
This is an alias for
unref
.
public
void
insert
(
string
key,
void
* value)
Inserts
value
into
this
located with
key
.
public
void
*
lookup
(
string
key)
Looks up
key
in
this
and returns the value associated.
public
bool
remove
(
string
key)
Removes
key
from
this
, possibly destroying the value associated with the key.
public
void
traverse
(
string
key,
TraverseType
order,
TraverseFlags
flags,
int
max_depth,
TrieTraverseFunc
func)
Traverses all nodes of
this
according to the parameters.
public
void
unref
()
Drops the reference count by one on
this
.