Class DoublyLinkedListMethodsBase<TElement>

Namespace
Platform.Collections.Methods.Lists
Assembly
Platform.Collections.Methods.dll

Provides operations on the links of a doubly linked list stored by a derived class.

public abstract class DoublyLinkedListMethodsBase<TElement> where TElement : IUnsignedNumber<TElement>, IComparisonOperators<TElement, TElement, bool>

Type Parameters

TElement
Inheritance
DoublyLinkedListMethodsBase<TElement>
Derived
Inherited Members

Remarks

Based on doubly linked list implementation.

Methods

GetNext(TElement)

Gets the next using the specified element.

protected abstract TElement GetNext(TElement element)

Parameters

element TElement

The element.

Returns

TElement

The element

GetPrevious(TElement)

Gets the previous using the specified element.

protected abstract TElement GetPrevious(TElement element)

Parameters

element TElement

The element.

Returns

TElement

The element

SetNext(TElement, TElement)

Sets the next using the specified element.

protected abstract void SetNext(TElement element, TElement next)

Parameters

element TElement

The element.

next TElement

The next.

SetPrevious(TElement, TElement)

Sets the previous using the specified element.

protected abstract void SetPrevious(TElement element, TElement previous)

Parameters

element TElement

The element.

previous TElement

The previous.