Preparing search index...
The search index is not available
priorityqueue
priorityqueue
BinaryHeap
default
Class default<T>
An implementation of Binary Heap.
Type Parameters
T
Hierarchy
BasePriorityQueue
default
Implements
PriorityQueueInstance
<
T
>
Index
Constructors
constructor
Properties
_kind
collection
comparator
Accessors
length
Methods
clear
is
Empty
merge
pop
push
to
Array
top
from
Constructors
constructor
new default
<
T
>
(
__namedParameters
?:
PriorityQueueOption
<
T
>
)
:
default
<
T
>
Type Parameters
T
Parameters
__namedParameters:
PriorityQueueOption
<
T
>
= {}
Returns
default
<
T
>
Properties
_kind
_kind
:
string
collection
collection
:
T
[]
= []
comparator
comparator
:
Comparator
<
T
>
Accessors
length
get
length
(
)
:
number
Returns
number
Methods
clear
clear
(
)
:
void
Returns
void
is
Empty
is
Empty
(
)
:
boolean
Returns
boolean
merge
merge
<
Instance
>
(
other
:
Instance
)
:
void
Type Parameters
Instance
extends
PriorityQueueInstance
<
T
>
Parameters
other:
Instance
Returns
void
pop
pop
(
)
:
T
Returns
T
push
push
(
value
:
T
)
:
void
Parameters
value:
T
Returns
void
to
Array
to
Array
(
)
:
T
[]
Returns
T
[]
top
top
(
)
:
T
Returns
T
Static
from
from
<
U
>
(
array
:
U
[]
, option
?:
PriorityQueueOption
<
U
>
)
:
default
<
U
>
Type Parameters
U
Parameters
array:
U
[]
option:
PriorityQueueOption
<
U
>
= {}
Returns
default
<
U
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
priorityqueue
Binary
Heap
Pairing
Heap
Skew
Heap
index
default
constructor
_kind
collection
comparator
length
clear
is
Empty
merge
pop
push
to
Array
top
from
Generated using
TypeDoc
An implementation of Binary Heap.