Show / Hide Table of Contents

Interface IQueue<T>

Implements First-In-First-Out queue data structure.

Inherited Members
IDataStructure<T>.ToArray()
ISteppable<T>.StepperBreak<TStep>(TStep)
DataStructure.ICountable.Count
DataStructure.IClearable.Clear()
Namespace: Towel.DataStructures
Assembly: Towel.dll
Syntax
public interface IQueue<T> : IDataStructure<T>, ISteppable<T>, System.Collections.Generic.IEnumerable<T>, DataStructure.ICountable, DataStructure.IClearable
Type Parameters
Name Description
T

The generic type within the structure.

Properties

| Improve this Doc View Source

Newest

The current newest element in the queue.

Declaration
T Newest { get; }
Property Value
Type Description
T
| Improve this Doc View Source

Oldest

The current oldest element in the queue.

Declaration
T Oldest { get; }
Property Value
Type Description
T

Methods

| Improve this Doc View Source

Dequeue()

Removes the oldest item in the queue.

Declaration
T Dequeue()
Returns
Type Description
T

The next item in the queue.

| Improve this Doc View Source

Enqueue(T)

Adds an item to the back of the queue.

Declaration
void Enqueue(T enqueue)
Parameters
Type Name Description
T enqueue

The item to add to the queue.

| Improve this Doc View Source

Peek()

Gets the next item in the queue without removing it.

Declaration
T Peek()
Returns
Type Description
T

The next item in the queue.

Extension Methods

Steppable.Stepper<T>(ISteppable<T>, Action<T>)
Steppable.Stepper<T, TStep>(ISteppable<T>, TStep)
Steppable.StepperBreak<T>(ISteppable<T>, Func<T, StepStatus>)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX