X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FPriorityQueue.html;h=a74d4c91691820031346abc162f59542bcde7840;hb=224d008191f52fa20b93e1ba67919569f8d6e315;hp=eef1b25020c8aa2c05165d63f3275e248f9a998f;hpb=dea42379cfdbcf1c1c9800df7c097eab484ebc07;p=poolifier.git diff --git a/docs/classes/PriorityQueue.html b/docs/classes/PriorityQueue.html index eef1b250..a74d4c91 100644 --- a/docs/classes/PriorityQueue.html +++ b/docs/classes/PriorityQueue.html @@ -1,10 +1,7 @@ -
Internal
Priority queue.
+- Preparing search index...
- The search index is not available
poolifier - v4.0.15Class PriorityQueue<T>
Internal
Priority queue.
Type Parameters
Type of priority queue data.
-Index
Constructors
Properties
Index
Constructors
Properties
Accessors
Constructors
constructor
Constructs a priority queue.
+Constructors
constructor
Constructs a priority queue.
Type Parameters
Parameters
Prioritized bucket size.
Whether to enable priority.
Returns PriorityQueue<T>
PriorityQueue.
-Default Value
-Default Value
-Properties
Private
Readonly
bucketPrivate
headmax Size
The priority queue maximum size.
-Private
tailAccessors
buckets
The number of filled prioritized buckets.
+Default Value
+ +Default Value
+ +Properties
max Size
The priority queue maximum size.
+Accessors
buckets
The number of filled prioritized buckets.
Returns number
The number of filled prioritized buckets.
-enable Priority
Returns boolean
Parameters
Returns void
size
The priority queue size.
+enable Priority
Returns boolean
Parameters
Returns void
size
The priority queue size.
Returns number
The priority queue size.
-Methods
[iterator]
Returns an iterator for the priority queue.
+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.
-Parameters
Optional
bucket: numberThe prioritized bucket to dequeue from.
+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.
+Parameters
Optional
bucket: numberThe prioritized bucket to dequeue from.
Returns undefined | T
The dequeued data or
-undefined
if the priority queue is empty.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.
+Optional
priority: numberPriority of the data. Lower values have higher priority.
Returns number
The new size of the priority queue.
-Settings
Member Visibility
Theme
On This Page
Settings
On This Page
Constructors
Properties
Accessors
Methods