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.
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToArray |
Returns all queued items as a 1D array. Highest priority items first descending.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
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