C5  2.4
The C5 Generic Collection Library for C# and CLI is a comprehensive collection library supporting lists, sets, bags, dictionaries, priority queues, (FIFO) queues, and (LIFO) stacks. C5 runs on .NET 3.5+, Silverlight 5, Windows Phone 8, Xamarin.iOS, Xamarin.Android, and Mono.
C5.ArrayBase< T >.Range Class Reference

A helper class for defining results of interval queries on array based collections. More...

Inheritance diagram for C5.ArrayBase< T >.Range:
C5.DirectedCollectionValueBase< T > C5.IDirectedCollectionValue< T > C5.CollectionValueBase< T > C5.IDirectedCollectionValue< T > C5.ICollectionValue< T > C5.IDirectedEnumerable< T > C5.IShowable C5.IDirectedEnumerable< T > C5.ICollectionValue< T > C5.IShowable C5.ICollectionValue< T > C5.EnumerableBase< T >

Public Member Functions

override T Choose ()
 Choose some item of this collection. More...
 
override SCG.IEnumerator< T > GetEnumerator ()
 Create an enumerator for this range of an array based collection. More...
 
override IDirectedCollectionValue< T > Backwards ()
 Create an array collection range with the same contents as this one, but opposite enumeration sequence. More...
 
- Public Member Functions inherited from C5.DirectedCollectionValueBase< T >
virtual bool FindLast (Func< T, bool > predicate, out T item)
 Check if there exists an item that satisfies a specific predicate in this collection and return the first one in enumeration order. More...
 
- Public Member Functions inherited from C5.CollectionValueBase< T >
virtual void CopyTo (T[] array, int index)
 Copy the items of this collection to part of an array. More...
 
virtual T[] ToArray ()
 Create an array with the items of this collection (in the same order as an enumerator would output them). More...
 
virtual void Apply (Action< T > action)
 Apply an single argument action, T:Action`1 to this enumerable More...
 
virtual bool Exists (Func< T, bool > predicate)
 Check if there exists an item that satisfies a specific predicate in this collection. More...
 
virtual bool Find (Func< T, bool > predicate, out T item)
 Check if there exists an item that satisfies a specific predicate in this collection and return the first one in enumeration order. More...
 
virtual bool All (Func< T, bool > predicate)
 Check if all items in this collection satisfies a specific predicate. More...
 
virtual SCG.IEnumerable< T > Filter (Func< T, bool > predicate)
 Create an enumerable, enumerating the items of this collection that satisfies a certain condition. More...
 
virtual bool Show (System.Text.StringBuilder stringbuilder, ref int rest, IFormatProvider formatProvider)
 
virtual string ToString (string format, IFormatProvider formatProvider)
 
override string ToString ()
 
- Public Member Functions inherited from C5.IShowable
bool Show (StringBuilder stringbuilder, ref int rest, IFormatProvider formatProvider)
 Format More...
 

Properties

override bool IsEmpty [get]
 
override int Count [get]
 
override Speed CountSpeed [get]
 The value is symbolic indicating the type of asymptotic complexity in terms of the size of this collection (worst-case or amortized as relevant). More...
 
override EnumerationDirection Direction [get]
 
- Properties inherited from C5.DirectedCollectionValueBase< T >
virtual EnumerationDirection Direction [get]
 
- Properties inherited from C5.CollectionValueBase< T >
virtual EventTypeEnum ListenableEvents [get]
 
virtual EventTypeEnum ActiveEvents [get]
 A flag bitmap of the events currently subscribed to by this collection. More...
 
virtual CollectionChangedHandler< T > CollectionChanged
 The change event. Will be raised for every change operation on the collection. More...
 
virtual CollectionClearedHandler< T > CollectionCleared
 The clear event. Will be raised for every Clear operation on the collection. More...
 
virtual ItemsAddedHandler< T > ItemsAdded
 The item added event. Will be raised for every individual addition to the collection. More...
 
virtual ItemsRemovedHandler< T > ItemsRemoved
 The item removed event. Will be raised for every individual removal from the collection. More...
 
virtual ItemInsertedHandler< T > ItemInserted
 The item added event. Will be raised for every individual addition to the collection. More...
 
virtual ItemRemovedAtHandler< T > ItemRemovedAt
 The item removed event. Will be raised for every individual removal from the collection. More...
 
abstract bool IsEmpty [get]
 Check if collection is empty. More...
 
abstract int Count [get]
 The number of items in this collection. More...
 
abstract Speed CountSpeed [get]
 The value is symbolic indicating the type of asymptotic complexity in terms of the size of this collection (worst-case or amortized as relevant). More...
 
- Properties inherited from C5.ICollectionValue< T >
EventTypeEnum ListenableEvents [get]
 A flag bitmap of the events subscribable to by this collection. More...
 
EventTypeEnum ActiveEvents [get]
 A flag bitmap of the events currently subscribed to by this collection. More...
 
bool IsEmpty [get]
 
int Count [get]
 
Speed CountSpeed [get]
 The value is symbolic indicating the type of asymptotic complexity in terms of the size of this collection (worst-case or amortized as relevant). More...
 
- Properties inherited from C5.IDirectedEnumerable< T >
EnumerationDirection Direction [get]
 

Additional Inherited Members

- Protected Member Functions inherited from C5.CollectionValueBase< T >
virtual void raiseCollectionChanged ()
 Fire the CollectionChanged event More...
 
virtual void raiseCollectionCleared (bool full, int count)
 Fire the CollectionCleared event More...
 
virtual void raiseCollectionCleared (bool full, int count, int?offset)
 Fire the CollectionCleared event More...
 
virtual void raiseItemsAdded (T item, int count)
 Fire the ItemsAdded event More...
 
virtual void raiseItemsRemoved (T item, int count)
 Fire the ItemsRemoved event More...
 
virtual void raiseItemInserted (T item, int index)
 Fire the ItemInserted event More...
 
virtual void raiseItemRemovedAt (T item, int index)
 Fire the ItemRemovedAt event More...
 
virtual void raiseForSetThis (int index, T value, T item)
 
virtual void raiseForInsert (int i, T item)
 
void raiseForRemove (T item)
 
void raiseForRemove (T item, int count)
 
void raiseForRemoveAt (int index, T item)
 
virtual void raiseForUpdate (T newitem, T olditem)
 
virtual void raiseForUpdate (T newitem, T olditem, int count)
 
virtual void raiseForAdd (T item)
 
virtual void raiseForRemoveAll (ICollectionValue< T > wasRemoved)
 
- Static Protected Member Functions inherited from C5.EnumerableBase< T >
static int countItems (SCG.IEnumerable< T > items)
 Count the number of items in an enumerable by enumeration More...
 
- Events inherited from C5.ICollectionValue< T >
CollectionChangedHandler< T > CollectionChanged
 The change event. Will be raised for every change operation on the collection. More...
 
CollectionClearedHandler< T > CollectionCleared
 The change event. Will be raised for every clear operation on the collection. More...
 
ItemsAddedHandler< T > ItemsAdded
 The item added event. Will be raised for every individual addition to the collection. More...
 
ItemInsertedHandler< T > ItemInserted
 The item inserted event. Will be raised for every individual insertion to the collection. More...
 
ItemsRemovedHandler< T > ItemsRemoved
 The item removed event. Will be raised for every individual removal from the collection. More...
 
ItemRemovedAtHandler< T > ItemRemovedAt
 The item removed at event. Will be raised for every individual removal at from the collection. More...
 

Detailed Description

A helper class for defining results of interval queries on array based collections.

Member Function Documentation

override IDirectedCollectionValue<T> C5.ArrayBase< T >.Range.Backwards ( )
virtual

Create an array collection range with the same contents as this one, but opposite enumeration sequence.

Exceptions
CollectionModifiedExceptionif underlying collection has been modified.
Returns
The mirrored collection.

Implements C5.DirectedCollectionValueBase< T >.

override T C5.ArrayBase< T >.Range.Choose ( )
virtual

Choose some item of this collection.

Exceptions
CollectionModifiedExceptionif underlying collection has been modified.
NoSuchItemExceptionif range is empty.
Returns

Implements C5.CollectionValueBase< T >.

override SCG.IEnumerator<T> C5.ArrayBase< T >.Range.GetEnumerator ( )
virtual

Create an enumerator for this range of an array based collection.

Exceptions
CollectionModifiedExceptionif underlying collection has been modified.
Returns
The enumerator

Implements C5.CollectionValueBase< T >.

Property Documentation

override int C5.ArrayBase< T >.Range.Count
get

Exceptions
CollectionModifiedExceptionif underlying collection has been modified.

The number of items in the range

override Speed C5.ArrayBase< T >.Range.CountSpeed
get

The value is symbolic indicating the type of asymptotic complexity in terms of the size of this collection (worst-case or amortized as relevant).

A characterization of the speed of the

Exceptions
CollectionModifiedExceptionif underlying collection has been modified.

property in this collection.

override EnumerationDirection C5.ArrayBase< T >.Range.Direction
get

Forwards if same, else Backwards

Exceptions
CollectionModifiedExceptionif underlying collection has been modified.

The enumeration direction relative to the original collection.

override bool C5.ArrayBase< T >.Range.IsEmpty
get

Exceptions
CollectionModifiedExceptionif underlying collection has been modified.

True if this collection is empty.


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