delphirtl
Version:
RTL functions from Delphi
94 lines (47 loc) • 1.4 kB
Markdown
[**delphirtl**](../README.md) • **Docs**
***
[delphirtl](../globals.md) / Queue
# Class: Queue\<T\>
A first in, first out class
## Type Parameters
• **T**
## Constructors
### new Queue()
> **new Queue**\<`T`\>(): [`Queue`](Queue.md)\<`T`\>
#### Returns
[`Queue`](Queue.md)\<`T`\>
## Accessors
### length
#### Get Signature
> **get** **length**(): `number`
The number of values in the store
##### Returns
`number`
#### Defined in
[src/collections.ts:42](https://github.com/chuacw/delphirtl/blob/b2d86277a5251f0037cf01044224c3e29dc4c6be/src/collections.ts#L42)
## Methods
### next()
> **next**(): `undefined` \| `T`
#### Returns
`undefined` \| `T`
The first value in the store
#### Defined in
[src/collections.ts:30](https://github.com/chuacw/delphirtl/blob/b2d86277a5251f0037cf01044224c3e29dc4c6be/src/collections.ts#L30)
***
### pop()
> **pop**(): `undefined` \| `T`
#### Returns
`undefined` \| `T`
The first value in the store
#### Defined in
[src/collections.ts:22](https://github.com/chuacw/delphirtl/blob/b2d86277a5251f0037cf01044224c3e29dc4c6be/src/collections.ts#L22)
***
### push()
> **push**(`val`): `void`
#### Parameters
• **val**: `T`
Puts the given value into the class
#### Returns
`void`
#### Defined in
[src/collections.ts:14](https://github.com/chuacw/delphirtl/blob/b2d86277a5251f0037cf01044224c3e29dc4c6be/src/collections.ts#L14)