default
core
corecore.ValueArrayadd(Value val) - Add new Value.
addVoid() - Add void value.
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() - Delete Value at index
empty() - Reset number of elements.
free() - Free all array elements.
get(int index) : var - Return the given array element.
getDeref(int index) : var - Return the given (deletable) array element.
getFirst() : var - Return first array element.
getLast() : var - Return last used array element.
getMaxElements() : int - Return the total number of elements.
getNumElements() : int - Return the number of used elements, numElements.
getRev(int index) : var - Return the array element at (numElements - 1 - index).
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() - Insert Value at index
isEmpty() : boolean - Check if array is empty (numElements == 0).
joinArrays(Object a, b, boolean bCopyA, bCopyB, bUnlinkA, bUnlinkB) : boolean - Join arrays 'a' and 'b'.
joinCC(Object a, b) : boolean - Join arrays a and b. Copy elements.
joinCD(Object a, b) : boolean - Join arrays a and b. Copy 'A' elements, dereference 'B' elements.
joinCR(Object a, b) : boolean - Join arrays a and b. Copy 'A' elements, reference 'B' elements.
joinDC(Object a, b) : boolean - Join arrays a and b. Dereference 'A' elements, copy 'B' elements.
joinDD(Object a, b) : boolean - Join arrays a and b. Dereference elements.
joinDR(Object a, b) : boolean - Join arrays a and b. Dereference 'A' elements, reference 'B' elements.
joinRC(Object a, b) : boolean - Join arrays a and b. Reference 'A' elements, copy 'B' elements.
joinRD(Object a, b) : boolean - Join arrays a and b. Reference 'A' elements, dereference 'B' elements.
joinRR(Object a, b) : boolean - Join arrays a and b. Reference elements.
realloc(int max) : boolean - Resize array.
reverse() - Reverse element order
set(int index, Object val) - Set element at "index" to "val".
setNumElements(int num) - Set the number of used elements.
setRev(int index, Object val) - Set element at (numElements - 1 - index) to "val".
swap(int indexB) : boolean - Swap two array elements.
useAll() - Mark all array elements used, i.e. set numElements = maxElements.
Method addVoid | |||
Add void value. | |||
Signature | |||
|
Method alloc | ||||||||||
Allocate the given number of array elements. | ||||||||||
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 Value at index | |||
Signature | |||
|
Method empty | |||
Reset number of elements. | |||
Signature | |||
|
Method free | |||
Free all array elements. | |||
Signature | |||
|
Method get | ||||||||||
Return the given array element. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
Silently return void if the given index is out of bounds. | ||||||||||
Method getDeref | ||||||||||
Return the given (deletable) array element. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
Silently return void if the given 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 getNumElements | |||||
Return the number of used elements, numElements. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getRev | ||||||||||
Return the array element at (numElements - 1 - index). | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
Silently return void if the given index is out of bounds. | ||||||||||
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 Value at index | |||
Signature | |||
|
Method isEmpty | |||||
Check if array is empty (numElements == 0). | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method joinArrays | ||||||||||||||||||||||||
Join arrays 'a' and 'b'. | ||||||||||||||||||||||||
Signature | ||||||||||||||||||||||||
Arguments | ||||||||||||||||||||||||
| ||||||||||||||||||||||||
Returns | ||||||||||||||||||||||||
| ||||||||||||||||||||||||
Description | ||||||||||||||||||||||||
If none of the copy/unlink flags is set, object values will be copied by reference. In case that 'a' or 'b' is 'this', object values will always be unlinked ("deref"). The joinCC(), joinCR(), joinCD(), joinRR(), joinRC(), joinRC(), joinRD(), joinDD(), joinDC(), joinDC() are providedfor reasons of convenience (permutations of the copyA/copyB/unlinkA/unlinkB arguments).
(C=copy, R=reference, D=deref (unlink)) |
Method joinCC | |||
Join arrays a and b. Copy elements. | |||
Signature | |||
Arguments | |||
Returns | |||
|
Method joinCD | |||
Join arrays a and b. Copy 'A' elements, dereference 'B' elements. | |||
Signature | |||
Arguments | |||
Returns | |||
|
Method joinCR | |||
Join arrays a and b. Copy 'A' elements, reference 'B' elements. | |||
Signature | |||
Arguments | |||
Returns | |||
|
Method joinDC | |||
Join arrays a and b. Dereference 'A' elements, copy 'B' elements. | |||
Signature | |||
Arguments | |||
Returns | |||
|
Method joinDD | |||
Join arrays a and b. Dereference elements. | |||
Signature | |||
Arguments | |||
Returns | |||
|
Method joinDR | |||
Join arrays a and b. Dereference 'A' elements, reference 'B' elements. | |||
Signature | |||
Arguments | |||
Returns | |||
|
Method joinRC | |||
Join arrays a and b. Reference 'A' elements, copy 'B' elements. | |||
Signature | |||
Arguments | |||
Returns | |||
|
Method joinRD | |||
Join arrays a and b. Reference 'A' elements, dereference 'B' elements. | |||
Signature | |||
Arguments | |||
Returns | |||
|
Method joinRR | |||
Join arrays a and b. Reference elements. | |||
Signature | |||
Arguments | |||
Returns | |||
|
Method realloc | ||||||||||
Resize array. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
Elements will be discarded/added as required. | ||||||||||
Method reverse | |||
Reverse element order | |||
Signature | |||
|
Method set | |||||||||||||||
Set element at "index" to "val". | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
| |||||||||||||||
Description | |||||||||||||||
Updates numElements when index exceeds it (>=).
Silently do nothing when index exceed array size (>= maxElements). Transfers pointer ownership if "val" is a Value object which stores a deletable object. |
Method setNumElements | |||||
Set the number of used elements. | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setRev | |||||||||||||||
Set element at (numElements - 1 - index) to "val". | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
| |||||||||||||||
Description | |||||||||||||||
Silently do nothing when index exceed array size (>= maxElements). Transfers pointer ownership if "val" is a Value object which stores a deletable object. |
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. Thu, 11/Dec/2025 13:41:59