C# Class IronRuby.Builtins.IListOps

Mostrar archivo Open project: jschementi/iron

Public Methods

Method Description
DeleteItems ( IList list, int index, int length ) : void
EnumerateRecursively ( ConversionStorage tryToAry, IList list, int maxDepth, object>.Func loopDetected ) : IEnumerable

Enumerates all items of the list recursively - if there are any items convertible to IList the items of that lists are enumerated as well. Returns null if there are no nested lists and so the list can be enumerated using a standard enumerator.

ExpandList ( IList list, int index ) : void
GetContainerOf ( BinaryOpStorage equals, IList list, int index, object item ) : IList
Join ( JoinConversionStorage conversions, IList self, MutableString separator ) : MutableString
OverwriteOrAdd ( IList list, int index, object value ) : void
Remove ( BinaryOpStorage equals, IList self, object item ) : bool

Private Methods

Method Description
AddRange ( IList collection, IList items ) : void
AddUniqueItems ( IList list, IList result, bool>.Dictionary seen, bool &nilSeen ) : void
Append ( IList self, object value ) : IList
At ( IList self, [ index ) : object
Clear ( IList self ) : IList
CollectInPlace ( BlockParam collector, IList self ) : object
CollectInPlaceImpl ( BlockParam collector, IList self ) : object
Compact ( UnaryOpStorage allocateStorage, IList self ) : IList
CompactInPlace ( IList self ) : IList
Compare ( BinaryOpStorage comparisonStorage, ConversionStorage toAry, IList self, object other ) : object
Compare ( BinaryOpStorage comparisonStorage, IList self, [ other ) : object
Concat ( IList self, [ other ) : IList
Concatenate ( IList self, [ other ) : RubyArray
CreateResultArray ( UnaryOpStorage allocateStorage, IList list ) : IList
Delete ( BinaryOpStorage equals, BlockParam block, IList self, object item ) : object
Delete ( BinaryOpStorage equals, IList self, object item ) : object
DeleteAt ( IList self, [ index ) : object
DeleteElements ( IList self, int start, int count ) : void
DeleteIf ( BlockParam block, IList self ) : object
DeleteIf ( BlockParam block, IList self, bool &changed, bool &jumped ) : object
DeleteIfImpl ( BlockParam block, IList self ) : object
Difference ( UnaryOpStorage hashStorage, BinaryOpStorage eqlStorage, IList self, [ other ) : RubyArray
Each ( IList self ) : IronRuby.Builtins.Enumerator
Each ( [ block, IList self ) : object
EachIndex ( IList self ) : IronRuby.Builtins.Enumerator
EachIndex ( [ block, IList self ) : object
Empty ( IList self ) : bool
EnumerateRecursively ( ConversionStorage tryToAry, IList root, IList list, IList nested, int nestedIndex, int maxDepth, object>.Func loopDetected ) : IEnumerable
Equals ( BinaryOpStorage equals, IList self, [ other ) : bool
Equals ( RespondToStorage respondTo, BinaryOpStorage equals, IList self, object other ) : bool
Fetch ( ConversionStorage fixnumCast, BlockParam outOfRangeValueProvider, IList list, object index, [ defaultValue ) : object
Fill ( ConversionStorage fixnumCast, IList self, object obj, [ range ) : IList
Fill ( ConversionStorage fixnumCast, IList self, object obj, object start, [ length ) : IList
Fill ( IList self, object obj, [ start ) : IList
Fill ( IList self, object obj, int start, int length ) : IList
Fill ( ConversionStorage fixnumCast, [ block, IList self, [ range ) : object
Fill ( ConversionStorage fixnumCast, [ block, IList self, object start, [ length ) : object
Fill ( [ block, IList self, [ start ) : object
Fill ( [ block, IList self, int start, int length ) : object
FindIndex ( BinaryOpStorage equals, BlockParam predicate, IList self, object value ) : object
FindIndex ( [ predicate, IList self ) : object
First ( IList self, [ count ) : IList
First ( IList self ) : object
Flatten ( ConversionStorage tryToAry, IList list, int maxDepth, IList result ) : IList
Flatten ( UnaryOpStorage allocateStorage, ConversionStorage tryToAry, IList self, [ maxDepth ) : IList
FlattenInPlace ( ConversionStorage tryToAry, IList self, [ maxDepth ) : IList
FlattenInPlace ( ConversionStorage tryToAry, RubyArray self, [ maxDepth ) : IList
GetCombinations ( BlockParam block, IList self, [ size ) : object
GetContainerOfFirstItem ( BinaryOpStorage equals, IList self, object item ) : IList
GetContainerOfSecondItem ( BinaryOpStorage equals, IList self, object item ) : IList
GetElement ( IList self, [ index ) : object
GetElements ( ConversionStorage fixnumCast, UnaryOpStorage allocateStorage, IList self, [ range ) : IList
GetElements ( UnaryOpStorage allocateStorage, IList self, [ index, [ count ) : IList
GetFindIndexEnumerator ( BlockParam predicate, IList self ) : IronRuby.Builtins.Enumerator
GetHashCode ( UnaryOpStorage hashStorage, ConversionStorage fixnumCast, IList self ) : int
GetNth ( int n, IList first, IList items ) : IList
GetPermutations ( BlockParam block, IList self, [ size ) : object
GetResultRange ( UnaryOpStorage allocateStorage, IList list, int index, int count ) : IList
HashEquals ( BinaryOpStorage eqlStorage, IList self, object other ) : bool
InPlaceReverse ( IList self ) : IList
InRangeNormalized ( IList list, int &index ) : bool
Include ( BinaryOpStorage equals, IList self, object item ) : bool
IndexOf ( CallSite equalitySite, IList self, object item ) : int
IndexOfList ( ConversionStorage tryToAry, IList list, int start, IList &listItem ) : int
Indexes ( ConversionStorage fixnumCast, UnaryOpStorage allocateStorage, IList self ) : object
Insert ( IList self, [ index ) : IList
InsertRange ( IList list, int index, IList items, int start, int count ) : void
Inspect ( RubyContext context, IList self ) : MutableString
Intersection ( UnaryOpStorage hashStorage, BinaryOpStorage eqlStorage, IList self, [ other ) : RubyArray
Join ( JoinConversionStorage conversions, IList self ) : MutableString
JoinRecursive ( JoinConversionStorage conversions, IList list, List parts, bool &isBinary, bool>.Dictionary &seen ) : void
JoinWithLazySeparatorConversion ( JoinConversionStorage conversions, ConversionStorage toStr, IList self, object separator ) : MutableString
Last ( IList self, [ count ) : IList
Last ( IList self ) : object
Length ( IList self ) : int
NormalizeIndex ( IList list, int index ) : int
NormalizeIndex ( int count, int index ) : int
NormalizeIndexThrowIfNegative ( IList list, int index ) : int
NormalizeRange ( ConversionStorage fixnumCast, int listCount, Range range, int &begin, int &count ) : bool
NormalizeRange ( int listCount, int &start, int &count ) : bool
NumberOfNonNilItems ( IList self ) : int
Pop ( IList self ) : object
Pop ( RubyContext context, IList self, [ count ) : object
Product ( IList self ) : RubyArray
Push ( IList self ) : IList
RangeToStartAndCount ( ConversionStorage fixnumCast, Range range, int length, int &start, int &count ) : void
Reject ( CallSiteStorage each, UnaryOpStorage allocate, BlockParam predicate, IList self ) : object
RejectImpl ( CallSiteStorage each, UnaryOpStorage allocate, BlockParam predicate, IList self ) : object
RejectInPlace ( BlockParam block, IList self ) : object
RejectInPlaceImpl ( BlockParam block, IList self ) : object
RemoveRange ( IList collection, int index, int count ) : void
Repeat ( UnaryOpStorage allocateStorage, IList self, int repeat ) : IList
Repeat ( JoinConversionStorage conversions, IList self, [ separator ) : MutableString
Repeat ( UnaryOpStorage allocateStorage, JoinConversionStorage conversions, IList self, int>.[ repeat ) : object
Replace ( IList self, [ other ) : IList
RequireNotFrozen ( IList self ) : void
Reverse ( UnaryOpStorage allocateStorage, IList self ) : IList
ReverseEach ( RubyArray self ) : Enumerator
ReverseEach ( [ block, RubyArray self ) : object
ReverseEnumerateIndexes ( IList collection ) : IEnumerable
ReverseIndex ( BinaryOpStorage equals, BlockParam predicate, IList self, object item ) : object
ReverseIndex ( [ predicate, IList self ) : object
SetElement ( ConversionStorage arrayTryCast, ConversionStorage fixnumCast, IList self, [ range, object value ) : object
SetElement ( ConversionStorage arrayTryCast, IList self, [ index, [ length, object value ) : object
SetElement ( IList self, [ index, object value ) : object
SetElement ( RubyArray self, [ index, object value ) : object
Shift ( IList self ) : object
Shuffle ( UnaryOpStorage allocateStorage, RubyArray self ) : IList
ShuffleInPlace ( RubyContext context, RubyArray self ) : RubyArray
SliceInPlace ( ConversionStorage fixnumCast, UnaryOpStorage allocateStorage, IList self, [ range ) : IList
SliceInPlace ( UnaryOpStorage allocateStorage, IList self, [ start, [ length ) : IList
SliceInPlace ( IList self, [ index ) : object
Sort ( UnaryOpStorage allocateStorage, ComparisonStorage comparisonStorage, BlockParam block, IList self ) : object
SortInPlace ( ComparisonStorage comparisonStorage, BlockParam block, IList self ) : object
ToArray ( IList self ) : RubyArray
Transpose ( ConversionStorage arrayCast, IList self ) : RubyArray
Union ( UnaryOpStorage hashStorage, BinaryOpStorage eqlStorage, IList self, [ other ) : RubyArray
Unique ( UnaryOpStorage allocateStorage, IList self ) : IList
UniqueSelf ( UnaryOpStorage hashStorage, BinaryOpStorage eqlStorage, IList self ) : IList
UniqueSelf ( UnaryOpStorage hashStorage, BinaryOpStorage eqlStorage, RubyArray self ) : IList
Unshift ( IList self ) : IList
Unshift ( IList self, object arg ) : IList
ValuesAt ( ConversionStorage fixnumCast, UnaryOpStorage allocateStorage, IList self ) : RubyArray

Method Details

DeleteItems() public static method

public static DeleteItems ( IList list, int index, int length ) : void
list IList
index int
length int
return void

EnumerateRecursively() public static method

Enumerates all items of the list recursively - if there are any items convertible to IList the items of that lists are enumerated as well. Returns null if there are no nested lists and so the list can be enumerated using a standard enumerator.
public static EnumerateRecursively ( ConversionStorage tryToAry, IList list, int maxDepth, object>.Func loopDetected ) : IEnumerable
tryToAry ConversionStorage
list IList
maxDepth int
loopDetected object>.Func
return IEnumerable

ExpandList() public static method

public static ExpandList ( IList list, int index ) : void
list IList
index int
return void

GetContainerOf() public static method

public static GetContainerOf ( BinaryOpStorage equals, IList list, int index, object item ) : IList
equals BinaryOpStorage
list IList
index int
item object
return IList

Join() public static method

public static Join ( JoinConversionStorage conversions, IList self, MutableString separator ) : MutableString
conversions JoinConversionStorage
self IList
separator MutableString
return MutableString

OverwriteOrAdd() public static method

public static OverwriteOrAdd ( IList list, int index, object value ) : void
list IList
index int
value object
return void

Remove() public static method

public static Remove ( BinaryOpStorage equals, IList self, object item ) : bool
equals BinaryOpStorage
self IList
item object
return bool