|
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.
|
|
◆ 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 the 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 occurence, -1 when not found
◆ Get()
- Parameters
-
- Returns
- value at index n
◆ 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
-
[in] | order | order in array |
[in] | 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
-
[in] | order | order number to be removed |
◆ RemoveValues()
Remove all entries with given value.
- Parameters
-
[in] | value | value to be removed |
◆ Set()
Sets value of element at index [n].
- Parameters
-
[in] | n | index |
[in] | value | new value |
◆ 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
◆ m_aValues
The documentation for this interface was generated from the following file:
- Game/Global/SCR_SortedArray.c