Adds the item to the heap based on its priority.
When an item is added to the heap. It is pushed up from the bottom of the heap (the tree) until its Priority is not bigger (according to Order ) than any of its parents.
Namespace: DataStructures
Delphi |
public |
Parameters
Item
Type: TObject
Priority
Type: Integer
Type: TIntHeapElement
Reference•Order |