Arbor 3: FSM & BT Graph Editor  3.7.8
ListAccessor Class Referenceabstract

Access IList<> generated at runtime. More...

Inherited by ListAccessorAOT.

Public Member Functions

abstract object NewList ()
 Create a List instance. More...
 
abstract object GetElement (object instance, int index)
 Get an element. More...
 
abstract object SetElement (object instance, int index, object element, ListInstanceType instanceType)
 Set the element. More...
 
abstract object AddElement (object instance, object element, ListInstanceType instanceType)
 Add an element. More...
 
abstract object InsertElement (object instance, int index, object element, ListInstanceType instanceType)
 Insert an element. More...
 
abstract object RemoveElement (object instance, object element, ListInstanceType instanceType)
 Remove an element. More...
 
abstract object RemoveAtIndex (object instance, int index, ListInstanceType instanceType)
 Remove an element. More...
 
abstract object Clear (object instance, ListInstanceType instanceType)
 Remove all elements. More...
 
abstract bool Contains (object instance, object element)
 To determine if it contains elements. More...
 
abstract int Count (object instance)
 Get the number of elements. More...
 
abstract int IndexOf (object instance, object element)
 Gets the index where the element is stored. More...
 
abstract int IndexOf (object instance, object element, int startIndex)
 Gets the index where the element is stored. More...
 
abstract int IndexOf (object instance, object element, int startIndex, int count)
 Gets the index where the element is stored. More...
 
abstract int LastIndexOf (object instance, object element)
 Search the index where the element is stored from the end. More...
 
abstract int LastIndexOf (object instance, object element, int startIndex)
 Search the index where the element is stored from the end. More...
 
abstract int LastIndexOf (object instance, object element, int startIndex, int count)
 Search the index where the element is stored from the end. More...
 
abstract bool EqualsList (object a, object b)
 Determine if IList<T> are equal. More...
 
abstract object ToArray (object instance)
 Convert to an array. More...
 
abstract object ToList (object instance)
 Convert to List. More...
 

Static Public Member Functions

static ListAccessor Get (System.Type elementType)
 Get ListAccessor of specified element type. More...
 

Detailed Description

Access IList<> generated at runtime.

Member Function Documentation

◆ AddElement()

abstract object AddElement ( object  instance,
object  element,
ListInstanceType  instanceType 
)
pure virtual

Add an element.

Parameters
instanceInstance of type IList<elementType>
elementThe element to add
instanceTypeHow to change the instance
Returns
The resulting instance of the change

◆ Clear()

abstract object Clear ( object  instance,
ListInstanceType  instanceType 
)
pure virtual

Remove all elements.

Parameters
instanceInstance of type IList<elementType>
instanceTypeHow to change the instance
Returns
The resulting instance of the change

◆ Contains()

abstract bool Contains ( object  instance,
object  element 
)
pure virtual

To determine if it contains elements.

Parameters
instanceInstance of type IList<elementType>
elementElement
Returns
rReturns true if it contains.

◆ Count()

abstract int Count ( object  instance)
pure virtual

Get the number of elements.

Parameters
instanceInstance of type IList<elementType>
Returns
Element count

◆ EqualsList()

abstract bool EqualsList ( object  a,
object  b 
)
pure virtual

Determine if IList<T> are equal.

Parameters
aIList<T> to judge
bIList<T> to judge
Returns
Returns true if they are equal.

◆ Get()

static ListAccessor Get ( System.Type  elementType)
static

Get ListAccessor of specified element type.

Parameters
elementTypeElement type
Returns
ListAccessor to access IList<elementType>

◆ GetElement()

abstract object GetElement ( object  instance,
int  index 
)
pure virtual

Get an element.

Parameters
instanceInstance of type IList<elementType>
indexIndex
Returns
returns the element stored at index

◆ IndexOf() [1/3]

abstract int IndexOf ( object  instance,
object  element 
)
pure virtual

Gets the index where the element is stored.

Parameters
instanceInstance of type IList<elementType>
elementElement
Returns
The index where the element is stored. Returns -1 if there is no element.

◆ IndexOf() [2/3]

abstract int IndexOf ( object  instance,
object  element,
int  startIndex 
)
pure virtual

Gets the index where the element is stored.

Parameters
instanceInstance of type IList<elementType>
elementElement
startIndexStart index
Returns
The index where the element is stored. Returns -1 if there is no element.

◆ IndexOf() [3/3]

abstract int IndexOf ( object  instance,
object  element,
int  startIndex,
int  count 
)
pure virtual

Gets the index where the element is stored.

Parameters
instanceInstance of type IList<elementType>
elementElement
startIndexStart index
countCount
Returns
The index where the element is stored. Returns -1 if there is no element.

◆ InsertElement()

abstract object InsertElement ( object  instance,
int  index,
object  element,
ListInstanceType  instanceType 
)
pure virtual

Insert an element.

Parameters
instanceInstance of type IList<elementType>
indexIndex
elementThe element to insert
instanceTypeHow to change the instance
Returns
The resulting instance of the change

◆ LastIndexOf() [1/3]

abstract int LastIndexOf ( object  instance,
object  element 
)
pure virtual

Search the index where the element is stored from the end.

Parameters
instanceInstance of type IList<elementType>
elementElement
Returns
The index where the element is stored. Returns -1 if there is no element.

◆ LastIndexOf() [2/3]

abstract int LastIndexOf ( object  instance,
object  element,
int  startIndex 
)
pure virtual

Search the index where the element is stored from the end.

Parameters
instanceInstance of type IList<elementType>
elementElement
startIndexStart index
Returns
The index where the element is stored. Returns -1 if there is no element.

◆ LastIndexOf() [3/3]

abstract int LastIndexOf ( object  instance,
object  element,
int  startIndex,
int  count 
)
pure virtual

Search the index where the element is stored from the end.

Parameters
instanceInstance of type IList<elementType>
elementElement
startIndexStart index
countCount
Returns
The index where the element is stored. Returns -1 if there is no element.

◆ NewList()

abstract object NewList ( )
pure virtual

Create a List instance.

Returns
List instance

◆ RemoveAtIndex()

abstract object RemoveAtIndex ( object  instance,
int  index,
ListInstanceType  instanceType 
)
pure virtual

Remove an element.

Parameters
instanceInstance of type IList<elementType>
indexIndex
instanceTypeHow to change the instance
Returns
The resulting instance of the change

◆ RemoveElement()

abstract object RemoveElement ( object  instance,
object  element,
ListInstanceType  instanceType 
)
pure virtual

Remove an element.

Parameters
instanceInstance of type IList<elementType>
elementThe element to remove
instanceTypeHow to change the instance
Returns
The resulting instance of the change

◆ SetElement()

abstract object SetElement ( object  instance,
int  index,
object  element,
ListInstanceType  instanceType 
)
pure virtual

Set the element.

Parameters
instanceInstance of type IList<elementType>
indexIndex
elementThe element to set
instanceTypeHow to change the instance
Returns
The resulting instance of the change

◆ ToArray()

abstract object ToArray ( object  instance)
pure virtual

Convert to an array.

Parameters
instanceInstance of type IList<elementType>
Returns
Array of conversion results

◆ ToList()

abstract object ToList ( object  instance)
pure virtual

Convert to List.

Parameters
instanceInstance of type IList<elementType>
Returns
List of conversion results