Class CircularLinkedList<T>
- Namespace
- AlgorithmsSW.List
- Assembly
- AlgorithmsSW.dll
public sealed class CircularLinkedList<T> : IEnumerable<T>, IEnumerable
Type Parameters
T
- Inheritance
-
CircularLinkedList<T>
- Implements
-
IEnumerable<T>
- Inherited Members
- Extension Methods
Properties
Back
public CircularLinkedList<T>.Node Back { get; }
Property Value
Count
public int Count { get; }
Property Value
First
public CircularLinkedList<T>.Node First { get; }
Property Value
IsEmpty
public bool IsEmpty { get; }
Property Value
IsSingleton
public bool IsSingleton { get; }
Property Value
Nodes
public IEnumerable<CircularLinkedList<T>.Node> Nodes { get; }
Property Value
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.
InsertAfter(Node, T)
public CircularLinkedList<T>.Node InsertAfter(CircularLinkedList<T>.Node node, T item)
Parameters
node
CircularLinkedList<T>.Nodeitem
T
Returns
InsertAtBack(T)
public void InsertAtBack(T item)
Parameters
item
T
InsertAtFront(T)
public CircularLinkedList<T>.Node InsertAtFront(T item)
Parameters
item
T
Returns
RemoveAfter(Node)
public CircularLinkedList<T>.Node RemoveAfter(CircularLinkedList<T>.Node node)
Parameters
node
CircularLinkedList<T>.Node
Returns
RemoveFromFront()
public CircularLinkedList<T>.Node RemoveFromFront()
Returns
RotateLeft()
public void RotateLeft()