SortedPriorityQueue<TElement> Class |
Namespace: SD.Tools.Algorithmia.PriorityQueues
The SortedPriorityQueue<TElement> type exposes the following members.
Name | Description | |
---|---|---|
SortedPriorityQueue<TElement> |
Initializes a new instance of the SortedPriorityQueue<TElement> class.
|
Name | Description | |
---|---|---|
Count |
Gets the number of elements in the queue
(Overrides PriorityQueueBase<TElement>.Count.) | |
PriorityComparison |
Gets the priority comparison.
(Inherited from PriorityQueueBase<TElement>.) |
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 |
Gets the enumerator for this queue
(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>.) |