Tree.full


Description:

public Tree.full (CompareDataFunc<K> key_compare_func, DestroyNotify? key_destroy_func, DestroyNotify? value_destroy_func)

Creates a new Tree like g_tree_new and allows to specify functions to free the memory allocated for the key and value that get called when removing the entry from the Tree.

Parameters:

key_compare_func

qsort-style comparison function

key_destroy_func

a function to free the memory allocated for the key used when removing the entry from the Tree or null if you don't want to supply such a function

key_compare_data

data to pass to comparison function

value_destroy_func

a function to free the memory allocated for the value used when removing the entry from the Tree or null if you don't want to supply such a function

Returns:

a newly allocated Tree