Class OrderedSetRangeComparer<T>
Describes a comparer that allows you to enumerate nodes of the OrderedSet
within a specified range.
Inheritance
System.Object
OrderedSetRangeComparer<T>
Namespace: AlchemyBow.Navigation.Collections
Assembly: AlchemyBow.Navigation.dll
Syntax
public abstract class OrderedSetRangeComparer<T>
where T : class, IComparable<T>
Type Parameters
Name | Description |
---|---|
T | The type of the node value. |
Methods
| Improve this Doc View SourceCalculate(OrderedSetNode<T>)
Triggers the calculations.
Declaration
public void Calculate(OrderedSetNode<T> root)
Parameters
Type | Name | Description |
---|---|---|
OrderedSetNode<T> | root | The root node of the |
CreateMaxBaundary()
Creates the maximum boundary.
Declaration
protected abstract IComparable<T> CreateMaxBaundary()
Returns
Type | Description |
---|---|
System.IComparable<T> | The maximum boundary. |
CreateMinBaundary()
Creates the minimum boundary.
Declaration
protected abstract IComparable<T> CreateMinBaundary()
Returns
Type | Description |
---|---|
System.IComparable<T> | The minimum boundary. |
OnMove(T)
Called for each node in the range.
Declaration
public abstract void OnMove(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | The node. |