| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
hpl3:community:scripting:classes:array [2015/11/06 01:49] abion47 [Functions] |
hpl3:community:scripting:classes:array [2015/11/06 01:51] (current) abion47 [Functions] |
||
|---|---|---|---|
| Line 11: | Line 11: | ||
| | void | removeAt | uint alIndex | Removes the value at the specified index, shifting values after the index to the left. | | | void | removeAt | uint alIndex | Removes the value at the specified index, shifting values after the index to the left. | | ||
| | void | insertLast | const T &in aValue | Inserts the value into a new index at the end of the array. | | | void | insertLast | const T &in aValue | Inserts the value into a new index at the end of the array. | | ||
| - | | void | insertBack | const T &in aValue | | | + | | void | insertBack | const T &in aValue | //%%**Using this function results in an error.**%%// | |
| | void | removeFirst | | Removes the value at the beginning of the array. | | | void | removeFirst | | Removes the value at the beginning of the array. | | ||
| | void | removeLast | | Removes the value at the end of the array. | | | void | removeLast | | Removes the value at the end of the array. | | ||
| Line 23: | Line 23: | ||
| | 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 | 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 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. | | | 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 | Inserts the given value at the end of the array. | | + | | void | push_back | const T &in aValue | Inserts the given value at the end of the array. | |
| - | | void | push_front | const T &in | Inserts the given value at the beginning of the array. | | + | | void | push_front | const T &in aValue | Inserts the given value at the beginning of the array. | |
| | void | pop_back | | Removes the element at the end of the array. | | | void | pop_back | | Removes the element at the end of the array. | | ||
| | void | pop_front | | Removes the element at the beginning of the array. | | | void | pop_front | | Removes the element at the beginning of the array. | | ||