X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDeque.html;h=4486260a8f358ee46707cd4ae3e0a627f20f284b;hb=6349b7551b1060472ed8c97dd01ef0c827d62278;hp=61cdba861d8bc596834754900e965127fb6c4b8f;hpb=b7e141c40bccfd7a4ec0ff98b7829f7d296f048b;p=poolifier.git diff --git a/docs/classes/Deque.html b/docs/classes/Deque.html index 61cdba86..4486260a 100644 --- a/docs/classes/Deque.html +++ b/docs/classes/Deque.html @@ -1,58 +1,12 @@ -Deque | poolifier - v2.6.41
-
- -
-
-
-
- -

Class Deque<T>Internal

-
-

Deque. +Deque | poolifier - v3.0.7

Class Deque<T>Internal

Deque. Implemented with a doubly linked list.

-
-
-
-

Type Parameters

-
    -
  • -

    T

    -

    Type of deque data.

    -
    -
-
-

Hierarchy

-
    -
  • Deque
-
-
-
- -
-
-

Constructors

-
-
-

Properties

-

Type Parameters

  • T

    Type of deque data.

    +

Hierarchy

  • Deque

Constructors

Properties

-
-

Methods

-

Methods

[iterator] backward clear incrementSize @@ -62,286 +16,27 @@ Implemented with a doubly linked list.

push shift unshift -
-
-

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 +

Constructors

Properties

head?: Node<T>
maxSize: number

The maximum size of the deque.

+
size: number

The size of the deque.

+
tail?: Node<T>

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