1 instantiation of PriorityQueue
System.Threading.Channels (1)
System\Threading\Channels\UnboundedPriorityChannel.cs (1)
43_items = new PriorityQueue<bool, T>(comparer);
41 references to PriorityQueue
System.Collections (40)
System\Collections\Generic\PriorityQueue.cs (37)
67/// Initializes a new instance of the <see cref="PriorityQueue{TElement, TPriority}"/> class. 76/// Initializes a new instance of the <see cref="PriorityQueue{TElement, TPriority}"/> class 89/// Initializes a new instance of the <see cref="PriorityQueue{TElement, TPriority}"/> class 103/// Initializes a new instance of the <see cref="PriorityQueue{TElement, TPriority}"/> class 123/// Initializes a new instance of the <see cref="PriorityQueue{TElement, TPriority}"/> class 140/// Initializes a new instance of the <see cref="PriorityQueue{TElement, TPriority}"/> class 170/// Gets the number of elements contained in the <see cref="PriorityQueue{TElement, TPriority}"/>. 175/// Gets the priority comparer used by the <see cref="PriorityQueue{TElement, TPriority}"/>. 189/// Adds the specified element with associated priority to the <see cref="PriorityQueue{TElement, TPriority}"/>. 191/// <param name="element">The element to add to the <see cref="PriorityQueue{TElement, TPriority}"/>.</param> 220/// Returns the minimal element from the <see cref="PriorityQueue{TElement, TPriority}"/> without removing it. 222/// <exception cref="InvalidOperationException">The <see cref="PriorityQueue{TElement, TPriority}"/> is empty.</exception> 223/// <returns>The minimal element of the <see cref="PriorityQueue{TElement, TPriority}"/>.</returns> 235/// Removes and returns the minimal element from the <see cref="PriorityQueue{TElement, TPriority}"/>. 238/// <returns>The minimal element of the <see cref="PriorityQueue{TElement, TPriority}"/>.</returns> 252/// Removes the minimal element and then immediately adds the specified element with associated priority to the <see cref="PriorityQueue{TElement, TPriority}"/>, 254/// <param name="element">The element to add to the <see cref="PriorityQueue{TElement, TPriority}"/>.</param> 300/// Removes the minimal element from the <see cref="PriorityQueue{TElement, TPriority}"/>, 308/// <see langword="false"/> if the <see cref="PriorityQueue{TElement, TPriority}"/> is empty. 325/// Returns a value that indicates whether there is a minimal element in the <see cref="PriorityQueue{TElement, TPriority}"/>, 328/// The element is not removed from the <see cref="PriorityQueue{TElement, TPriority}"/>. 334/// <see langword="false"/> if the <see cref="PriorityQueue{TElement, TPriority}"/> is empty. 350/// Adds the specified element with associated priority to the <see cref="PriorityQueue{TElement, TPriority}"/>, 353/// <param name="element">The element to add to the <see cref="PriorityQueue{TElement, TPriority}"/>.</param> 391/// Enqueues a sequence of element/priority pairs to the <see cref="PriorityQueue{TElement, TPriority}"/>. 452/// Enqueues a sequence of elements pairs to the <see cref="PriorityQueue{TElement, TPriority}"/>, 568/// Removes all items from the <see cref="PriorityQueue{TElement, TPriority}"/>. 582/// Ensures that the <see cref="PriorityQueue{TElement, TPriority}"/> can hold up to 589/// <returns>The current capacity of the <see cref="PriorityQueue{TElement, TPriority}"/>.</returns> 604/// Sets the capacity to the actual number of items in the <see cref="PriorityQueue{TElement, TPriority}"/>, 935/// Enumerates the contents of a <see cref="PriorityQueue{TElement, TPriority}"/>, without any ordering guarantees. 941internal readonly PriorityQueue<TElement, TPriority> _queue; 943internal UnorderedItemsCollection(PriorityQueue<TElement, TPriority> queue) => _queue = queue; 984/// Enumerates the element and priority pairs of a <see cref="PriorityQueue{TElement, TPriority}"/>, 989private readonly PriorityQueue<TElement, TPriority> _queue; 994internal Enumerator(PriorityQueue<TElement, TPriority> queue) 1013PriorityQueue<TElement, TPriority> localQueue = _queue;
System\Collections\Generic\PriorityQueueDebugView.cs (3)
10private readonly PriorityQueue<TElement, TPriority> _queue; 13public PriorityQueueDebugView(PriorityQueue<TElement, TPriority> queue) 21public PriorityQueueDebugView(PriorityQueue<TElement, TPriority>.UnorderedItemsCollection collection)
System.Threading.Channels (1)
System\Threading\Channels\UnboundedPriorityChannel.cs (1)
25private readonly PriorityQueue<bool, T> _items;