MW UNITY NAMESPACE








































public class <T> : MContainer<T>

MDeque


The implementation of a double-ended Queue; a 'Deque'.


CONSTRUCTOR (T[] Elements)

Summary:

Initialisation of a new MDeque with an Initial Size of T-defaulted Elements.

Params:

Elements:

        Initial Elements.


CONSTRUCTOR (int InitialSize)

Summary:

Initialisation of a new MDeque with an Initial Size of T-defaulted Elements.

Params:

InitialSize:

        Initial capacity of Elements.


CONSTRUCTOR ()

Summary:

Initialisation of a new MDeque with 32 T-defaulted Elements.



public void

AddLead (T Element)

Summary:

Adds an Element to the front of the Queue.

Params:

Element:

        The Element to add.



public void

AddEnd (T Element)

Summary:

Adds an Element to the end of the Queue.

Params:

Element:

        The Element to add.



public T

Lead ()

Summary:

Gets the Element at the front of the Queue.

Returns:

The Element at the front of the Queue.



public T

End ()

Summary:

Gets the Element at the end of the Queue.

Returns:

The Element at the end of the Queue.



public T

PopLead ()

Summary:

Gets and removes the Element at the front of the Queue.

Returns:

The Element that was at the front of the Queue.



public T

PopEnd ()

Summary:

Gets and removes the Element at the end of the Queue.

Returns:

The Element that was at the end of the Queue.



public override T[]

TArray ()

Summary:

Abstract implementation from MContainer.

Returns:

T[].



public T

Item (int I)

Summary:

Square bracket accessor.

Params:

I:

        The index to access T Element.

Returns:

Element at the specified index.