Managed implementation of a priority queue (based on a binary heap)
More...
|
override int | Count () |
|
override T | Dequeue () |
| Returns the value of the highest-priority element and removes it from the queue.
|
|
override void | Enqueue (T element) |
| Enqueues an element into the queue.
|
|
override bool | IsEmpty () |
|
override T | Peek () |
| Retrieves the value of the highest-priority element, without taking it from the queue.
|
|
| PriorityQueue (IComparer< T > comparer) |
|
int | Count () |
|
T | Dequeue () |
|
void | Enqueue (T element) |
|
bool | IsEmpty () |
|
T | Peek () |
|
Managed implementation of a priority queue (based on a binary heap)
- Template Parameters
-
◆ Dequeue()
Returns the value of the highest-priority element and removes it from the queue.
- Returns
◆ Enqueue()
override void Enqueue |
( |
T | element | ) |
|
Enqueues an element into the queue.
- Parameters
-
◆ IsEmpty()
override bool IsEmpty |
( |
| ) |
|
- Returns
- True if the queue is empty, and false otherwise
◆ Peek()
Retrieves the value of the highest-priority element, without taking it from the queue.
- Returns