Click or drag to resize

PriorityQueueT Methods

The PriorityQueueT generic type exposes the following members.

Methods
  NameDescription
Public methodClear
Clears and empties queue.
Public methodDequeue
Take the first element out of the queue and return it. the first element is the one with the largest key.
Public methodEnqueue
Add a new element to the queue, with the given priority
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToArray
Copies the elements of the priority queue to a new array, sorts it and returns it in priority order.

This is an O(n log(n)) operation

Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also