X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FDeque.html;h=aa982fe2e4f73af16964870d44f806bf90ff5884;hb=405b39c2835f645e2193dc30c3d190e3dcf3bc3e;hp=b0c57010e5f00c2ca5e59424699d4bf6f51c9ea1;hpb=0fa1d6f0433baf6ff3f67fefdbdf610612a4f3e9;p=poolifier.git diff --git a/docs/classes/Deque.html b/docs/classes/Deque.html index b0c57010..aa982fe2 100644 --- a/docs/classes/Deque.html +++ b/docs/classes/Deque.html @@ -1,58 +1,12 @@ -
Private
Optional
headThe maximum size of the deque.
+The size of the deque.
+Private
Optional
tailPrivate
incrementAppends data to the deque.
+Data to append.
+The new size of the deque.
+Prepends data to the deque.
+Data to prepend.
+The new size of the deque.
+Generated using TypeDoc
Deque. +
- Preparing search index...
- The search index is not available
poolifier - v3.1.21Class Deque<T>
Internal
Deque. Implemented with a doubly linked list.
-Type Parameters
---
-
-
T
-Type of deque values.
-Hierarchy
--- Deque
-
-Index
Constructors
-Properties
-Type Parameters
T
Type of deque data.
+Index
Constructors
Properties
Methods
-Methods
Constructors
-constructor
--- new
Deque<T>(): Deque<T>
--
-
-
-
Type Parameters
---
-
T
Returns Deque<T>
Properties
-
-Private
Optional
headmax Size
-The maximum size of the deque.
-size
-The size of the deque.
-
-Private
Optional
tailMethods
-[iterator]
--- [iterator](): Iterator<T, any, undefined>
--
-
-
-
Returns an iterator for the deque.
-Returns Iterator<T, any, undefined>
An iterator for the deque.
- -See
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols
-backward
--- backward(): Iterable<T>
--
-
-
-
Returns an backward iterator for the deque.
-Returns Iterable<T>
An backward iterator for the deque.
- -See
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols
-clear
--- clear(): void
--
-
-
Clears the deque.
-Returns void
- Size
-Private
increment-- increment
Size(): number
--
-
Returns number
peek First
--- peek
First(): undefined | T
--
-
-
Peeks at the first value.
-Returns undefined | T
The first value or
- -undefined
if the deque is empty.peek Last
--- peek
Last(): undefined | T
--
-
-
Peeks at the last value.
-Returns undefined | T
The last value or
- -undefined
if the deque is empty.pop
--- pop(): undefined | T
--
-
-
Pops a value from the deque.
-Returns undefined | T
The popped value or
- -undefined
if the deque is empty.push
--- push(value): number
--
-
-
-
-
Appends a value to the deque.
-Parameters
---
-
-
value: T
-Value to append.
-Returns number
The new size of the queue.
- -shift
--- shift(): undefined | T
--
-
-
Shifts a value from the deque.
-Returns undefined | T
The shifted value or
- -undefined
if the deque is empty.unshift
--- unshift(value): number
--
-
-
-
-
Prepends a value to the deque.
-Parameters
---
-
-
value: T
-Value to prepend.
-Returns number
The new size of the queue.
- --
-Settings
Member Visibility
Theme
-
-On This Page
-- constructor
-- head
-- max
Size
-- size
-- tail
-- [iterator]
-- backward
-- clear
-- increment
Size
-- peek
First
-- peek
Last
-- pop
-- push
-- shift
-- unshift
Generated using TypeDoc