-
Notifications
You must be signed in to change notification settings - Fork 0
class_array
reduz edited this page Feb 23, 2014
·
9 revisions
Category: Built-In Types\
Generic array datatype.
- void #append( var value )
- void #clear(****)
- bool #empty(****)
- void #erase( var value )
- int #find( var value )
- int #hash(****)
- void #insert( int pos, var value )
- void #invert(****)
- void #push_back( var value )
- void #remove( int pos )
- void #resize( int pos )
- int #size(****)
- void #sort(****)
- void #sort_custom( Object obj, String func )
- void #Array( RawArray from )
- void #Array( IntArray from )
- void #Array( RealArray from )
- void #Array( StringArray from )
- void #Array( Vector2Array from )
- void #Array( Vector3Array from )
- void #Array( ColorArray from )
Generic array, contains several elements of any type, accessible by numerical index starting at 0. Arrays are always passed by reference.
== clear ==
- void #clear(****) \ Clear the array (resize to 0). == empty ==
- bool #empty(****) \ Return true if the array is empty (size==0). == hash ==
- int #hash(****) \ Return a hashed integer value representing the array contents. == insert ==
- 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()). == push_back ==
- void #push_back( var value ) \ Append an element at the end of the array. == remove ==
- void #remove( int pos ) \ Remove an element from the array by index. == resize ==
- 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. == size ==
- int #size(****) \ Return the amount of elements in the array. == Array ==
- void #Array( RawArray from ) \ Construct an array from a rawarray. == Array ==
- void #Array( IntArray from ) \ Construct an array from a rawarray. == Array ==
- void #Array( RealArray from ) \ Construct an array from a rawarray. == Array ==
- void #Array( StringArray from ) \ Construct an array from a rawarray. == Array ==
- void #Array( Vector2Array from ) \ Construct an array from a rawarray. == Array ==
- void #Array( Vector3Array from ) \ Construct an array from a rawarray. == Array ==
- void #Array( ColorArray from ) \ Construct an array from a rawarray.