X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FFixedPriorityQueue.html;h=436a8013876e5923007e87b5a0d1babae1a04f58;hb=8b7aa4204c27efd1dc699f7baea65b5262bd26b3;hp=bad5abd99a8659ed898c4a0f8ad870d1c38d9481;hpb=6a677734f19a229fe6a863acd0e6aa0b0d762d6f;p=poolifier.git diff --git a/docs/classes/FixedPriorityQueue.html b/docs/classes/FixedPriorityQueue.html index bad5abd9..436a8013 100644 --- a/docs/classes/FixedPriorityQueue.html +++ b/docs/classes/FixedPriorityQueue.html @@ -1,48 +1,45 @@ -FixedPriorityQueue | poolifier - v4.0.14

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

  • Constructs a fixed priority queue.

    +

Constructors

  • Constructs a fixed priority queue.

    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

    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

  • Returns an iterator for the fixed priority queue.

    +
    defaultQueueSize
    +
    + +
    false
    +
    + +

Properties

capacity: number

The fixed priority queue capacity.

+
enablePriority: boolean

Whether to enable priority.

+
size: number

The fixed priority queue size.

+

Methods

  • 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.

      +
    • Optionalpriority: 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