A simple singly linked list based queue implementation for arbitrary data. This utility module can be used by anyone, there is nothing specific to ONE.core in it.
- Source:
Methods
(static) createSimpleQueue() → {SimpleQueue}
Creates a queue instance that uses a singly linked list
- Source:
Returns:
Returns an API-object for a simple queue
Type: SimpleQueue
Type Definitions
SimpleQueue
A simple general queue implementation using a singly linked list which accepts any data, as long
as it is a single item. Note that none of the API functions need to be bound (they don't use
this
).
See util/queue.ts
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
enqueue |
function |
|
enqueueN |
function |
|
dequeue |
function |
|
dequeueN |
function |
|
size |
function |
|
isEmpty |
function |
|
clear |
function |
|
- Source: