PriorityQueuePriority, Value Class |
Namespace: VelocityDBExtensions.Spatial
[Missing <typeparam name="Priority"/> documentation for "T:VelocityDBExtensions.Spatial.PriorityQueue`2"]
[Missing <typeparam name="Value"/> documentation for "T:VelocityDBExtensions.Spatial.PriorityQueue`2"]
The PriorityQueuePriority, Value type exposes the following members.
Name | Description | |
---|---|---|
PriorityQueuePriority, Value |
Creates a PriorityQue
|
Name | Description | |
---|---|---|
Count |
The number of values and priorities that are in the que
| |
PriorityPeek |
Peek at the next Priority
| |
SortOrderAscending |
Set or get sorting order, ascending if true or descending if false.
| |
ValuePeek |
Peek at the next value
|
Name | Description | |
---|---|---|
Clear |
Removes all values and priorities from the que
| |
Insert |
Insert a value, append it to the arrays, then reheapify by promoting it to the correct place.
| |
Pop |
Get the value with the lowest priority creates a "hole" at the root of the tree. The algorithm swaps the hole with the appropriate child, until
the last entry will fit correctly into the hole (ie is lower priority than its children)
|