BinaryPriorityQueue
01 Syntax
Microsoft.VisualBasic.ComponentModel.Collection.BinaryPriorityQueue
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| Push | 1 | Push an object onto the PQ |
| Pop | 1 | Get the smallest object and remove it. |
| Update | 1 | Notify the PQ that the object at position i has changed and the PQ needs to restore order. |
| Peek | 1 | Get the smallest object without removing it. |
| Contains | 1 | |
| Clear | 1 | |
| CopyTo | 1 | |
| Clone | 1 | |
| Syncronized | 1 | |
| ReadOnly | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| Count | 1 | |
| IsSynchronized | 1 | |
| SyncRoot | 1 | |
| IList_Item | 1 |
04 Members
Push(
Object)Push an object onto the PQ
Parameters
| Name | Type | Description |
|---|---|---|
O | Object | The new object |
Returns
The index in the list where the object is now. This will change when objects are taken from or put onto the PQ.
Pop
Get the smallest object and remove it.
Returns
The smallest object
Update(
Int32)Notify the PQ that the object at position i has changed and the PQ needs to restore order. Since you dont have access to any indexes (except by using the explicit IList.this) you should not call this function without knowing exactly what you do.
Parameters
| Name | Type | Description |
|---|---|---|
i | Int32 | The index of the changed object. |
Peek
Get the smallest object without removing it.
Returns
The smallest object
Count
IsSynchronized
SyncRoot
IList_Item
Contains(
Object)Clear()
CopyTo(
Array, Int32)Clone()
Syncronized(BinaryPriorityQueue)
ReadOnly(BinaryPriorityQueue)