Enhanced C#
Loyc library documentation
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
List of all members
Loyc.Collections.IAutoSizeArray< T > Interface Template Reference

An auto-sizing array is a list structure that allows you to modify the element at any index, including indices that don't yet exist; the collection automatically adds missing indices. More...


Source file:
Inheritance diagram for Loyc.Collections.IAutoSizeArray< T >:
Loyc.Collections.IArray< T > Loyc.Collections.IOptimize Loyc.Collections.IListSource< out T > Loyc.Collections.IArraySink< in T > Loyc.Collections.IIndexed< in K, out V > Loyc.Collections.ISource< out T > Loyc.Collections.ITryGet< in K, out V > Loyc.Collections.IIndexed< in K, out V > Loyc.Collections.ICount Loyc.Collections.IIsEmpty

Remarks

An auto-sizing array is a list structure that allows you to modify the element at any index, including indices that don't yet exist; the collection automatically adds missing indices.

Template Parameters
TData type of each element.

This interface begins counting elements at index zero. The INegAutoSizeArray{T} interface supports negative indexes.

Although it is legal to set this[i] for any i >= 0 (as long as there is enough memory available for required array), this[i] may still throw ArgumentOutOfRangeException when the index is not yet valid. However, implementations can choose not to throw an exception and return default(T) instead.

Additional Inherited Members

- Properties inherited from Loyc.Collections.IArray< T >
new T this[int index] [get, set]
 Gets or sets an element of the array-like collection. More...
 
- Properties inherited from Loyc.Collections.ISource< out T >
new int Count [get]
 Gets the number of items in the collection. More...
 
- Properties inherited from Loyc.Collections.ICount
int Count [get]
 Gets the number of items in the collection. More...
 
- Properties inherited from Loyc.Collections.IIsEmpty
bool IsEmpty [get]
 
- Properties inherited from Loyc.Collections.IIndexed< in K, out V >
this[K key] [get]
 Gets the value associated with the specified key. More...
 
- Properties inherited from Loyc.Collections.IArraySink< in T >
this[int index] [set]
 
- Public Member Functions inherited from Loyc.Collections.IArray< T >
bool TrySet (int index, T value)
 
- Public Member Functions inherited from Loyc.Collections.IListSource< out T >
IListSource< T > Slice (int start, int count=int.MaxValue)
 Returns a sub-range of this list. More...
 
- Public Member Functions inherited from Loyc.Collections.ITryGet< in K, out V >
TryGet (K key, out bool fail)
 Gets the item for the specified key or index, and does not throw an exception on failure. More...
 
- Public Member Functions inherited from Loyc.Collections.IOptimize
void Optimize ()
 Optimizes the data structure to consume less memory or storage space. More...