StablePriorityQueue<T>
A class in Alta.Timing.Runtime, Alta.Timing.PriorityQueue.
Fast fixed-size priority queue of StablePriorityQueueNode items with float priorities. Equal priorities come out in the order they went in. No safety checks: queuing past MaxSize, or passing a node that is not in this queue, breaks it.
- Listed in Other Alta assemblies
- Inherits or implements
IFixedSizePriorityQueue<T, float>,IPriorityQueue<T, float>,IEnumerable<T>,IEnumerable
Constructors
| Member | What it is |
|---|---|
StablePriorityQueue(int maxNodes) | Creates a StablePriorityQueue from maxNodes. |
Fields
3 private and internal fields
Properties
| Member | What it is |
|---|---|
int Count { get; } | Number of queued nodes. |
T First { get; } | The node Dequeue would return, or null if empty. |
int MaxSize { get; } | Capacity of the queue. |