|
| PriorityQueue () |
| Construct a default instance of PriorityQueue.
|
|
auto | size () const -> Index |
| Return the size of the priority queue.
|
|
auto | reset () -> void |
| Reset the priorities of the tracked entities.
|
|
auto | increment (Index identity) -> void |
| Increment the priority of a tracked entity. More...
|
|
auto | extend () -> void |
| Extend the queue with the introduction of a new tracked entity.
|
|
auto | priorities () const -> Deque< Index > const & |
| Return the current priorities of each tracked entity in the queue.
|
|
auto | order () const -> Deque< Index > const & |
| Return the current order of the tracked entities in the queue.
|
|
◆ withInitialPrioritiesAndOrder()
Return a PriorityQueue instance with given initial priorities and order.
- Note
- A stable sort algorithm is applied to ensure consistency between given order and priorities.
◆ increment()
auto increment |
( |
Index |
identity | ) |
-> void |
Increment the priority of a tracked entity.
- Parameters
-
identity | The index of the tracked entity. |
The documentation for this class was generated from the following file: