Table of Contents

Class CircularLinkedList<T>

Namespace
AlgorithmsSW.List
Assembly
AlgorithmsSW.dll
public sealed class CircularLinkedList<T> : IEnumerable<T>, IEnumerable

Type Parameters

T
Inheritance
CircularLinkedList<T>
Implements
Inherited Members
Extension Methods

Properties

Back

public CircularLinkedList<T>.Node Back { get; }

Property Value

CircularLinkedList<T>.Node

Count

public int Count { get; }

Property Value

int

First

public CircularLinkedList<T>.Node First { get; }

Property Value

CircularLinkedList<T>.Node

IsEmpty

public bool IsEmpty { get; }

Property Value

bool

IsSingleton

public bool IsSingleton { get; }

Property Value

bool

Nodes

public IEnumerable<CircularLinkedList<T>.Node> Nodes { get; }

Property Value

IEnumerable<CircularLinkedList<T>.Node>

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>.Node
item T

Returns

CircularLinkedList<T>.Node

InsertAtBack(T)

public void InsertAtBack(T item)

Parameters

item T

InsertAtFront(T)

public CircularLinkedList<T>.Node InsertAtFront(T item)

Parameters

item T

Returns

CircularLinkedList<T>.Node

RemoveAfter(Node)

public CircularLinkedList<T>.Node RemoveAfter(CircularLinkedList<T>.Node node)

Parameters

node CircularLinkedList<T>.Node

Returns

CircularLinkedList<T>.Node

RemoveFromFront()

public CircularLinkedList<T>.Node RemoveFromFront()

Returns

CircularLinkedList<T>.Node

RotateLeft()

public void RotateLeft()