public class <T> where T : IHeapItem
The implementation of a Minimum or Maximum Heap.
Summary:
Generates a new Heap.
Remarks:
Initialised with an initial size of 32.
Params:
HeapOrder:
The ordering in which to sort T in a heap.
Summary:
Generates a new Heap, initialised with MaxSize.
Params:
InitialSize:
The size of the heap.
HeapOrder:
The ordering in which to sort T in a heap.
public void
Summary:
Adds an item to this Heap.
Params:
Item:
The item to add.
public R
Summary:
Remove the Element at the root of this Heap.
Returns:
The element that was removed.
public void
Summary:
Updates Item's position in the Heap.
Params:
Item:
The item to update.
public void
Summary:
Sorts this Item upwards.
Params:
Item:
The item to update.
public void
Summary:
Sorts this Item downwards.
Params:
Item:
The item to update.
public bool
Summary:
Whether or not this Heap contains Item.
Params:
Item:
The Item to check.
Returns:
True if Item exists in this Heap.
public void
Summary:
Clears this Heap.
public T[]
Summary:
The Heap as a T[].
Returns:
T[] in the order of this THeap.