|
TValue | Get (int n) |
|
void | Set (int n, TValue value) |
| Sets value of element at index [n].
|
|
void | Insert (int order, TValue value) |
| Insert new value with given order.
|
|
void | Remove (int i) |
| Remove value on given index.
|
|
void | RemoveOrders (int order) |
| Remove all entries with given order number.
|
|
void | RemoveValues (TValue value) |
| Remove all entries with given value.
|
|
int | GetOrder (int i) |
|
TValue | GetValue (int i) |
|
int | Count () |
|
bool | IsEmpty () |
|
bool | Contains (TValue value) |
|
int | Find (TValue value) |
| Try to find given value in the array.
|
|
int | CopyFrom (notnull SCR_SortedArray< TValue > from) |
| Copy data from another sorted array.
|
|
void | Clear () |
| Destroys all elements of the array and sets the Count to 0.
|
|
int | ToArray (out notnull array< TValue > outArray) |
| Fills normal array with items in sorted order.
|
|
void | Debug () |
| Print array values to log.
|
|
|
ref array< int > | m_aOrders = new array<int>() |
|
ref array< TValue > | m_aValues = new array<TValue>() |
|
◆ Clear()
Destroys all elements of the array and sets the Count to 0.
◆ Contains()
- Returns
- True if the array contains given value
◆ CopyFrom()
Copy data from another sorted array.
- Parameters
-
- Returns
- Number of items in array
◆ Count()
- Returns
- Number of elements in the array
◆ Debug()
Print array values to log.
◆ Find()
Try to find given value in the array.
- Parameters
-
- Returns
- Index of first occurance, -1 when not found
◆ Get()
- Returns
- Value at index [n]
- Parameters
-
- Returns
- Value
◆ GetOrder()
- Parameters
-
- Returns
- Order number on given index
◆ GetValue()
- Parameters
-
- Returns
- Value on given index
◆ Insert()
Insert new value with given order.
Values are ordered from lowest to highest.
- Parameters
-
order | Order in array |
value | Value to be inserted |
◆ IsEmpty()
- Returns
- True if the array size is 0, false otherwise
◆ Remove()
Remove value on given index.
- Parameters
-
◆ RemoveOrders()
Remove all entries with given order number.
- Parameters
-
order | Order number to be removed |
◆ RemoveValues()
Remove all entries with given value.
- Parameters
-
◆ Set()
Sets value of element at index [n].
- Parameters
-
◆ ToArray()
int SCR_SortedArray< Class TValue >.ToArray |
( |
out notnull array< TValue > |
outArray | ) |
|
Fills normal array with items in sorted order.
- Parameters
-
[out] | outArray | Target array |
- Returns
- Number of items
◆ m_aOrders
ref array<int> SCR_SortedArray< Class TValue >.m_aOrders = new array<int>() |
|
protected |
◆ m_aValues
ref array<TValue> SCR_SortedArray< Class TValue >.m_aValues = new array<TValue>() |
|
protected |
The documentation for this interface was generated from the following file:
- Game/Global/SCR_SortedArray.c