nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.Runtime / BinaryPriorityQueue

BinaryPriorityQueue

Full name Microsoft.VisualBasic.ComponentModel.Collection.BinaryPriorityQueue Assembly Microsoft.VisualBasic.Runtime Members 14

01 Syntax

Microsoft.VisualBasic.ComponentModel.Collection.BinaryPriorityQueue

02 Methods

NameOverloadsSummary
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

NameOverloadsSummary
Count 1
IsSynchronized 1
SyncRoot 1
IList_Item 1

04 Members

method Push #
Push(Object)

Push an object onto the PQ

Parameters
NameTypeDescription
OObject

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.

method Pop #
Pop

Get the smallest object and remove it.

Returns

The smallest object

method Update #
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
NameTypeDescription
iInt32

The index of the changed object.

method Peek #
Peek

Get the smallest object without removing it.

Returns

The smallest object

property Count #
Count
property IsSynchronized #
IsSynchronized
property SyncRoot #
SyncRoot
property IList_Item #
IList_Item
method Contains #
Contains(Object)
method Clear #
Clear()
method CopyTo #
CopyTo(Array, Int32)
method Clone #
Clone()
method Syncronized #
Syncronized(BinaryPriorityQueue)
method ReadOnly #