X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDeque.html;h=c2a08c756ab39c3344476a2e16df3dc56d56b3c0;hb=a99f06d1fff8949584cd630bfaa3fa2e3cc3897e;hp=580b8c4b41a5098fc45924abad0af90c41192941;hpb=cf4c4b77d31b88b45c9f876f6fab553e66000f4d;p=poolifier.git diff --git a/docs/classes/Deque.html b/docs/classes/Deque.html index 580b8c4b..c2a08c75 100644 --- a/docs/classes/Deque.html +++ b/docs/classes/Deque.html @@ -1,7 +1,7 @@ -Deque | poolifier - v3.1.22

Class Deque<T>Internal

Deque. +Deque | poolifier - v3.1.27

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

maxSize: number

The maximum size of the deque.

-
size: number

The size of the deque.

-

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

    -

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file