Eamon CS  3.1.0
Eamon.ThirdParty.ISortedCollection< T > Interface Template Reference

Represents a generic interface of an ordered collection. More...

Inheritance diagram for Eamon.ThirdParty.ISortedCollection< T >:
Eamon.ThirdParty.BTree< T >

Public Member Functions

bool TryGetValue (T equalValue, out T actualValue)
 Searches the collection for a given value and returns the equal value it finds, if any. More...
 
IEnumerable< T > WhereGreaterOrEqual (T value)
 Get all items equal to or greater than the specified value, starting with the lowest index and moving forwards. More...
 
IEnumerable< T > WhereLessOrEqualBackwards (T value)
 Get all items less than or equal to the specified value, starting with the highest index and moving backwards. More...
 
int FirstIndexWhereGreaterThan (T value)
 Gets the index of the first item greater than the specified value. /// More...
 
int LastIndexWhereLessThan (T value)
 Gets the index of the last item less than the specified key. More...
 
At (int index)
 Gets the item at the specified index. More...
 
void RemoveAt (int index)
 Removes the item at the specified index. More...
 
IEnumerable< T > ForwardFromIndex (int index)
 Get all items starting at the index, and moving forward. More...
 
IEnumerable< T > BackwardFromIndex (int index)
 Get all items starting at the index, and moving backward. More...
 

Properties

IComparer< T > Comparer [get]
 Gets the comparer used to order items in the collection. More...
 
bool AllowDuplicates [get]
 Gets indication of whether the collection allows duplicate values. More...
 

Detailed Description

Represents a generic interface of an ordered collection.

Template Parameters
TThe type of elements in the collection.

Member Function Documentation

◆ At()

T Eamon.ThirdParty.ISortedCollection< T >.At ( int  index)

Gets the item at the specified index.

Implemented in Eamon.ThirdParty.BTree< T >.

◆ BackwardFromIndex()

IEnumerable<T> Eamon.ThirdParty.ISortedCollection< T >.BackwardFromIndex ( int  index)

Get all items starting at the index, and moving backward.

Implemented in Eamon.ThirdParty.BTree< T >.

◆ FirstIndexWhereGreaterThan()

int Eamon.ThirdParty.ISortedCollection< T >.FirstIndexWhereGreaterThan ( value)

Gets the index of the first item greater than the specified value. ///

Implemented in Eamon.ThirdParty.BTree< T >.

◆ ForwardFromIndex()

IEnumerable<T> Eamon.ThirdParty.ISortedCollection< T >.ForwardFromIndex ( int  index)

Get all items starting at the index, and moving forward.

Implemented in Eamon.ThirdParty.BTree< T >.

◆ LastIndexWhereLessThan()

int Eamon.ThirdParty.ISortedCollection< T >.LastIndexWhereLessThan ( value)

Gets the index of the last item less than the specified key.

Implemented in Eamon.ThirdParty.BTree< T >.

◆ RemoveAt()

void Eamon.ThirdParty.ISortedCollection< T >.RemoveAt ( int  index)

Removes the item at the specified index.

Implemented in Eamon.ThirdParty.BTree< T >.

◆ TryGetValue()

bool Eamon.ThirdParty.ISortedCollection< T >.TryGetValue ( equalValue,
out T  actualValue 
)

Searches the collection for a given value and returns the equal value it finds, if any.

Implemented in Eamon.ThirdParty.BTree< T >.

◆ WhereGreaterOrEqual()

IEnumerable<T> Eamon.ThirdParty.ISortedCollection< T >.WhereGreaterOrEqual ( value)

Get all items equal to or greater than the specified value, starting with the lowest index and moving forwards.

Implemented in Eamon.ThirdParty.BTree< T >.

◆ WhereLessOrEqualBackwards()

IEnumerable<T> Eamon.ThirdParty.ISortedCollection< T >.WhereLessOrEqualBackwards ( value)

Get all items less than or equal to the specified value, starting with the highest index and moving backwards.

Implemented in Eamon.ThirdParty.BTree< T >.

Property Documentation

◆ AllowDuplicates

bool Eamon.ThirdParty.ISortedCollection< T >.AllowDuplicates
get

Gets indication of whether the collection allows duplicate values.

◆ Comparer

IComparer<T> Eamon.ThirdParty.ISortedCollection< T >.Comparer
get

Gets the comparer used to order items in the collection.


The documentation for this interface was generated from the following file: