The intList class provides a list of integer numbers. More...
intList( ) | |
intList( intList list ) | |
void | append(int value) |
int | at(int pos) |
void | clear() |
bool | contains(int value) |
void | insert(int pos, int value) |
int | indexOf(int value, int index=0) |
int | removeAll(int value) |
void | removeAt(int pos) |
int | size() |
void | set(int pos, int value) |
void | swap(int pos1, int pos2) |
The intList class provides a list of integer numbers. In LayoutEditor C++ Macros this class is identical with an array of integer ( int a[count];
).
creates a intList
creates a intList with copied data from list
Insert value at the end of the list.
Returns: integer at the postion pos
Removes all items from the list. (introduced with release 20230121)
Returns: true if the intList contains the number value. Otherwise false is returned.
value is added at position pos. All entries afterwards are move by one position.
Returns: the index position of the first occurrence of the integer value in this list, searching forward from index position from. Returns -1, if value is not found.
Removes all occurrences of value in the list and returns the number of entries removed.
position pos is removed from the list
Returns: number of integers in the list
Sets the posth entry of the list to value. The first entry of the list starts with 0. It will have no effect, if the list did not have a size of pos.
Swaps the value at pos1 and pos2