Enhanced C#
Language of your choice: library documentation

Documentation moved to ecsharp.net

GitHub doesn't support HTTP redirects, so you'll be redirected in 3 seconds.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Public fields | Properties | Public Member Functions | List of all members
Loyc.Collections.FVList< T >.Enumerator Struct Reference

Enumerator for FVList; also used by FWList. More...


Source file:
Inheritance diagram for Loyc.Collections.FVList< T >.Enumerator:
Loyc.Collections.FVList< T > Loyc.Collections.IListAndListSource< T > Loyc.ICloneable< out T > Loyc.Collections.IListSource< out T > Loyc.Collections.ICollectionAndReadOnly< T >

Remarks

Enumerator for FVList; also used by FWList.

Public fields

FVList< T > _tail
 
_current
 

Properties

Current [get]
 
object
System.Collections.IEnumerator. 
Current [get]
 
- Properties inherited from Loyc.Collections.FVList< T >
FVList< T > Tail [get]
 Returns a list without the first item. If the list is empty, an empty list is retured. More...
 
First [get]
 Returns the front item of the list (at index 0), which is the head of the list. More...
 
bool IsEmpty [get]
 
int BlockChainLength [get]
 Gets the number of blocks used by this list. More...
 
this[int index] [get, set]
 
this[int index, T defaultValue] [get]
 Gets an item from the list at the specified index; returns defaultValue if the index is not valid. More...
 
int Count [get]
 
bool IsReadOnly [get]
 

Public Member Functions

 Enumerator (FVList< T > list)
 
 Enumerator (VList< T > list)
 
bool MoveNext ()
 
void Reset ()
 
void Dispose ()
 
- Public Member Functions inherited from Loyc.Collections.FVList< T >
 FVList (T firstItem)
 
 FVList (T itemZero, T itemOne)
 
 FVList (T[] array)
 
 FVList (IList< T > list)
 
FVList< T > WithoutFirst (int offset)
 
FVList< T > PreviousIn (FVList< T > largerList)
 
FVList< T > Last (int count)
 
override bool Equals (object rhs_)
 Returns whether the two list references are the same. Does not compare the contents of the lists. More...
 
override int GetHashCode ()
 
FVList< T > AddRange (FVList< T > list)
 
FVList< T > AddRange (FVList< T > list, FVList< T > excludeSubList)
 
FVList< T > AddRange (IList< T > list)
 
FVList< T > InsertRange (int index, IList< T > list)
 
FVList< T > RemoveRange (int index, int count)
 
Pop ()
 Removes the front item (at index 0) from the list and returns it. More...
 
FVList< T > Push (T item)
 Synonym for Add(); adds an item to the front of the list. More...
 
VList< T > ToVList ()
 Returns this list as a VList, which effectively reverses the order of the elements. More...
 
FWList< T > ToFWList ()
 Returns this list as a FWList. More...
 
WList< T > ToWList ()
 Returns this list as a WList, which effectively reverses the order of the elements. More...
 
T[] ToArray ()
 Returns the FVList converted to an array. More...
 
FVList< T > SmartAdd (T item, FVList< T > original)
 Adds the specified item to the list, or original.WithoutFirst(original.Count - Count - 1) if doing so is equivalent. More...
 
FVList< T > SmartAdd (T item, ref FVList< T > original)
 
int IndexOf (T item)
 Searches for the specified object and returns the zero-based index of the first occurrence (lowest index) within the entire FVList. More...
 
void IList< T >. Insert (int index, T item)
 
FVList< T > Insert (int index, T item)
 
void IList< T >. RemoveAt (int index)
 
FVList< T > RemoveAt (int index)
 
void ICollection< T >. Add (T item)
 Inserts an item at the front (index 0) of the FVList. More...
 
FVList< T > Add (T item)
 Inserts an item at the front (index 0) of the FVList. More...
 
void ICollection< T >. Clear ()
 
FVList< T > Clear ()
 
bool Contains (T item)
 
void CopyTo (T[] array, int arrayIndex)
 
bool Remove (T item)
 
Enumerator GetEnumerator ()
 
IEnumerator< T > IEnumerable< T >. GetEnumerator ()
 
System.Collections.IEnumerator
System.Collections.IEnumerable. 
GetEnumerator ()
 
TryGet (int index, out bool fail)
 Gets the item at the specified index, and does not throw an exception on failure. More...
 
IRange< T > IListSource< T >. Slice (int start, int count)
 Returns a sub-range of this list. More...
 
Slice_< T > Slice (int start, int count=int.MaxValue)
 Returns a sub-range of this list. More...
 
FVList< T > Clone ()
 
object ICloneable. Clone ()
 
FVList< T > Where (Predicate< T > filter)
 Applies a filter to a list, to exclude zero or more items. More...
 
FVList< T > WhereSelect (Func< T, Maybe< T >> filter)
 Filters and maps a list with a user-defined function. More...
 
FVList< T > SmartSelect (Func< T, T > map)
 Maps a list to another list of the same length. More...
 
FVList< Out > Select< Out > (Func< T, Out > map)
 Maps a list to another list of the same length. More...
 
FVList< T > Transform (VListTransformer< T > x)
 Transforms a list (combines filtering with selection and more). More...
 

Additional Inherited Members

- Public static fields inherited from Loyc.Collections.FVList< T >
static readonly FVList< T > Empty = new FVList<T>()
 
- Static Public Member Functions inherited from Loyc.Collections.FVList< T >
static bool operator== (FVList< T > lhs, FVList< T > rhs)
 Returns whether the two list references are the same. Does not compare the contents of the lists. More...
 
static bool operator!= (FVList< T > lhs, FVList< T > rhs)
 Returns whether the two list references are different. Does not compare the contents of the lists. More...
 
static operator VList< T > (FVList< T > list)
 Returns this list as a VList, which effectively reverses the order of the elements. More...
 
static operator FWList< T > (FVList< T > list)
 Returns this list as a FWList. More...
 
static operator WList< T > (FVList< T > list)
 Returns this list as a WList, which effectively reverses the order of the elements. More...