|
bool | IsBinaryHeapValid () |
| Determines whether the binary heap of the internal binary heap queue is valid. More...
|
|
TItem | Peek () |
| Returns the item at the head of the queue without removing it. More...
|
|
void | Enqueue (TItem item, TPriority priority) |
| Enqueues an item to the list. Items with lower priority values are placed ahead of the queue. More...
|
|
TItem | Dequeue () |
| Removes and returns the item at the head of the queue. In the event of a priority tie the item inserted first in the queue is returned. More...
|
|
bool | Contains (TItem item) |
| Returns true if the queue has 1 or more of the secified items. More...
|
|
TItem | Remove (TItem item) |
| RemoveBehaviour the specified item. Note that the queue may contain multiples of the same item, in which case this removes the one that is closest to the head. More...
|
|
TItem | Remove (Func< TItem, bool > predicate) |
| RemoveBehaviour the specified item. Note that the queue may contain multiples of the same item, in which case this removes the one that is closest to the head. More...
|
|
void | UpdatePriority (TItem item, TPriority priority) |
| Updates the priority of the specified item. If the item does not exist in the queue, it simply returns. More...
|
|
void | Clear () |
| Removes every node from the queue. O(n) More...
|
|
| ThreadSafePriorityQueue () |
| Initializes a new instance of the T:Crystal.ThreadSafePriorityQueue`2 class. More...
|
|
| ThreadSafePriorityQueue (int size) |
| Initializes a new instance of the T:Crystal.ThreadSafePriorityQueue`2 class. More...
|
|
TItem | Peek () |
| Returns the item at the head of the queue without removing it. More...
|
|
void | Enqueue (TItem item, TPriority priority) |
| Enqueues an item to the list. Items with lower priority values are placed ahead of the queue. More...
|
|
TItem | Dequeue () |
| Removes and returns the item at the head of the queue. In the event of a priority tie the item inserted first in the queue is returned. More...
|
|
bool | Contains (TItem item) |
| Returns true if the queue has 1 or more of the secified items. More...
|
|
TItem | Remove (TItem item) |
| RemoveBehaviour the specified item. Note that the queue may contain multiples of the same item, in which case this removes the one that is closest to the head. More...
|
|
TItem | Remove (Func< TItem, bool > predicate) |
| Removes the first item that matches the specified predicate. Note that the queue may contain multiples of the same item, in which case this removes the one that is closest to the head. More...
|
|
void | UpdatePriority (TItem item, TPriority priority) |
| Updates the priority of the specified item. If the item does not exist in the queue, it simply returns. More...
|
|
void | Clear () |
| Removes every node from the queue. More...
|
|
Thread safe priority queue.
- Type Constraints
-
TPriority | : | IComparable<TPriority> | |