Heap.this

Creates a new #DzlHeap. A heap is a tree-like structure stored in an array that is not fully sorted, but head is guaranteed to be either the max, or min value based on @compare_func. This is also known as a priority queue.

  1. this(DzlHeap* dzlHeap, bool ownedRef = false)
  2. this(uint elementSize, GCompareFunc compareFunc)
    class Heap
    this
    (
    ,
    GCompareFunc compareFunc
    )

Parameters

elementSize
Type: uint

the size of each element in the heap

compareFunc
Type: GCompareFunc

a function to compare to elements

Return Value

A newly allocated #DzlHeap

Throws

ConstructionException GTK+ fails to create the object.

Meta