Overloaded. Creates and initializes the heap. The ElementClass parameter specifies the THeapElement class to create for every node in the heap. (Inherited from DataStructures.TCustomHeap.)
When an item is added to the heap. It is pushed up from the bottom of the heap (the tree) until it is not bigger (according to Order) than any of its parents.
Deletes the node or heap element at the specified index in the heap. The item at the specified node is returned.
If the item to delete is the last one, delete it and shrink the tree, the tree will still be a heap. Otherwise, delete replace the item with the lowest, rightmost item in the heap and "reheapify".
Overloaded. Modifies the priority the heap element at the specified index position in the heap. The new index of the element is returned. (Inherited from DataStructures.THeap.)