X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FFixedPriorityQueue.html;h=fa6e3ef25c4b7ae080312c93c22c9bd571cbfc54;hb=31a42de7d691911759e12a673e5a2153f5558ed8;hp=12964b7d08ed41310ac2bd742855058c8af63623;hpb=fcb83cac5406186d9646362d0f3f97db339012d9;p=poolifier.git diff --git a/docs/classes/FixedPriorityQueue.html b/docs/classes/FixedPriorityQueue.html index 12964b7d..fa6e3ef2 100644 --- a/docs/classes/FixedPriorityQueue.html +++ b/docs/classes/FixedPriorityQueue.html @@ -1,6 +1,6 @@ -FixedPriorityQueue | poolifier - v4.0.13

Class FixedPriorityQueue<T>Internal

Fixed priority queue.

+FixedPriorityQueue | poolifier - v4.0.15

Class FixedPriorityQueue<T>Internal

Fixed priority queue.

Type Parameters

  • T

    Type of fixed priority queue data.

    -

Hierarchy (view full)

Constructors

Hierarchy (view full)

Constructors

Properties

capacity enablePriority nodeArray @@ -18,31 +18,31 @@

Type Parameters

  • T

Parameters

  • size: number = defaultQueueSize

    Fixed priority queue size.

  • enablePriority: boolean = false

    Whether to enable priority.

Returns FixedPriorityQueue<T>

FixedPriorityQueue.

-

Default Value

defaultQueueSize
+

Default Value

defaultQueueSize
 
-

Default Value

false
+

Default Value

false
 
-

Properties

capacity: number

The fixed priority queue capacity.

-
enablePriority: boolean

Whether to enable priority.

-
size: number

The fixed priority queue size.

-
start: number

Methods

Properties

capacity: number

The fixed priority queue capacity.

+
enablePriority: boolean

Whether to enable priority.

+
size: number

The fixed priority queue size.

+
start: number

Methods

  • Dequeue data from the fixed priority queue.

    +

Returns void

  • Dequeue data from the fixed priority queue.

    Returns undefined | T

    The dequeued data or undefined if the priority queue is empty.

    -
  • Checks if the fixed priority queue is empty.

    Returns boolean

    true if the fixed priority queue is empty, false otherwise.

    -
  • Enqueue data into the fixed priority queue.

    Parameters

    • data: T

      Data to enqueue.

    • Optional priority: number

      Priority of the data. Lower values have higher priority.

    Returns number

    The new size of the priority queue.

    Throws

    If the fixed priority queue is full.

    -
  • Checks if the fixed priority queue is full.

    Returns boolean

    true if the fixed priority queue is full, false otherwise.

    -
  • Gets data from the fixed priority queue.

    Parameters

    • index: number

      The index of the data to get.

    Returns undefined | T

    The data at the index or undefined if the fixed priority queue is empty or the index is out of bounds.

    -
\ No newline at end of file +
\ No newline at end of file