IDeque

Description

interface Tinman.Core.Collections.IDeque<T>

Derived from

IVectorConst<T>
ICollector<T>

Extended by

DequeBase abstract

Base interface for classes that represent a double-ended queue of elements.

Public / Methods

Clear


public method Clear → ()

Removes all elements from the queue.

PeekFirst


public method PeekFirst → ()

returns → T

The first element.

Returns the first element in the queue without removing it.

PeekLast


public method PeekLast → ()

returns → T

The last element.

Returns the last element in the queue without removing it.

PopFirst


public method PopFirst → ()

returns → T

The first element.

Returns the first element in the queue and removes it.

PopLast


public method PopLast → ()

returns → T

The last element.

Returns the last element in the queue and removes it.

PushFirst


public method PushFirst → (1)

element in : T

The element.

Prepends the given element to the queue.

PushLast


public method PushLast → (1)

element in : T

The element.

Appends the given element to the queue.