default
core
core
core.IntArray
add(int i)
- Add array element "i".
addArray(Object array, int off, len) : boolean
- Add the given array like object to this array.
addEmpty(int num) : int
- Increase numElements by "num".
alloc(int max) : int
- Allocate the given number of array elements.
contains(int i) : boolean
- Check whether array contains the given integer value.
copyFrom(IntArray src, int off, len, destOff)
- Copy elements from other array.
dec(int idx)
- Decrement element at index 'idx'.
delete(int index) : boolean
- Delete element at index "index".
empty()
- Reset the number of used elements, numElements, to 0.
fill(int i)
- Set all used array elements to value "i".
free()
- Free array elements.
get(index index) : int
- Return element at index "index".
getAbsMax() : int
- Return biggest array element, not regarding sign.
getAbsMean() : float
- Return average element value, not regarding sign.
getAbsMin() : int
- Return smallest array element, not regarding sign.
getFirst() : int
- Return first array element.
getLast() : int
- Return last used array element.
getMax() : int
- Return biggest array element.
getMaxElements() : int
- Return total number of array elements.
getMean() : float
- Return average element value.
getMin() : int
- Return smallest array element.
getNumElements() : int
- Return number of used array elements.
getString() : String
- Return string representation of this array.
identity(int num)
- Reallocate array to "num" elements and set element[i] to i.
inc(int idx)
- Increment element at index 'idx'.
indexOf(int i, off) : int
- Return index of element with value "i". -1 if no matching element was found.
insert(int index, i) : boolean
- Insert new array element "i" before index "index".
join(Object a, b)
- Join arrays 'a' and 'b'.
read16(Stream ifs, int num, destOff) : int
- Read a sequence of 16bit short integers from the given input stream.
read32(Stream ifs, int num, destOff) : int
- Read a sequence of 32bit integers from the given input stream.
read8(Stream ifs, int num, destOff) : int
- Read a sequence of bytes from the given input stream.
realloc(int num) : boolean
- Reallocate array.
rearrange(IntArray order) : boolean
- Reorder elements according to given element order.
replace(int a, b)
- Replace all occurences of 'a' with 'b' and return number of elements replaced.
reverse()
- Reverse element order.
setNumElements(int num)
- Set number of used elements to "num".
sortByValue(IntArray r)
- Sort elements by value and return new element order in "r".
swap(int indexA, indexB) : boolean
- Swap two elements.
swapByteOrder()
- Swap byteorder of all elements.
useAll()
- Mark all array elements used, i.e. set numElements = maxElements.
visit(IntArray src, int off, num)
- Create a view into another IntArray object.
visitBytes(Object src, int off, num) : boolean
- Create a view into another array-like object.
write16(Stream ifs, int num, srcOff) : int
- Write a sequence of 16bit short integers to the given output stream.
write32(Stream ifs, int num, srcOff) : int
- Write a sequence of 32bit integers to the given output stream.
write8(Stream ifs, int num, srcOff) : int
- Write a sequence of 8bit bytes to the given output stream.
Method add | |||||
Add array element "i". | |||||
Signature | |||||
| |||||
Arguments | |||||
| |||||
Description | |||||
The array will be re-allocated if necessary. The numElements member will be incremented. |
Method addArray | |||||||||||||||||||||||||
Add the given array like object to this array. | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Description | |||||||||||||||||||||||||
Resize array if necessary. |
Method addEmpty | ||||||||||
Increase numElements by "num". | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
|
Method alloc | ||||||||||
Allocate the given number of array elements. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
The numElements member will be set to 0 after allocation and the maxElements member will be set to "max". |
Method contains | ||||||||||
Check whether array contains the given integer value. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
|
Method copyFrom | |||||||||||||||||||||||||
Copy elements from other array. | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
|
Method dec | |||||
Decrement element at index 'idx'. | |||||
Signature | |||||
| |||||
Arguments | |||||
| |||||
Description | |||||
If the index is out of bounds, simply do nothing. |
Method delete | ||||||||||
Delete element at index "index". | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
|
Method empty | |||
Reset the number of used elements, numElements, to 0. | |||
Signature | |||
|
Method fill | |||||
Set all used array elements to value "i". | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method free | |||
Free array elements. | |||
Signature | |||
|
Method get | ||||||||||
Return element at index "index". | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
Silently return 0 if index is out of bounds. |
Method getAbsMax | |||||
Return biggest array element, not regarding sign. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getAbsMean | |||||
Return average element value, not regarding sign. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getAbsMin | |||||
Return smallest array element, not regarding sign. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getFirst | |||||
Return first array element. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getLast | |||||
Return last used array element. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getMax | |||||
Return biggest array element. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getMaxElements | |||||
Return total number of array elements. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getMean | |||||
Return average element value. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getMin | |||||
Return smallest array element. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getNumElements | |||||
Return number of used array elements. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getString | |||||
Return string representation of this array. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method identity | |||||
Reallocate array to "num" elements and set element[i] to i. | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method inc | |||||
Increment element at index 'idx'. | |||||
Signature | |||||
| |||||
Arguments | |||||
| |||||
Description | |||||
If the index is out of bounds, simply do nothing. |
Method indexOf | ||||||||||||||||||||
Return index of element with value "i". -1 if no matching element was found. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
|
Method insert | ||||||||||||||||||||
Insert new array element "i" before index "index". | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Description | ||||||||||||||||||||
The array will be resized if necessary. |
Method join | |
Join arrays 'a' and 'b'. | |
Signature | |
Arguments | |
Method read16 | |||||||||||||||||||||||||
Read a sequence of 16bit short integers from the given input stream. | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Description | |||||||||||||||||||||||||
The shorts will be extended to 32bit integers. |
Method read32 | |||||||||||||||||||||||||
Read a sequence of 32bit integers from the given input stream. | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
|
Method read8 | |||||||||||||||||||||||||
Read a sequence of bytes from the given input stream. | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Description | |||||||||||||||||||||||||
The bytes will be extended to 32bit integers. |
Method realloc | ||||||||||
Reallocate array. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
Array elements will be discarded if the new array size is smaller than the current size. New array elements are added if the new array size is smaller than the current size. |
Method rearrange | ||||||||||
Reorder elements according to given element order. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
|
Method replace | |||||||||||||||
Replace all occurences of 'a' with 'b' and return number of elements replaced. | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
|
Method reverse | |||
Reverse element order. | |||
Signature | |||
|
Method setNumElements | |||||
Set number of used elements to "num". | |||||
Signature | |||||
| |||||
Arguments | |||||
| |||||
Description | |||||
"num" is clamped to 0 resp. to the maxElements member. |
Method sortByValue | |||||
Sort elements by value and return new element order in "r". | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method swap | ||||||||||||||||||||
Swap two elements. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
|
Method swapByteOrder | |||
Swap byteorder of all elements. | |||
Signature | |||
|
Method useAll | |||
Mark all array elements used, i.e. set numElements = maxElements. | |||
Signature | |||
|
Method visit | ||||||||||||||||||||
Create a view into another IntArray object. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
|
Method visitBytes | |||||||||||||||||||||||||
Create a view into another array-like object. | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Description | |||||||||||||||||||||||||
Keep in mind not to delete the "src" array while this object is still alive! |
Method write16 | |||||||||||||||||||||||||
Write a sequence of 16bit short integers to the given output stream. | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Description | |||||||||||||||||||||||||
The array elements will be truncated to 16bit. |
Method write32 | |||||||||||||||||||||||||
Write a sequence of 32bit integers to the given output stream. | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
|
Method write8 | |||||||||||||||||||||||||
Write a sequence of 8bit bytes to the given output stream. | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Description | |||||||||||||||||||||||||
The array elements will be truncated to 8bit. |
auto-generated by "DOG", the TkScript document generator. Mon, 28/Dec/2015 13:15:54