I_Array (Interface)
Interface for a static array.
Extends: I_Collection
Properties
_Begin
Type: T_Position
Index of the first element.
_End
Type: T_Position
Index of the last element.
Methods
Contains
Returns: BOOL
Checks if item is contained in array.
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
Item to find. |
Get
Returns: I_Array
Gets item from array at specified location.
Inputs
Name |
Type |
Description |
|---|---|---|
|
Location of item. |
|
|
|
Variable to store returned item. |
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
Get_As_String
Returns: I_Array
Returns item as a string, if type to string conversion is supported.
Inputs
Name |
Type |
Description |
|---|---|---|
|
Location of item. |
|
|
|
Variable to store returned item. |
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
Get_Generic
Returns: I_Array
Gets an item from the array in it’s generic form. Use carefully as this contains the pointer of the actual value in the collection. If you wish to use this it is recommeded you create a copy of the returned value using MEMMOVE or MEMCPY
Inputs
Name |
Type |
Description |
|---|---|---|
|
Location of item. |
Outputs
Name |
Type |
Description |
|---|---|---|
|
||
|
|
Get_Type_At
Returns: I_Array
Gets the type of the item at specified location.
Inputs
Name |
Type |
Description |
|---|---|---|
|
Outputs
Name |
Type |
Description |
|---|---|---|
|
||
|
|
Reverse
Returns: I_Array
Reverses the order of items in the array.
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
Search
Returns: I_Array
Find the location of an item in the array.
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
Item to find. |
Outputs
Name |
Type |
Description |
|---|---|---|
|
Location of item. |
|
|
|
Set
Returns: I_Array
Changes the item at the specified location in the array.
Inputs
Name |
Type |
Description |
|---|---|---|
|
Location of item. |
|
|
|
Item to store. |
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
Set_Generic
Returns: I_Array
Changes the item at the specified location in the array in it’s generic form.
Inputs
Name |
Type |
Description |
|---|---|---|
|
Location of item. |
|
|
Item to store. |
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
Swap
Returns: I_Array
Swaps item at index with item at index B.
Inputs
Name |
Type |
Description |
|---|---|---|
|
Outputs
Name |
Type |
Description |
|---|---|---|
|
|