Skip to main content

MLAPI.Collections.FixedQueue-1

Queue with a fixed size

Inheritance#

System.Dynamic.ExpandoObject

System.Dynamic.ExpandoObject

Inherited Members#

Object.Equals(Object)

Object.Equals(Object, Object)

Object.GetHashCode()

Object.GetType()

Object.MemberwiseClone()

Object.ReferenceEquals(Object, Object)

Object.ToString()

Namespace: System.Dynamic.ExpandoObject#
Assembly: MLAPI.dll#
Syntax#
public sealed class FixedQueue<T>
Type Parameters#
NameDescription
TThe type of the queue

Constructors#

FixedQueue(Int32)#

Creates a new FixedQueue with a given size

Declaration#

public FixedQueue(int maxSize)

Parameters#

TypeNameDescription
System.Int32maxSizeThe size of the queue

Properties#

Count#

The amount of enqueued objects

Declaration#

public int Count { get; }

Property Value#

TypeDescription
System.Int32

Item[Int32]#

Gets the element at a given virtual index

Declaration#

public T this[int index] { get; }

Parameters#

TypeNameDescription
System.Int32indexThe virtual index to get the item from

Property Value#

TypeDescription
TThe element at the virtual index

Methods#

Dequeue()#

Dequeues an object

Declaration#

public T Dequeue()

Returns#

TypeDescription
T

ElementAt(Int32)#

Gets the element at a given virtual index

Declaration#

public T ElementAt(int index)

Parameters#

TypeNameDescription
System.Int32indexThe virtual index to get the item from

Returns#

TypeDescription
TThe element at the virtual index

Enqueue(T)#

Enqueues an object

Declaration#

public bool Enqueue(T t)

Parameters#

TypeNameDescription
Tt

Returns#

TypeDescription
System.Boolean