BinaryHeapPriorityQueue<TElement> Methods |
The BinaryHeapPriorityQueue<TElement> generic type exposes the following members.
Name | Description | |
---|---|---|
Add |
Adds the specified element to the queue
(Overrides PriorityQueueBase<TElement>.Add(TElement).) | |
Clear |
Clears the queue.
(Overrides PriorityQueueBase<TElement>.Clear().) | |
Contains |
Determines whether the queue contains the element specified
(Overrides PriorityQueueBase<TElement>.Contains(TElement).) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetEnumerator |
Throws a NotSupportException, as binary heaps can't be enumerated.
(Overrides PriorityQueueBase<TElement>.GetEnumerator().) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Peek |
Peeks at the first element of the queue (the one with the highest priority, according to the priority comparison) and returns that element
without removing it
(Overrides PriorityQueueBase<TElement>.Peek().) | |
Remove |
Removes the first element from the queue, if the queue isn't empty.
(Overrides PriorityQueueBase<TElement>.Remove().) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
IEnumerable<TElement>.GetEnumerator |
Returns an enumerator that iterates through the collection.
(Inherited from PriorityQueueBase<TElement>.) | |
IEnumerable.GetEnumerator |
Returns an enumerator that iterates through a collection.
(Inherited from PriorityQueueBase<TElement>.) |