X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FPriorityQueue.html;h=ec17f3586f41a6649b27b0a49e52afe54cf0b095;hb=f48170aa0c8d2c5555b973ae2e040d04435ace47;hp=707904d96d1e5274b4ecb4d1fe3e13bd63fdf6f9;hpb=f30cddb8f07ac919d75140469faab6e0883709da;p=poolifier.git diff --git a/docs/classes/PriorityQueue.html b/docs/classes/PriorityQueue.html index 707904d9..ec17f358 100644 --- a/docs/classes/PriorityQueue.html +++ b/docs/classes/PriorityQueue.html @@ -1,43 +1,46 @@ -
Internal
Priority queue.
+- Preparing search index...
- The search index is not available
poolifier - v4.0.10Class PriorityQueue<T>
Internal
Priority queue.
Type Parameters
Type of priority queue data.
-Index
Constructors
Properties
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Constructs a priority queue.
-Type Parameters
Parameters
Prioritized bucket size.
+Constructors
constructor
Constructs a priority queue.
+Type Parameters
Parameters
Prioritized bucket size.
Returns PriorityQueue<T>
Default Value
-Properties
Private
Readonly
kPrioritized bucket size.
-max Size
The maximum size of the priority queue.
-Private
nodesize
The size of the priority queue.
-Accessors
buckets
The number of filled prioritized buckets.
-Returns number
Methods
[iterator]
Returns an iterator for the priority queue.
+Properties
Private
Readonly
bucketPrioritized bucket size.
+max Size
The maximum size of the priority queue.
+Private
nodesize
The size of the priority queue.
+Accessors
buckets
The number of filled prioritized buckets.
+Returns number
Methods
[iterator]
Returns an iterator for the priority queue.
Returns Iterator<T, any, undefined>
An iterator for the priority queue.
See
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols
-clear
Clears the priority queue.
-Returns void
dequeue
Dequeue data from the priority queue.
+clear
Clears the priority queue.
+Returns void
Private
decrementDecrements the size of the priority queue.
+Returns number
The new size of the priority queue.
+dequeue
Dequeue data from the priority queue.
Parameters
The prioritized bucket to dequeue from.
Returns undefined | T
The dequeued data or
undefined
if the priority queue is empty.Default Value
-enqueue
Enqueue data into the priority queue.
+enqueue
Enqueue data into the priority queue.
Parameters
Data to enqueue.
Optional
priority: numberPriority of the data. Lower values have higher priority.
Returns number
The new size of the priority queue.
-Private
incrementIncrements the size of the priority queue.
+Private
incrementIncrements the size of the priority queue.
Returns number
The new size of the priority queue.
-peek First
Peeks at the first data.
+peek First
Peeks at the first data.
Returns undefined | T
The first data or
-undefined
if the priority queue is empty.peek Last
Peeks at the last data.
+peek Last
Peeks at the last data.
Returns undefined | T
The last data or
-undefined
if the priority queue is empty.Settings
Member Visibility
Theme
On This Page
Settings
Member Visibility
Theme
On This Page