X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDeque.html;h=2bc899a2cd1672dcab37359dacfb9d3437475072;hb=77e8da5a0633e5a282ddc82f52b354101d112f0f;hp=3d05d8758e33f6dd49f12638ff897daf9e6ae4df;hpb=1ed7fb6c99f2fcb5f319d9c1fa2aefc5434f82e4;p=poolifier.git diff --git a/docs/classes/Deque.html b/docs/classes/Deque.html index 3d05d875..2bc899a2 100644 --- a/docs/classes/Deque.html +++ b/docs/classes/Deque.html @@ -1,307 +1,42 @@ -Deque | poolifier - v3.0.2
-
- -
-
-
-
- -

Class Deque<T>Internal

-
-

Deque. +Deque | poolifier - v3.1.29

Class Deque<T>Internal

Deque. Implemented with a doubly linked list.

-
-
-
-

Type Parameters

-
    -
  • -

    T

    -

    Type of deque data.

    -
    -
-
-

Hierarchy

-
    -
  • Deque
-
-
-
- -
-
-

Constructors

-
-
-

Properties

-
-
-

Methods

-
-
-

Constructors

-
- -
-
-

Properties

-
- -
head?: Node<T>
-
- -
maxSize: number
-

The maximum size of the deque.

-
-
-
- -
size: number
-

The size of the deque.

-
-
-
- -
tail?: Node<T>
-
-

Methods

-
- -
-
- -
-
- -
    - -
  • -

    Clears the deque.

    -
    -

    Returns void

    -
-
- -
-
- -
    - -
  • -

    Peeks at the first data.

    -
    -

    Returns undefined | T

    The first data or undefined if the deque is empty.

    - -
-
- -
    - -
  • -

    Peeks at the last data.

    -
    -

    Returns undefined | T

    The last data or undefined if the deque is empty.

    - -
-
- -
    - -
  • -

    Pops data from the deque.

    -
    -

    Returns undefined | T

    The popped data or undefined if the deque is empty.

    - -
-
- -
    - -
  • -

    Appends data to the deque.

    -
    -
    -

    Parameters

    -
      -
    • -
      data: T
      -

      Data to append.

      -
      -
    -

    Returns number

    The new size of the queue.

    - -
-
- -
    - -
  • -

    Shifts data from the deque.

    -
    -

    Returns undefined | T

    The shifted data or undefined if the deque is empty.

    - -
-
- -
    - -
  • -

    Prepends data to the deque.

    -
    -
    -

    Parameters

    -
      -
    • -
      data: T
      -

      Data to prepend.

      -
      -
    -

    Returns number

    The new size of the queue.

    - -
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +

Type Parameters

  • T

    Type of deque data.

    +

Constructors

Properties

maxSize: number

The maximum size of the deque.

+
size: number

The size of the deque.

+

Methods

  • Peeks at the first data.

    +

    Returns undefined | T

    The first data or undefined if the deque is empty.

    +
  • Peeks at the last data.

    +

    Returns undefined | T

    The last data or undefined if the deque is empty.

    +
  • Pops data from the deque.

    +

    Returns undefined | T

    The popped data or undefined if the deque is empty.

    +
  • Appends data to the deque.

    +

    Parameters

    • data: T

      Data to append.

      +

    Returns number

    The new size of the deque.

    +
  • Shifts data from the deque.

    +

    Returns undefined | T

    The shifted data or undefined if the deque is empty.

    +
  • Prepends data to the deque.

    +

    Parameters

    • data: T

      Data to prepend.

      +

    Returns number

    The new size of the deque.

    +

Generated using TypeDoc

\ No newline at end of file