X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FDeque.html;h=20be06a5b76a76006e5baa0042c223a86fb56fe5;hb=61daa7116c6cd19b7e120f857a0d0427b83b7408;hp=ea2b6864d4dedd0e92ba114c54bd10d184500d18;hpb=743917b8a6544156a5b966854a3e3747db19508d;p=poolifier.git diff --git a/docs/classes/Deque.html b/docs/classes/Deque.html index ea2b6864..20be06a5 100644 --- a/docs/classes/Deque.html +++ b/docs/classes/Deque.html @@ -1,7 +1,7 @@ -Deque | poolifier - v3.1.15

Class Deque<T>Internal

Deque. +Deque | poolifier - v3.1.20

Class Deque<T>Internal

Deque. Implemented with a doubly linked list.

Type Parameters

  • T

    Type of deque data.

    -

Constructors

Constructors

Properties

head? maxSize size @@ -16,27 +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

  • Returns an iterator for the deque.

    +

Constructors

Properties

maxSize: number

The maximum size of the deque.

+
size: number

The size of the deque.

+

Methods

  • Returns an backward iterator for the deque.

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

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

Returns number

The new size of the deque.

+

Generated using TypeDoc

\ No newline at end of file