PriorityQueueT Class

Represents a thread-safe prioritized first in-first out (FIFO) collection.

Definition

Namespace: Gemstone.Threading.Collections
Assembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.128 -- Release Build+d4a9a653be1def5888b9be91bb1825c8655f3529
Inheritance
Object    PriorityQueueT
Implements
IProducerConsumerCollectionT, IEnumerableT, IReadOnlyCollectionT, ICollection, IEnumerable

Type Parameters

T
The type of elements contained in the queue.

Constructors

PriorityQueueT Creates a new instance of the PriorityQueueT class.
PriorityQueueT(Int32) Creates a new instance of the PriorityQueueT class.
PriorityQueueT(PriorityQueueT) Creates a new instance of the PriorityQueueT class.

Properties

Count Gets the number of items in the queue.
IsEmpty Indicates whether the PriorityQueueT is empty.

Methods

CopyTo Copies the PriorityQueueT elements to an existing one-dimensional Array, starting at the specified array index.
Enqueue Enqueues an item into the priority queue.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
GetEnumerator Returns an enumerator that iterates through the PriorityQueueT.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
ToArray Copies the elements stored in the PriorityQueueT to a new array.
ToStringReturns a string that represents the current object.
(Inherited from Object)
TryDequeue(T) Dequeues an item from the priority queue.
TryDequeue(Int32, T) Dequeues an item from the priority queue.
TryPeek(T) Tries to return an object from the beginning of the PriorityQueueT without removing it.
TryPeek(Int32, T) Tries to return an object from the beginning of the PriorityQueueT without removing it.

See Also