Click or drag to resize

BinaryHeapPriorityQueue<TElement> Methods

The BinaryHeapPriorityQueue<TElement> generic type exposes the following members.

Methods
  NameDescription
Public methodAdd
Adds the specified element to the queue
(Overrides PriorityQueueBase<TElement>.Add(TElement).)
Public methodClear
Clears the queue.
(Overrides PriorityQueueBase<TElement>.Clear().)
Public methodContains
Determines whether the queue contains the element specified
(Overrides PriorityQueueBase<TElement>.Contains(TElement).)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodGetEnumerator
Throws a NotSupportException, as binary heaps can't be enumerated.
(Overrides PriorityQueueBase<TElement>.GetEnumerator().)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPeek
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().)
Public methodRemove
Removes the first element from the queue, if the queue isn't empty.
(Overrides PriorityQueueBase<TElement>.Remove().)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Explicit Interface Implementations
See Also