![]() |
AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
|
Min-heap priority queue. In other words, lower priorities will be removed from the queue first. See http://en.wikipedia.org/wiki/Binary_heap for more info. More...
Classes | |
| class | ValueCollection |
Public Member Functions | |
| PriorityQueue () | |
| PriorityQueue (IComparer< TPriority > comparer) | |
| IEnumerator< KeyValuePair< TPriority, TValue > > | GetEnumerator () |
| void | Clear () |
| Clears the priority queue More... | |
| void | Push (TPriority priority, TValue value) |
| Add an element to the priority queue. More... | |
| KeyValuePair< TPriority, TValue > | Pop () |
| Pop the minimal element of the queue. Will fail at runtime if queue is empty. More... | |
| bool | Contains (TValue value) |
| Returns whether or not the value is contained in the queue More... | |
| bool | Remove (TValue value) |
| Removes the first element that equals the value from the queue More... | |
| bool | RemoveAtPriority (TPriority priority, Predicate< TValue > shouldRemove) |
| Removes all elements with this priority from the queue. More... | |
Properties | |
| ValueCollection | Values [get] |
| int | Count [get] |
| Number of elements in priority queue More... | |
| KeyValuePair< TPriority, TValue > | Top [get] |
| Get the element with the minimum priority in the queue. The Key in the return value is the priority. More... | |
Min-heap priority queue. In other words, lower priorities will be removed from the queue first. See http://en.wikipedia.org/wiki/Binary_heap for more info.
| TPriority | Type for the priority used for ordering. |
| TValue | Type of values in the queue. |
Definition at line 17 of file PriorityQueue.cs.
| HoloToolkit.Unity.PriorityQueue< TPriority, TValue >.PriorityQueue | ( | ) |
Definition at line 48 of file PriorityQueue.cs.
| HoloToolkit.Unity.PriorityQueue< TPriority, TValue >.PriorityQueue | ( | IComparer< TPriority > | comparer | ) |
Definition at line 50 of file PriorityQueue.cs.
| void HoloToolkit.Unity.PriorityQueue< TPriority, TValue >.Clear | ( | ) |
Clears the priority queue
Definition at line 93 of file PriorityQueue.cs.
| bool HoloToolkit.Unity.PriorityQueue< TPriority, TValue >.Contains | ( | TValue | value | ) |
Returns whether or not the value is contained in the queue
Definition at line 147 of file PriorityQueue.cs.
| IEnumerator<KeyValuePair<TPriority, TValue> > HoloToolkit.Unity.PriorityQueue< TPriority, TValue >.GetEnumerator | ( | ) |
Definition at line 78 of file PriorityQueue.cs.
| KeyValuePair<TPriority, TValue> HoloToolkit.Unity.PriorityQueue< TPriority, TValue >.Pop | ( | ) |
Pop the minimal element of the queue. Will fail at runtime if queue is empty.
Definition at line 135 of file PriorityQueue.cs.
| void HoloToolkit.Unity.PriorityQueue< TPriority, TValue >.Push | ( | TPriority | priority, |
| TValue | value | ||
| ) |
Add an element to the priority queue.
| priority | Priority of the element |
| value |
Definition at line 103 of file PriorityQueue.cs.
| bool HoloToolkit.Unity.PriorityQueue< TPriority, TValue >.Remove | ( | TValue | value | ) |
Removes the first element that equals the value from the queue
Definition at line 155 of file PriorityQueue.cs.
| bool HoloToolkit.Unity.PriorityQueue< TPriority, TValue >.RemoveAtPriority | ( | TPriority | priority, |
| Predicate< TValue > | shouldRemove | ||
| ) |
Removes all elements with this priority from the queue.
Definition at line 174 of file PriorityQueue.cs.
|
get |
Number of elements in priority queue
Definition at line 113 of file PriorityQueue.cs.
|
get |
Get the element with the minimum priority in the queue. The Key in the return value is the priority.
Definition at line 124 of file PriorityQueue.cs.
|
get |
Definition at line 64 of file PriorityQueue.cs.