class · System

Queue<T>

public class System.Queue<T> : System.Any

First in, first out: Enqueue at the end, Dequeue from the front (a ring buffer).

Tipo
class
Espacio de nombres
System
Ensamblado
System.Core
Acceso
public
Archivo fuente
List.ant

Parámetros de tipo

NombreRestricciones
Tcualquier tipo

Herencia

Clases base
Any Queue<T>

Constructores

constructor Queue()
#

Propiedades

property Count: i32
#

read-only

property IsEmpty: bool
#

read-only

Métodos

method Enqueue(item: T) -> void
#
method Dequeue() -> T
#
method Peek() -> T
#
method Clear() -> void
#

Miembros privados e internos (4)

field items: T[]
#

private

field count: i32
#

private

method Grow() -> void
#

private

Miembros heredados (5)

Código fuente

Queue<T> en Larva HIR, descompilado a partir de su Larva HIR.

System.Queue.hir
// First in, first out: Enqueue at the end, Dequeue from the front (a ring buffer).
public class System.Queue<T> : System.Any
{
    field items: T[]
    field head: i32
    field count: i32
    method Grow() -> void
    constructor Queue()
    method Enqueue(item: T) -> void
    method Dequeue() -> T
    method Peek() -> T
    method Clear() -> void
    property Count: i32
    property IsEmpty: bool
}
Esc