| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
hpl3:community:scripting:classes:array [2015/11/06 01:28] abion47 [Remarks] |
hpl3:community:scripting:classes:array [2015/11/06 01:51] (current) abion47 [Functions] |
||
|---|---|---|---|
| Line 8: | Line 8: | ||
| ^ Return Type ^ Function Name ^ Parameters ^ Description ^ | ^ Return Type ^ Function Name ^ Parameters ^ Description ^ | ||
| - | | void | insertAt | uint, \\ const T &in | | | + | | void | insertAt | uint alIndex, \\ const T &in aValue | Inserts the value at the specified index, shifting existing values to the right. | |
| - | | void | removeAt | uint | | | + | | void | removeAt | uint alIndex | Removes the value at the specified index, shifting values after the index to the left. | |
| - | | void | insertLast | const T &in | | | + | | void | insertLast | const T &in aValue | Inserts the value into a new index at the end of the array. | |
| - | | void | insertBack | const T &in | | | + | | void | insertBack | const T &in aValue | //%%**Using this function results in an error.**%%// | |
| - | | void | removeFirst | | | | + | | void | removeFirst | | Removes the value at the beginning of the array. | |
| - | | void | removeLast | | | | + | | void | removeLast | | Removes the value at the end of the array. | |
| - | | uint | length | | | | + | | uint | length | | Returns the number of elements within the array. | |
| - | | void | resize | uint | | | + | | void | resize | uint alLength | Resizes the array to the specified size, creating or removing elements as necessary. | |
| - | | void | sortAsc | | | | + | | void | sortAsc | | Sorts all elements in the array into ascending order. | |
| - | | void | sortAsc | uint, \\ uint | | | + | | void | sortAsc | uint alIndex, \\ uint alLength | Sorts elements in the array into ascending order, affecting only the subsection at the given index to the given length. | |
| - | | void | sortDesc | | | | + | | void | sortDesc | | Sorts all elements in the array into descending order. | |
| - | | void | sortDesc | uint, \\ uint | | | + | | void | sortDesc | uint alIndex, \\ uint alLength | Sorts elements in the array into descending order, affecting only the subsection at the given index to the given length. | |
| - | | void | reverse | | | | + | | void | reverse | | Reverses the order of elements in the array. | |
| - | | int | find | const T &in | | | + | | int | find | const T &in aValue | Returns the index of the first element in the array equal to the given value, or -1 if the value was not found. | |
| - | | int | find | uint, \\ const T &in | | | + | | int | find | uint alIndex, \\ const T &in aValue | Returns the index of the first element in the array equal to the given value, or -1 if the value was not found. Only affects elements starting at the given index. | |
| - | | void | push_back | const T &in | | | + | | void | push_back | const T &in aValue | Inserts the given value at the end of the array. | |
| - | | void | push_front | const T &in | | | + | | void | push_front | const T &in aValue | Inserts the given value at the beginning of the array. | |
| - | | void | pop_back | | | | + | | void | pop_back | | Removes the element at the end of the array. | |
| - | | void | pop_front | | | | + | | void | pop_front | | Removes the element at the beginning of the array. | |
| - | | uint | size | | | | + | | uint | size | | Returns the number of elements within the array. | |
| ====Remarks==== | ====Remarks==== | ||