X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDeque.html;h=cd497d11076033275f9fb71d5d993b7a6fb90ec4;hb=f8b3d84c1c95773a1e18d2c025d89d73c4f2ab15;hp=8f9c3a9ecefc86855fe3707553f7cba37cb3c1b0;hpb=a8121a374142573fd761d5dd112d5f91ed1b618f;p=poolifier.git diff --git a/docs/classes/Deque.html b/docs/classes/Deque.html index 8f9c3a9e..cd497d11 100644 --- a/docs/classes/Deque.html +++ b/docs/classes/Deque.html @@ -1,7 +1,7 @@ -Deque | poolifier - v3.1.6

Class Deque<T>Internal

Deque. +Deque | poolifier - v3.1.11

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

head?: Node<T>
maxSize: number

The maximum size of the deque.

+
size: number

The size of the deque.

+
tail?: Node<T>

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.

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

Generated using TypeDoc

\ No newline at end of file