X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FDeque.html;h=43f63e5b57f6c29fcdbd6c44afbc42e1b0f3fff4;hb=896624ae5d3cb6861b202a4c3b1d4c42368868c5;hp=fb015f84b85c3f459728ec2fca04595be416c5ff;hpb=71d327d5587f0ce2b746ba33ec0cfbb3a0dc5d1b;p=poolifier.git diff --git a/docs/classes/Deque.html b/docs/classes/Deque.html index fb015f84..43f63e5b 100644 --- a/docs/classes/Deque.html +++ b/docs/classes/Deque.html @@ -1,58 +1,12 @@ -
Generated using TypeDoc
Deque. +
- Preparing search index...
- The search index is not available
poolifier - v3.0.9Class Deque<T>
Internal
Deque. Implemented with a doubly linked list.
-Type Parameters
---
-
-
T
-Type of deque data.
-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 data.
-Returns undefined | T
The first data or
- -undefined
if the deque is empty.peek Last
--- peek
Last(): undefined | T
--
-
-
Peeks at the last data.
-Returns undefined | T
The last data or
- -undefined
if the deque is empty.pop
--- pop(): undefined | T
--
-
-
Pops data from the deque.
-Returns undefined | T
The popped data or
- -undefined
if the deque is empty.push
--- push(data): number
--
-
-
-
-
Appends data to the deque.
-Parameters
---
-
-
data: T
-Data to append.
-Returns number
The new size of the queue.
- -shift
--- shift(): undefined | T
--
-
-
Shifts data from the deque.
-Returns undefined | T
The shifted data or
- -undefined
if the deque is empty.unshift
--- unshift(data): number
--
-
-
-
-
Prepends data to the deque.
-Parameters
---
-
-
data: T
-Data 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