BBTree.this

Creates a new #GTree 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 #GTree.

  1. this(GTree* gTree, bool ownedRef)
  2. this(GCompareFunc keyCompareFunc)
  3. this(GCompareDataFunc keyCompareFunc, void* keyCompareData, GDestroyNotify keyDestroyFunc, GDestroyNotify valueDestroyFunc)
  4. this(GCompareDataFunc keyCompareFunc, void* keyCompareData)

Parameters

keyCompareFunc GCompareDataFunc

qsort()-style comparison function

keyCompareData void*

data to pass to comparison function

keyDestroyFunc GDestroyNotify

a function to free the memory allocated for the key used when removing the entry from the #GTree or %NULL if you don't want to supply such a function

valueDestroyFunc GDestroyNotify

a function to free the memory allocated for the value used when removing the entry from the #GTree or %NULL if you don't want to supply such a function

Return Value

a newly allocated #GTree

Throws

ConstructionException GTK+ fails to create the object.

Meta