Class LinkedListWithPooledClassNodes<T>
- Namespace
- AlgorithmsSW.List
- Assembly
- AlgorithmsSW.dll
public class LinkedListWithPooledClassNodes<T> : IEnumerable<T?>, IEnumerable
Type Parameters
T
- Inheritance
-
LinkedListWithPooledClassNodes<T>
- Implements
-
IEnumerable<T>
- Inherited Members
- Extension Methods
Constructors
LinkedListWithPooledClassNodes(int)
public LinkedListWithPooledClassNodes(int capacity)
Parameters
capacity
int
Properties
Count
public int Count { get; }
Property Value
First
public LinkedListWithPooledClassNodes<T>.Node First { get; }
Property Value
IsEmpty
public bool IsEmpty { get; }
Property Value
IsSingleton
public bool IsSingleton { get; }
Property Value
Last
public LinkedListWithPooledClassNodes<T>.Node Last { get; }
Property Value
Nodes
public IEnumerable<LinkedListWithPooledClassNodes<T>.Node> Nodes { get; }
Property Value
Methods
Clear()
public void Clear()
Concat(LinkedListWithPooledClassNodes<T>)
Concatenates the other list to the end of this list.
public void Concat(LinkedListWithPooledClassNodes<T> other)
Parameters
other
LinkedListWithPooledClassNodes<T>The list to concatenate to this list.
Remarks
The other list is cleared after this operation.
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 LinkedListWithPooledClassNodes<T>.Node InsertAfter(LinkedListWithPooledClassNodes<T>.Node node, T item)
Parameters
node
LinkedListWithPooledClassNodes<T>.Nodeitem
T
Returns
InsertAtBack(T)
public LinkedListWithPooledClassNodes<T>.Node InsertAtBack(T item)
Parameters
item
T
Returns
InsertAtFront(T)
public LinkedListWithPooledClassNodes<T>.Node InsertAtFront(T item)
Parameters
item
T
Returns
RemoveAfter(Node)
Removes the node after the specified node.
public void RemoveAfter(LinkedListWithPooledClassNodes<T>.Node node)
Parameters
node
LinkedListWithPooledClassNodes<T>.NodeThe node whose successor is to be removed.
Exceptions
- ArgumentNullException
Thrown when the input node is null.
- InvalidOperationException
Thrown when the input node does not have a successor to remove.
RemoveFromFront()
public void RemoveFromFront()
Reverse()
public void Reverse()
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.