Torque 3D 3.7
ContentsIndexHome
PreviousUpNext
ArrayObject Methods

The methods of the ArrayObject class are listed here.

 
Name 
Description 
 
 
 
This is _keyCompare, a member of class ArrayObject. 
 
This is _keyFunctionCompare, a member of class ArrayObject. 
 
This is _keyNumCompare, a member of class ArrayObject. 
 
This is _valueCompare, a member of class ArrayObject. 
 
This is _valueFunctionCompare, a member of class ArrayObject. 
 
This is _valueNumCompare, a member of class ArrayObject. 
 
Name 
Description 
 
Appends the target array to our current array 
 
Counts the number of elements in the array 
 
Counts the number of instances of a particular key in the array
 
 
Counts the number of instances of a particular value in the array
 
 
crop 
Crops the keys that exists in the target array from our current array
 
 
This is DECLARE_CATEGORY, a member of class ArrayObject. 
 
 
This is DECLARE_DESCRIPTION, a member of class ArrayObject. 
 
Makes this array an exact duplicate of another array 
 
echo 
Echos the content of the array to the console.
 
 
Clears an array
 
 
Removes an array item from a particular index of the array
 
 
Returns current pointer index. 
 
Searches the array for the first matching key from the current array position. It will return -1 if no matching index found.
 
 
 
 
Searches the array for the first matching value from the current array position. It will return -1 if no matching index is found.
 
 
Returns the key for a given index. Will return a null value for an invalid index
 
 
Returns the value for a given index. Will return a null value for an invalid index
 
 
 
 
Adds a new array item to a particular index of the array
 
 
Returns true if string handling by the array is case-sensitive. 
 
This is isEqual, a member of class ArrayObject. 
 
Moves pointer to arrays first position
 
 
Moves a key and value from one index location to another.
 
 
Moves pointer to arrays last position
 
 
Moves pointer to arrays next position If last position it returns -1 and no move occurs;
 
 
Moves pointer to arrays prev position If first position it returns -1 and no move occurs;
 
 
Removes an array item from the end of the array
 
 
Removes an array item from the end of the array
 
 
Adds a new array item to the end of the array
 
 
Adds a new array item to the front of the array
 
 
 
 
Sets the key at the given index
 
 
Sets the key at the given index
 
 
sort 
This is the overview for the sort method overload. 
 
Removes any duplicate keys from the array (keeps the first instance only)
 
 
Removes any duplicate values from the array (keeps the first instance only)
 
Copyright (c) 2015. All rights reserved.
What do you think about this topic? Send feedback!