Class DequeWithArray<T>
- Namespace
- AlgorithmsSW.Deque
- Assembly
- AlgorithmsSW.dll
public class DequeWithArray<T> : IDeque<T>, IEnumerable<T>, IEnumerable
Type Parameters
T
- Inheritance
-
DequeWithArray<T>
- Implements
-
IDeque<T>IEnumerable<T>
- Inherited Members
- Extension Methods
Constructors
DequeWithArray()
public DequeWithArray()
Properties
Count
Gets the number of elements in the deque.
public int Count { get; }
Property Value
PeekLeft
public T PeekLeft { get; }
Property Value
- T
PeekRight
public T PeekRight { get; }
Property Value
- T
Methods
Clear()
public void Clear()
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<T> GetEnumerator()
Returns
- IEnumerator<T>
An enumerator that can be used to iterate through the collection.
PopLeft()
public T PopLeft()
Returns
- T
PopRight()
public T PopRight()
Returns
- T
PushLeft(T)
public void PushLeft(T item)
Parameters
item
T
PushRight(T)
public void PushRight(T item)
Parameters
item
T