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.

Peek​First


public method PeekFirst → ()

returns → T

The first element.

Returns the first element in the queue without removing it.

Peeking at the first element of an empty queue will return the default element value.

Peek​Last


public method PeekLast → ()

returns → T

The last element.

Returns the last element in the queue without removing it.

Peeking at the last element of an empty queue will return the default element value.

Pop​First


public method PopFirst → ()

returns → T

The first element.

Returns the first element in the queue and removes it.

Popping the first element of an empty queue is a no-op and will return the default element value.

Pop​Last


public method PopLast → ()

returns → T

The last element.

Returns the last element in the queue and removes it.

Popping the last element of an empty queue is a no-op and will return the default element value.

Push​First


public method PushFirst → (1)

element in : T

The element.

Prepends the given element to the queue.

Push​Last


public method PushLast → (1)

element in : T

The element.

Appends the given element to the queue.