The PriorityQueue TValue type exposes the following members.
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
![]() | PriorityQueue TValue |
Create a new instance of the priority queue.
|
Methods
Name | Description | |
---|---|---|
![]() | Clear |
Clear the content of all queues
|
![]() | CopyTo |
Copies queued items into the provided destination array. Highest priority items first descending until
destination is full or there are no remaining items.
|
![]() | ![]() | (Inherited from ![]() |
![]() | ![]() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from ![]() |
![]() | ![]() | Serves as a hash function for a particular type. (Inherited from ![]() |
![]() | ![]() | Gets the (Inherited from ![]() ![]() |
![]() | ![]() | Creates a shallow copy of the current (Inherited from ![]() ![]() |
![]() | ToArray |
Returns all queued items as a 1D array. Highest priority items first descending.
|
![]() | ![]() | Returns a string that represents the current object. (Inherited from ![]() |
![]() | TryAdd |
Try adding an item to the priority queue.
|
![]() | TryTake(KeyValuePair QueueItemPriority, TValue ) |
Try removing an item from the priority queue
|
![]() | TryTake(QueueItemPriority, KeyValuePair QueueItemPriority, TValue ) |
Try removing an item from the priority queue which has a priority of at least that provided.
|
Properties
Name | Description | |
---|---|---|
![]() | Count |
The total number of items currently queued.
|
![]() | IsSynchronized |
Gets a value indicating whether access to the PriorityQueue is synchronized (thread safe). Always returns true.
|
![]() | SyncRoot |
Gets an object that can be used to synchronize access to the PriorityQueue. Throws an exception as all access is explicitly thread safe.
|
See Also