Queue

constructor()

Allocate a new Queue.

This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.


constructor(scope: <Error class: unknown class>)

Allocate a new Queue using the provided AutofreeScope.

The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped.

Parameters

scope

The AutofreeScope to allocate this structure in.


constructor(head: List?, tail: List?, length: <Error class: unknown class>)

Allocate a new Queue.

This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.

Parameters

head

a pointer to the first element of the queue

tail

a pointer to the last element of the queue

length

the number of elements in the queue


constructor(head: List?, tail: List?, length: <Error class: unknown class>, scope: <Error class: unknown class>)

Allocate a new Queue using the provided AutofreeScope.

The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped.

Parameters

head

a pointer to the first element of the queue

tail

a pointer to the last element of the queue

length

the number of elements in the queue

scope

The AutofreeScope to allocate this structure in.


constructor(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)