GLib.Tree – glib-2.0 Reference Manual
Packages
glib-2.0
GLib
Tree
Tree
Tree.full
Tree.with_data
@foreach
height
insert
lookup
lookup_extended
nnodes
remove
replace
search
search_key
steal
Tree
Object Hierarchy:
Description:
[
Compact
]
[
Version
( since =
"2.22"
) ]
public
class
Tree
<
K
,
V
>
Namespace:
GLib
Package:
glib-2.0
Content:
Creation methods:
public
Tree
(
CompareDataFunc
<
K
> key_compare_func)
public
Tree.with_data
(
CompareDataFunc
<
K
> key_compare_func)
public
Tree.full
(
CompareDataFunc
<
K
> key_compare_func,
DestroyNotify
? key_destroy_func,
DestroyNotify
? value_destroy_func)
Methods:
public
void
insert
(
owned
K
key,
owned
V
value)
public
void
replace
(
owned
K
key,
owned
V
value)
public
int
nnodes
()
public
int
height
()
public
weak
V
lookup
(
K
key)
public
bool
lookup_extended
(
K
lookup_key,
out
K
orig_key,
out
V
value)
public
void
@foreach
(
TraverseFunc
<
K
,
V
> traverse_func)
public
weak
V
search
(
TreeSearchFunc
<
K
> search_func)
public
weak
V
search_key
(
CompareFunc
<
K
> search_func,
K
key)
public
bool
remove
(
K
key)
public
bool
steal
(
K
key)