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}"/>.
180
/// Gets the priority comparer used by the <see cref="
PriorityQueue
{TElement, TPriority}"/>.
194
/// Adds the specified element with associated priority to the <see cref="
PriorityQueue
{TElement, TPriority}"/>.
196
/// <param name="element">The element to add to the <see cref="
PriorityQueue
{TElement, TPriority}"/>.</param>
225
/// Returns the minimal element from the <see cref="
PriorityQueue
{TElement, TPriority}"/> without removing it.
227
/// <exception cref="InvalidOperationException">The <see cref="
PriorityQueue
{TElement, TPriority}"/> is empty.</exception>
228
/// <returns>The minimal element of the <see cref="
PriorityQueue
{TElement, TPriority}"/>.</returns>
240
/// Removes and returns the minimal element from the <see cref="
PriorityQueue
{TElement, TPriority}"/>.
243
/// <returns>The minimal element of the <see cref="
PriorityQueue
{TElement, TPriority}"/>.</returns>
257
/// Removes the minimal element and then immediately adds the specified element with associated priority to the <see cref="
PriorityQueue
{TElement, TPriority}"/>,
259
/// <param name="element">The element to add to the <see cref="
PriorityQueue
{TElement, TPriority}"/>.</param>
305
/// Removes the minimal element from the <see cref="
PriorityQueue
{TElement, TPriority}"/>,
313
/// <see langword="false"/> if the <see cref="
PriorityQueue
{TElement, TPriority}"/> is empty.
330
/// Returns a value that indicates whether there is a minimal element in the <see cref="
PriorityQueue
{TElement, TPriority}"/>,
333
/// The element is not removed from the <see cref="
PriorityQueue
{TElement, TPriority}"/>.
339
/// <see langword="false"/> if the <see cref="
PriorityQueue
{TElement, TPriority}"/> is empty.
355
/// Adds the specified element with associated priority to the <see cref="
PriorityQueue
{TElement, TPriority}"/>,
358
/// <param name="element">The element to add to the <see cref="
PriorityQueue
{TElement, TPriority}"/>.</param>
396
/// Enqueues a sequence of element/priority pairs to the <see cref="
PriorityQueue
{TElement, TPriority}"/>.
457
/// Enqueues a sequence of elements pairs to the <see cref="
PriorityQueue
{TElement, TPriority}"/>,
573
/// Removes all items from the <see cref="
PriorityQueue
{TElement, TPriority}"/>.
587
/// Ensures that the <see cref="
PriorityQueue
{TElement, TPriority}"/> can hold up to
594
/// <returns>The current capacity of the <see cref="
PriorityQueue
{TElement, TPriority}"/>.</returns>
609
/// Sets the capacity to the actual number of items in the <see cref="
PriorityQueue
{TElement, TPriority}"/>,
940
/// Enumerates the contents of a <see cref="
PriorityQueue
{TElement, TPriority}"/>, without any ordering guarantees.
946
internal readonly
PriorityQueue
<TElement, TPriority> _queue;
948
internal UnorderedItemsCollection(
PriorityQueue
<TElement, TPriority> queue) => _queue = queue;
989
/// Enumerates the element and priority pairs of a <see cref="
PriorityQueue
{TElement, TPriority}"/>,
994
private readonly
PriorityQueue
<TElement, TPriority> _queue;
999
internal Enumerator(
PriorityQueue
<TElement, TPriority> queue)
1018
PriorityQueue
<TElement, TPriority> localQueue = _queue;
System\Collections\Generic\PriorityQueueDebugView.cs (3)
10
private readonly
PriorityQueue
<TElement, TPriority> _queue;
13
public PriorityQueueDebugView(
PriorityQueue
<TElement, TPriority> queue)
21
public PriorityQueueDebugView(
PriorityQueue
<TElement, TPriority>.UnorderedItemsCollection collection)
System.Threading.Channels (1)
System\Threading\Channels\UnboundedPriorityChannel.cs (1)
25
private readonly
PriorityQueue
<bool, T> _items;