Preparing search index...
The search index is not available
priorityqueue
priorityqueue
SkewHeap
default
Class default<T>
An implementation of Skew Heap.
Type Parameters
T
Hierarchy
BasePriorityQueue
default
Implements
PriorityQueueInstance
<
T
>
Index
Constructors
constructor
Properties
_kind
_length
comparator
root
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
_length
_length
:
number
= 0
comparator
comparator
:
Comparator
<
T
>
root
root
:
null
|
Node
<
T
>
= null
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
(
val
:
T
)
:
void
Parameters
val:
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
_length
comparator
root
length
clear
is
Empty
merge
pop
push
to
Array
top
from
Generated using
TypeDoc
An implementation of Skew Heap.