PriorityQueue
November 15, 2020 ยท View on GitHub
Represents a Queue in which the elements are ordered using a specified priority.
Constructors
PriorityQueue() Initializes a new instance of PriorityQueue
PriorityQueue(PriorityQueueOrder order) Initializes a new instance of PriorityQueue
PriorityQueue(int capacity, PriorityQueueOrder order) Initializes a new instance of PriorityQueue
Properties
int Count Gets the number of elements contained in the PriorityQueue
bool IsEmpty Determines whether the PriorityQueue
Methods
void Push(T value, int priority) Inserts a new item into the PriorityQueue
PriorityQueueNode<T> Pop() Removes the element with the highest (or lowest) priority from the PriorityQueue
PriorityQueueNode<T> Peek() Returns the PriorityQueueNode