Click or drag to resize
PriorityQueueTValue, TPriority Class
Priority queue implementation based on a RedBlackTreeList.
Inheritance Hierarchy
SystemObject
  Telerik.Windows.Diagrams.CorePriorityQueueTValue, TPriority

Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Diagrams.Core (in Telerik.Windows.Diagrams.Core.dll) Version: 2017.2.614.40 (2017.2.614.40)
Syntax
public sealed class PriorityQueue<TValue, TPriority> : ICollection<TValue>, 
	IEnumerable<TValue>, IEnumerable

Type Parameters

TValue
The data type of the value.
TPriority
The data type of the priority indicator.

The PriorityQueueTValue, TPriority type exposes the following members.

Constructors
  NameDescription
Public methodPriorityQueueTValue, TPriority(OrderType)
Initializes a new instance of the PriorityQueueTValue, TPriority class.
Public methodPriorityQueueTValue, TPriority(OrderType, IComparerTPriority)
Initializes a new instance of the PriorityQueueTValue, TPriority class.
Public methodPriorityQueueTValue, TPriority(OrderType, ComparisonTPriority)
Initializes a new instance of the PriorityQueueTValue, TPriority class.
Top
Methods
  NameDescription
Public methodAdd
Adds the specified item to the queue.
Public methodAddPriorityGroup
Adds the specified items to the priority queue with the specified priority.
Public methodClear
Clears this queue of all its items..
Public methodContains
Returns whether the given item is present in the queue.
Public methodCopyTo
Copies the content of the queue to the given array.
Public methodDequeue
Dequeues the item from the head of the queue.
Public methodEnqueue(TValue)
Enqueues the specified item.
Public methodEnqueue(TValue, TPriority)
Enqueues the specified item.
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodGetKeyEnumerator
Returns an enumerator that iterates through the keys in the collection.
Public methodGetPriorityGroup
Removes the items with the specified priority.
Public methodPeek
Peeks at the item in the front of the queue, without removing it.
Public methodPeek(TPriority)
Peeks at the item in the front of the queue, without removing it.
Public methodPop
Dequeues the item at the front of the queue.
Public methodPush(TValue)
Pushes the specified item in the queue.
Public methodPush(TValue, TPriority)
Public methodRemove(TValue)
Removes the specified item from this queue.
Public methodRemove(TValue, TPriority)
Removes the first occurrence of the specified item from the property queue.
Public methodRemovePriorityGroup
Removes the items with the specified priority.
Top
Extension Methods
  NameDescription
Public Extension MethodAddRangeTValue(IEnumerableTValue)Overloaded.
Adds the elements from the specified collection - items to the end of the target collection.
(Defined by CollectionExtensions.)
Public Extension MethodAddRangeTValue(IEnumerableTValue)Overloaded.
Adds the given range of items to the current collection.
(Defined by CommonExtensions.)
Public Extension MethodAppendTValue(IEnumerableTValue)Overloaded.
Appends elements from two sequences.
(Defined by CollectionExtensions.)
Public Extension MethodAppendTValue(TValue)Overloaded.
Appends an element to a sequence.
(Defined by CollectionExtensions.)
Public Extension MethodAppendTValue(IEnumerableTValue)Overloaded. (Defined by EnumerableExtensions.)
Public Extension MethodAppendTValue(TValue)Overloaded. (Defined by EnumerableExtensions.)
Public Extension MethodCastCovariantTValue, TTo
Casts enumerable of TFrom to enumerable of TTo on platforms where covariance is not supported.
(Defined by ExtensionMethods.)
Public Extension MethodCloneTValue
Clones the list.
(Defined by CommonExtensions.)
Public Extension MethodContainsAnyTValue
Checks for the occurrence of the given items in the collection.
(Defined by CommonExtensions.)
Public Extension MethodForEachTValue
Executes the action for each item in the collection.
(Defined by CommonExtensions.)
Public Extension MethodRemoveAllTValue
Removes all elements from a collection that match the condition defined by the specified predicate.
(Defined by CollectionExtensions.)
Public Extension MethodTakeAfterTValue
Bypasses elements from a sequence as long as a specified condition is true and then returns the remaining elements.
(Defined by CollectionExtensions.)
Public Extension MethodTakeBeforeTValue
Bypasses elements from a sequence until the specified condition becomes true.
(Defined by CollectionExtensions.)
Public Extension MethodTakeBetweenTValue(FuncTValue, Boolean, FuncTValue, Boolean)Overloaded.
Bypasses elements from a sequence as long as the first condition is false. Returns elements from the remaining elements as long the second condition is false.
(Defined by CollectionExtensions.)
Public Extension MethodTakeBetweenTValue(TValue, TValue)Overloaded.
Returns elements from a sequence as long as they are between the two items.
(Defined by CollectionExtensions.)
Public Extension MethodTakeFromTValue(FuncTValue, Boolean)Overloaded.
Bypasses elements from a sequence as long as a specified condition is false and then returns the element that satisfies the condition and the elements after.
(Defined by CollectionExtensions.)
Public Extension MethodTakeFromTValue(TValue)Overloaded.
Bypasses elements from a sequence as long as the element is not equal to the items in the sequence.
(Defined by CollectionExtensions.)
Public Extension MethodTakeToTValue(FuncTValue, Boolean)Overloaded.
Returns elements from a sequence as long as a specified condition is false. This method also returns the first element that satisfies the condition.
(Defined by CollectionExtensions.)
Public Extension MethodTakeToTValue(TValue)Overloaded.
Returns elements from a sequence as long as the sequence elements differs from the item.
(Defined by CollectionExtensions.)
Top
Properties
  NameDescription
Public propertyCount
Gets the number of elements still in the queue.
Public propertyDefaultPriority
Gets or sets the default priority when an item is added.
Public propertyIsReadOnly
Gets false since this queue is never read-only.
Top
Remarks
See Also