Array<T>
Overview
Generic class for all arrays for a given T. This is the real class used when using an array in Elements.
Location
- Reference: Island.fx
- Namespace: RemObjects.Elements.System
- Ancestry: Array | Array<T>
constructor (declared in Object)
constructor
Array<T>()
init()
Array<T>()
Sub New()
Add (Object)
method Add(val: Object)
void Add(Object val)
func Add(_ val: Object)
void Add(Object val)
Sub Add(val As Object)
Parameters:
- val:
Add (T)
method Add(val: T)
void Add(T val)
func Add(_ val: T)
void Add(T val)
Sub Add(val As T)
Parameters:
- val:
BinarySearch<T,V> (declared in Array)
Searches for a value of type V inside the array. Based on the passed Comparer. This presumes the array is already sorted based on the comparer passed.
class method BinarySearch<T,V>(aVal: array of T; aInput: V; aComparer: Func<T,V,RemObjects.Elements.System.Int32>): Int32
static Int32 BinarySearch<T,V>(T[] aVal, V aInput, Func<T,V,RemObjects.Elements.System.Int32> aComparer)
static func BinarySearch<T,V>(_ aVal: T..., _ aInput: V, _ aComparer: Func<T,V,RemObjects.Elements.System.Int32>) -> Int32
static Int32 BinarySearch<T,V>(T[] aVal, V aInput, Func<T,V,RemObjects.Elements.System.Int32> aComparer)
Shared Function BinarySearch<T,V>(aVal As T(), aInput As V, aComparer As Func<T,V,RemObjects.Elements.System.Int32>) As Int32
Parameters:
- aVal:
- aInput:
- aComparer:
Clear
method Clear
void Clear()
func Clear()
void Clear()
Sub Clear()
Clear<T> (declared in Array)
Parameters:
- aVal:
- Index:
- Length:
Returns true if this list contains val, using the default equality comparer.
Parameters:
- val:
Contains (T): Boolean
Returns true if this list contains val, using the default equality comparer.
method Contains(val: T): Boolean
Boolean Contains(T val)
func Contains(_ val: T) -> Boolean
Boolean Contains(T val)
Function Contains(val As T) As Boolean
Parameters:
- val:
Static method copy between two arrays.
Parameters:
- aSource: The source array
- aDest: The destination array
- aDestOffset: The destination offset to copy the array to.
- aCount: The number of elements to copy
Static method copy between two arrays.
class method Copy<T>(aSource: array of T; aDest: array of T; aCount: Int32)
static void Copy<T>(T[] aSource, T[] aDest, Int32 aCount)
static func Copy<T>(_ aSource: T..., _ aDest: T..., _ aCount: Int32)
static void Copy<T>(T[] aSource, T[] aDest, Int32 aCount)
Shared Sub Copy<T>(aSource As T(), aDest As T(), aCount As Int32)
Parameters:
- aSource: The source array
- aDest: The destination array
- aCount: The number of elements to copy
Static method copy between two arrays.
class method Copy<T>(aSource: array of T; aSourceOffset: Int32; aDest: array of T; aDestOffset: Int32; aCount: Int32)
Parameters:
- aSource: The source array
- aSourceOffset: The source offset in the array.
- aDest: The destination array
- aDestOffset: The destination offset to copy the array to.
- aCount: The number of elements to copy
Count virtual
Returns the number of elements in this Array.
property Count: Int32 read;
Int32 Count { get; }
var Count: Int32 { get{} }
Int32 Count { __get; }
ReadOnly Property Count() As Int32
Equals virtual (declared in Object)
Default constructor.
Parameters:
- aOther: the reference to compare this with.
Finalize protected virtual (declared in Object)
method Finalize
void Finalize()
func Finalize()
void Finalize()
Sub Finalize()
Get override virtual
Returns the value at index I.
Parameters:
- i:
GetEnumerator
Returns an enumerator that iterates all elements in this array.
method GetEnumerator: IEnumerator<T>
IEnumerator<T> GetEnumerator()
func GetEnumerator() -> IEnumerator<T>
IEnumerator<T> GetEnumerator()
Function GetEnumerator() As IEnumerator<T>
GetHashCode virtual (declared in Object)
Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.
method GetHashCode: Int32
Int32 GetHashCode()
func GetHashCode() -> Int32
Int32 GetHashCode()
Function GetHashCode() As Int32
GetType (declared in Object)
Returns the actual type of this class
method GetType: Type
Type GetType()
func GetType() -> Type
Type GetType()
Function GetType() As Type
Item
property Item[r: Range]: array of T read;
T[] Item[Range r] { get; }
subscript Item(_ r: Range) -> T... { get{} }
T[] Item[Range r] { __get; }
ReadOnly Property Item(r As Range) As T()
Item
property Item[i: Index]: T read write;
T Item[Index i] { get; set; }
subscript Item(_ i: Index) -> T { get{} set{} }
T Item[Index i] { __get; __set; }
Property Item(i As Index) As T
Item virtual
Changes the value of the array at index I.
property Item[i: Int32]: T read write;
T Item[Int32 i] { get; set; }
subscript Item(_ i: Int32) -> T { get{} set{} }
T Item[Int32 i] { __get; __set; }
Property Item(i As Int32) As T
Length (declared in Array)
Contains the length of this array.
property Length: Int32 read;
Int32 Length { get; }
var Length: Int32 { get{} }
Int32 Length { __get; }
ReadOnly Property Length() As Int32
ReferenceEquals (declared in Object)
Compares two references for equivalence (even if they have an equals operator)
Parameters:
- a: left value
- b: right value
Implementation of IList.Remove, this throws a NotSupportedException as the size of an array cannot be changed.
Parameters:
- val:
Remove (T): Boolean
Implementation of IList.Remove, this throws a NotSupportedException as the size of an array cannot be changed.
method Remove(val: T): Boolean
Boolean Remove(T val)
func Remove(_ val: T) -> Boolean
Boolean Remove(T val)
Function Remove(val As T) As Boolean
Parameters:
- val:
Set override virtual
Parameters:
- i:
- v:
Sort<T> (array of T, Comparison<T>) (declared in Array)
class method Sort<T>(aVal: array of T; Comparison: Comparison<T>)
static void Sort<T>(T[] aVal, Comparison<T> Comparison)
static func Sort<T>(_ aVal: T..., _ Comparison: Comparison<T>)
static void Sort<T>(T[] aVal, Comparison<T> Comparison)
Shared Sub Sort<T>(aVal As T(), Comparison As Comparison<T>)
Parameters:
- aVal:
- Comparison:
Parameters:
- aVal:
- L:
- R:
- Comparison:
SubArray (Range): array of T
method SubArray(aRange: Range): array of T
T[] SubArray(Range aRange)
func SubArray(_ aRange: Range) -> T...
T[] SubArray(Range aRange)
Function SubArray(aRange As Range) As T()
Parameters:
- aRange:
Parameters:
- aStart:
- aCount:
SubArray<T> (array of T, Range): array of T (declared in Array)
class method SubArray<T>(aSource: array of T; aRange: Range): array of T
static T[] SubArray<T>(T[] aSource, Range aRange)
static func SubArray<T>(_ aSource: T..., _ aRange: Range) -> T...
static T[] SubArray<T>(T[] aSource, Range aRange)
Shared Function SubArray<T>(aSource As T(), aRange As Range) As T()
Parameters:
- aSource:
- aRange:
Parameters:
- aSource:
- aStart:
- aCount:
ToString override virtual
Count virtual
Returns the number of elements in this Array.
property Count: Int32 read;
Int32 Count { get; }
var Count: Int32 { get{} }
Int32 Count { __get; }
ReadOnly Property Count() As Int32
Item
property Item[r: Range]: array of T read;
T[] Item[Range r] { get; }
subscript Item(_ r: Range) -> T... { get{} }
T[] Item[Range r] { __get; }
ReadOnly Property Item(r As Range) As T()
Item
property Item[i: Index]: T read write;
T Item[Index i] { get; set; }
subscript Item(_ i: Index) -> T { get{} set{} }
T Item[Index i] { __get; __set; }
Property Item(i As Index) As T
Item virtual
Changes the value of the array at index I.
property Item[i: Int32]: T read write;
T Item[Int32 i] { get; set; }
subscript Item(_ i: Int32) -> T { get{} set{} }
T Item[Int32 i] { __get; __set; }
Property Item(i As Int32) As T
Length (declared in Array)
Contains the length of this array.
BinarySearch<T,V> (declared in Array)
Searches for a value of type V inside the array. Based on the passed Comparer. This presumes the array is already sorted based on the comparer passed.
class method BinarySearch<T,V>(aVal: array of T; aInput: V; aComparer: Func<T,V,RemObjects.Elements.System.Int32>): Int32
static Int32 BinarySearch<T,V>(T[] aVal, V aInput, Func<T,V,RemObjects.Elements.System.Int32> aComparer)
static func BinarySearch<T,V>(_ aVal: T..., _ aInput: V, _ aComparer: Func<T,V,RemObjects.Elements.System.Int32>) -> Int32
static Int32 BinarySearch<T,V>(T[] aVal, V aInput, Func<T,V,RemObjects.Elements.System.Int32> aComparer)
Shared Function BinarySearch<T,V>(aVal As T(), aInput As V, aComparer As Func<T,V,RemObjects.Elements.System.Int32>) As Int32
Parameters:
- aVal:
- aInput:
- aComparer:
Clear<T> (declared in Array)
Parameters:
- aVal:
- Index:
- Length:
Static method copy between two arrays.
Parameters:
- aSource: The source array
- aDest: The destination array
- aDestOffset: The destination offset to copy the array to.
- aCount: The number of elements to copy
Static method copy between two arrays.
class method Copy<T>(aSource: array of T; aDest: array of T; aCount: Int32)
static void Copy<T>(T[] aSource, T[] aDest, Int32 aCount)
static func Copy<T>(_ aSource: T..., _ aDest: T..., _ aCount: Int32)
static void Copy<T>(T[] aSource, T[] aDest, Int32 aCount)
Shared Sub Copy<T>(aSource As T(), aDest As T(), aCount As Int32)
Parameters:
- aSource: The source array
- aDest: The destination array
- aCount: The number of elements to copy
Static method copy between two arrays.
class method Copy<T>(aSource: array of T; aSourceOffset: Int32; aDest: array of T; aDestOffset: Int32; aCount: Int32)
Parameters:
- aSource: The source array
- aSourceOffset: The source offset in the array.
- aDest: The destination array
- aDestOffset: The destination offset to copy the array to.
- aCount: The number of elements to copy
ReferenceEquals (declared in Object)
Compares two references for equivalence (even if they have an equals operator)
Parameters:
- a: left value
- b: right value
Sort<T> (array of T, Comparison<T>) (declared in Array)
class method Sort<T>(aVal: array of T; Comparison: Comparison<T>)
static void Sort<T>(T[] aVal, Comparison<T> Comparison)
static func Sort<T>(_ aVal: T..., _ Comparison: Comparison<T>)
static void Sort<T>(T[] aVal, Comparison<T> Comparison)
Shared Sub Sort<T>(aVal As T(), Comparison As Comparison<T>)
Parameters:
- aVal:
- Comparison:
Parameters:
- aVal:
- L:
- R:
- Comparison:
SubArray<T> (array of T, Range): array of T (declared in Array)
class method SubArray<T>(aSource: array of T; aRange: Range): array of T
static T[] SubArray<T>(T[] aSource, Range aRange)
static func SubArray<T>(_ aSource: T..., _ aRange: Range) -> T...
static T[] SubArray<T>(T[] aSource, Range aRange)
Shared Function SubArray<T>(aSource As T(), aRange As Range) As T()
Parameters:
- aSource:
- aRange:
Parameters:
- aSource:
- aStart:
- aCount:
constructor (declared in Object)
constructor
Array<T>()
init()
Array<T>()
Sub New()
Add (Object)
method Add(val: Object)
void Add(Object val)
func Add(_ val: Object)
void Add(Object val)
Sub Add(val As Object)
Parameters:
- val:
Add (T)
method Add(val: T)
void Add(T val)
func Add(_ val: T)
void Add(T val)
Sub Add(val As T)
Parameters:
- val:
Clear
method Clear
void Clear()
func Clear()
void Clear()
Sub Clear()
Returns true if this list contains val, using the default equality comparer.
Parameters:
- val:
Contains (T): Boolean
Returns true if this list contains val, using the default equality comparer.
method Contains(val: T): Boolean
Boolean Contains(T val)
func Contains(_ val: T) -> Boolean
Boolean Contains(T val)
Function Contains(val As T) As Boolean
Parameters:
- val:
Equals virtual (declared in Object)
Default constructor.
Parameters:
- aOther: the reference to compare this with.
Finalize protected virtual (declared in Object)
method Finalize
void Finalize()
func Finalize()
void Finalize()
Sub Finalize()
Get override virtual
Returns the value at index I.
Parameters:
- i:
GetEnumerator
Returns an enumerator that iterates all elements in this array.
method GetEnumerator: IEnumerator<T>
IEnumerator<T> GetEnumerator()
func GetEnumerator() -> IEnumerator<T>
IEnumerator<T> GetEnumerator()
Function GetEnumerator() As IEnumerator<T>
GetHashCode virtual (declared in Object)
Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.
method GetHashCode: Int32
Int32 GetHashCode()
func GetHashCode() -> Int32
Int32 GetHashCode()
Function GetHashCode() As Int32
GetType (declared in Object)
Returns the actual type of this class
method GetType: Type
Type GetType()
func GetType() -> Type
Type GetType()
Function GetType() As Type
Implementation of IList.Remove, this throws a NotSupportedException as the size of an array cannot be changed.
Parameters:
- val:
Remove (T): Boolean
Implementation of IList.Remove, this throws a NotSupportedException as the size of an array cannot be changed.
method Remove(val: T): Boolean
Boolean Remove(T val)
func Remove(_ val: T) -> Boolean
Boolean Remove(T val)
Function Remove(val As T) As Boolean
Parameters:
- val:
Set override virtual
Parameters:
- i:
- v:
SubArray (Range): array of T
method SubArray(aRange: Range): array of T
T[] SubArray(Range aRange)
func SubArray(_ aRange: Range) -> T...
T[] SubArray(Range aRange)
Function SubArray(aRange As Range) As T()
Parameters:
- aRange:
Parameters:
- aStart:
- aCount:
ToString override virtual