Method
GLibTreelookup_node
since: 2.68
Description
Gets the tree node corresponding to the given key. Since a GTree
is
automatically balanced as key/value pairs are added, key lookup
is O(log n) (where n is the number of key/value pairs in the tree).
Available since: 2.68
Parameters
key
-
Type:
gconstpointer
The key to look up.
The argument can be NULL
.The data is owned by the caller of the method.
Return value
Type: GTreeNode
The tree node corresponding to
the key, or NULL
if the key was not found.
The data is owned by the instance. |
The return value can be NULL . |