default
core
corecore.PointerArrayadd(Object o) : boolean - Add the given object to the arraylist.
alloc(int max) : boolean - Allocate the given number of array elements.
containsObject(Object o) : boolean - Check whether array contains an object that equals the given object.
containsPointer(Object o) : boolean - Check whether array contains the given object address.
delete(int index) - Delete the element at the given index.
empty() - Reset the number of used elements, numElements, to 0.
free() - Free array elements.
get(int index) : Object - Return a reference to the given array element.
getDeref(int index) : Object - Return a (deletable) reference to the given array element.
getFirst() : Object - Return first array element.
getLast() : Object - Return last used array element.
getMaxElements() : int - Return the total number of elements.
getNextFree() : Object - Return a reference to the next free array element.
getNumElements() : int - Return the number of used elements.
getString() : String - Return a string representation of this array.
indexOfObject(Object o) : int - Return the index of the element that equals the given object.
indexOfPointer(Object o) : int - Return the index of the element that points to the given object.
insert(int index, Object o) : boolean - Insert the given object into the arraylist.
realloc(int max) : boolean - Resize array.
remove(Object o) : boolean - Remove the given object from the arraylist.
reverse() - Reverse element order.
setNumElements(int num) - Set the number of used elements.
swap(int indexA, indexB) : boolean - Swap two array elements.
useAll() - Mark all array elements used, i.e. set numElements = maxElements.
A "deleteme" flag is stored with each element.
Object class types may be arbitrarily mixed.
Method add | ||||||||||
Add the given object to the arraylist. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
The array will be resized as required. | ||||||||||
Method alloc | ||||||||||
Allocate the given number of array elements. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
The number of used elements, numElements, will be reset to 0. | ||||||||||
Method containsObject | ||||||||||
Check whether array contains an object that equals the given object. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method containsPointer | ||||||||||
Check whether array contains the given object address. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method delete | |||||
Delete the element at the given index. | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method empty | |||
Reset the number of used elements, numElements, to 0. | |||
Signature | |||
| |||
Description | |||
This will reset the number of used elements, numElements, back to 0. |
Method free | |||
Free array elements. | |||
Signature | |||
|
Method get | ||||||||||
Return a reference to the given array element. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
This will silently return null if "index" is out of bounds. | ||||||||||
Method getDeref | ||||||||||
Return a (deletable) reference to the given array element. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
This will silently return null if "index" is out of bounds. | ||||||||||
Method getFirst | |||||
Return first array element. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getLast | |||||
Return last used array element. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getMaxElements | |||||
Return the total number of elements. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getNextFree | |||||
Return a reference to the next free array element. | |||||
Signature | |||||
| |||||
Returns | |||||
| |||||
Description | |||||
This will increase the number of used elements, numElements. |
Method getNumElements | |||||
Return the number of used elements. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getString | |||||
Return a string representation of this array. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method indexOfObject | ||||||||||
Return the index of the element that equals the given object. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method indexOfPointer | ||||||||||
Return the index of the element that points to the given object. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method insert | ||||||||||||||||||||
Insert the given object into the arraylist. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Description | ||||||||||||||||||||
The array will be resized as required. | ||||||||||||||||||||
Method realloc | ||||||||||
Resize array. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
Element will be discarded/added as required. | ||||||||||
Method remove | ||||||||||
Remove the given object from the arraylist. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
The array will be searched for an entry matching the given object address. | ||||||||||
Method reverse | |||
Reverse element order. | |||
Signature | |||
|
Method setNumElements | |||||
Set the number of used elements. | |||||
Signature | |||||
| |||||
Arguments | |||||
| |||||
Description | |||||
This will not reallocate the array. |
Method swap | ||||||||||||||||||||
Swap two array elements. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Method useAll | |||
Mark all array elements used, i.e. set numElements = maxElements. | |||
Signature | |||
|
auto-generated by "DOG", the TkScript document generator. Sat, 31/Dec/2011 16:12:18