Struct IntSequence
IList wrapper for an Interval1i, ie sequential list of integers
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public struct IntSequence : IList<int>, ICollection<int>, IEnumerable<int>, IEnumerable
Constructors
IntSequence(Interval1i)
Declaration
public IntSequence(Interval1i ival)
Parameters
IntSequence(Int32, Int32)
Declaration
public IntSequence(int iStart, int iEnd)
Parameters
Properties
Count
Declaration
public int Count { get; }
Property Value
IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
Item[Int32]
Declaration
public int this[int index] { get; set; }
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Property Value
Methods
Add(Int32)
Declaration
public void Add(int item)
Parameters
Type |
Name |
Description |
Int32 |
item |
|
Clear()
Declaration
Contains(Int32)
Declaration
public bool Contains(int item)
Parameters
Type |
Name |
Description |
Int32 |
item |
|
Returns
CopyTo(Int32[], Int32)
Declaration
public void CopyTo(int[] array, int arrayIndex)
Parameters
Type |
Name |
Description |
Int32[] |
array |
|
Int32 |
arrayIndex |
|
FromToInclusive(Int32, Int32)
construct interval [a, b]
Declaration
public static IntSequence FromToInclusive(int a, int b)
Parameters
Returns
GetEnumerator()
Declaration
public IEnumerator<int> GetEnumerator()
Returns
IndexOf(Int32)
Declaration
public int IndexOf(int item)
Parameters
Type |
Name |
Description |
Int32 |
item |
|
Returns
Insert(Int32, Int32)
Declaration
public void Insert(int index, int item)
Parameters
Range(Int32)
construct interval [0, N-1]
Declaration
public static IntSequence Range(int N)
Parameters
Type |
Name |
Description |
Int32 |
N |
|
Returns
Range(Int32, Int32)
construct interval [start, start+N-1]
Declaration
public static IntSequence Range(int start, int N)
Parameters
Returns
RangeInclusive(Int32)
construct interval [0, N-1]
Declaration
public static IntSequence RangeInclusive(int N)
Parameters
Type |
Name |
Description |
Int32 |
N |
|
Returns
Remove(Int32)
Declaration
public bool Remove(int item)
Parameters
Type |
Name |
Description |
Int32 |
item |
|
Returns
RemoveAt(Int32)
Declaration
public void RemoveAt(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Implements