Adds an item to the queue with a specified priority. Call Push to add an item to the queue.
To retrieve items added with Push, call DataStructures.TFloatPriorityQueue.Pop or DataStructures.TFloatPriorityQueue.Peek .
Namespace: DataStructures
Delphi |
public |
Parameters
Value
Type: TObject
Priority
Type: Single
Type: THeapElement