default
core
core
core.ClassArray
add(Class c) : boolean
- Add the given scriptclass instance to this array.
alloc(int max) : boolean
- Allocate the given number of array elements.
contains(Class c) : boolean
- Check whether this array contains a scriptclass instance that equals the given object.
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) : boolean
- Delete the given array element.
empty()
- Reset number of used elements, numElements, to 0.
free()
- Free array elements.
get(int index) : Class
- Return the given array element.
getDeref(int index) : Class
- Unlink and return the given (deletable) array element.
getMaxElements() : int
- Return total number of elements.
getNextFree() : Class
- Return next free element.
getNumElements() : int
- Return number of used elements.
getTemplate() : Class
- Return the template object that is currently being used to allocate new array elements.
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, Class c) : boolean
- Insert the given scriptclass instance into the array.
realloc(int max) : boolean
- Reallocate array elements.
remove(Class c) : boolean
- Delete the first element whose pointer equals the given scriptclass instance.
reverse()
- Reverse element order.
setNumElements(int num)
- Set number of used elements.
setTemplate(Class sci)
- Set the template object that shall be used to allocate new array elements.
swap(int indexA, indexB) : boolean
- Swap two array elements.
useAll()
- Mark all array elements used, i.e. set numElements = maxElements.
Method add | ||||||||||
Add the given scriptclass instance to this array. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
The array will be resized if necessary. |
Method alloc | ||||||||||
Allocate the given number of array elements. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
The number of used element, numElements, will be reset to 0. |
Method contains | ||||||||||
Check whether this array contains a scriptclass instance that equals the given object. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
|
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 given array element. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
|
Method empty | |||
Reset number of used elements, numElements, to 0. | |||
Signature | |||
|
Method free | |||
Free array elements. | |||
Signature | |||
|
Method get | ||||||||||
Return the given array element. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
Silently return null if "index" is out of bounds. |
Method getDeref | ||||||||||
Unlink and return the given (deletable) array element. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
|
Method getMaxElements | |||||
Return total number of elements. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getNextFree | |||||
Return next free element. | |||||
Signature | |||||
| |||||
Returns | |||||
| |||||
Description | |||||
Increase the number of used elements, numElements. |
Method getNumElements | |||||
Return number of used elements. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getTemplate | |||||
Return the template object that is currently being used to allocate new array elements. | |||||
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 scriptclass instance into the array. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
Returns | ||||||||||||||||||||
|
Method realloc | ||||||||||
Reallocate array elements. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
Discard/add new elements as required. |
Method remove | ||||||||||
Delete the first element whose pointer equals the given scriptclass instance. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
|
Method reverse | |||
Reverse element order. | |||
Signature | |||
|
Method setNumElements | |||||
Set number of used elements. | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setTemplate | |||||
Set the template object that shall be used to allocate new array elements. | |||||
Signature | |||||
| |||||
Arguments | |||||
|
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. Mon, 28/Dec/2015 13:15:54