@toolcog/util/queue
Toolcog utilities
Classes
FifoQueue<T>
Type Parameters
• T
Implements
Queue
<T
>
Constructors
new FifoQueue()
new FifoQueue<
T
>():FifoQueue
<T
>
Returns
FifoQueue
<T
>
Defined in
Accessors
size
get
size():number
Returns
number
Implementation of
Defined in
Methods
dequeue()
dequeue():
undefined
|T
Returns
undefined
| T
Implementation of
Defined in
enqueue()
enqueue(
value
):void
Parameters
• value: T
Returns
void
Implementation of
Defined in
isEmpty()
isEmpty():
boolean
Returns
boolean
Implementation of
Defined in
peek()
peek():
undefined
|T
Returns
undefined
| T
Implementation of
Defined in
PriorityQueue<T>
Type Parameters
• T
Implements
Queue
<T
>
Constructors
new PriorityQueue()
new PriorityQueue<
T
>():PriorityQueue
<T
>
Returns
Defined in
Accessors
size
get
size():number
Returns
number
Implementation of
Defined in
Methods
dequeue()
dequeue():
undefined
|T
Returns
undefined
| T
Implementation of
Defined in
enqueue()
enqueue(
value
,priority
):void
Parameters
• value: T
• priority: number
= 0
Returns
void
Implementation of
Defined in
isEmpty()
isEmpty():
boolean
Returns
boolean
Implementation of
Defined in
peek()
peek():
undefined
|T
Returns
undefined
| T
Implementation of
Defined in
Interfaces
Queue<T>
Type Parameters
• T
Accessors
size
get
size():number
Returns
number
Defined in
Methods
dequeue()
dequeue():
undefined
|T
Returns
undefined
| T
Defined in
enqueue()
enqueue(
value
,priority
?):void
Parameters
• value: T
• priority?: number
Returns
void
Defined in
isEmpty()
isEmpty():
boolean
Returns
boolean
Defined in
peek()
peek():
undefined
|T
Returns
undefined
| T