Skip to content
Lukas Sägesser edited this page Jun 22, 2015 · 10 revisions

Array

####Category: Built-In Types

Brief Description

Generic array datatype.

Member Functions

Description

Generic array, contains several elements of any type, accessible by numerical index starting at 0. Arrays are always passed by reference.

Member Function Description

  • void clear ( )

Clear the array (resize to 0).

Return true if the array is empty (size==0).

Return a hashed integer value representing the array contents.

  • void insert ( int pos, var value )

Insert a new element at a given position in the array. The position must be valid, or at the end of the array (pos==size()).

  • void push_back ( var value )

Append an element at the end of the array.

  • void remove ( int pos )

Remove an element from the array by index.

  • void resize ( int pos )

Resize the array to contain a different number of elements. If the array size is smaller, elements are cleared, if bigger, new elements are Null.

Return the amount of elements in the array.

Construct an array from a RawArray.

Construct an array from a RawArray.

Construct an array from a RawArray.

Construct an array from a RawArray.

Construct an array from a RawArray.

Construct an array from a RawArray.

Construct an array from a RawArray.

Clone this wiki locally