sidl

Class Enum.Array

Enclosing Class:
Enum
Known Direct Subclasses:
Enum.Array1, Enum.Array2, Enum.Array3, Enum.Array4, Enum.Array5, Enum.Array6, Enum.Array7

public static class Enum.Array
extends Long.Array

Define a one dimensional array of type long for the sidl Java run-time. Many of these methods will throw array index exceptions if the specified indices are out of bounds.

Nested Class Summary

Nested classes/interfaces inherited from class sidl.Long.Array

Long.Array.Holder

Nested classes/interfaces inherited from class gov.llnl.sidl.BaseArray

BaseArray.Holder

Field Summary

Fields inherited from class gov.llnl.sidl.BaseArray

d_array, d_owner

Constructor Summary

Array()
Construct an empty array object.
Array(int dim, int[] lower, int[] upper, boolean isRow)
Create an array with the specified lower and upper bounds.
Array(long array, boolean owner)
Create an array using an IOR array pointer.

Method Summary

void
_copy(Enum.Array dest)
copies the elements from this array to dest.
Long.Array
_dcast()
long
_get(int i, int j, int k, int l, int m, int n, int o)
Native routine to fetch the specified value from the array.
void
_set(int i, int j, int k, int l, int m, int n, int o, long value)
Native routine to set the specified value in the array.
Long.Array
_slice(int dimen, int[] numElem, int[] srcStart, int[] srcStride, int[] newStart)
Routine to return an array based on this one, but slice according to your instructions

Methods inherited from class sidl.Long.Array

_copy, _dcast, _get, _reallocate, _set, _slice

Methods inherited from class gov.llnl.sidl.BaseArray

_addRef, _deallocate, _destroy, _dim, _isColumnOrder, _isRowOrder, _length, _lower, _reallocate, _smartCopy, _stride, _type, _upper, checkBounds, checkBounds, checkBounds, checkBounds, checkBounds, checkBounds, checkBounds, checkDimension, checkIndexBounds, checkNullArray, destroy, dim, finalize, get_ior_pointer, get_owner, isNull, lower, reallocate, reset, set_ior_pointer, set_owner, stride, upper

Constructor Details

Array

public Array()
Construct an empty array object. This array object must be allocated with realllocate before any actions are performed on the array data.

Array

public Array(int dim,
             int[] lower,
             int[] upper,
             boolean isRow)
Create an array with the specified lower and upper bounds. The upper bounds are inclusive. An array out of bounds exception is thrown if the array bounds or dimension are invalid.

Array

protected Array(long array,
                boolean owner)
Create an array using an IOR array pointer. The pointer value may be zero (representing null).

Method Details

_copy

public void _copy(Enum.Array dest)
copies the elements from this array to dest. ARRAYS MUST BE THE SAME SIZE.

_dcast

public Long.Array _dcast()
Overrides:
_dcast in interface Long.Array

_get

public long _get(int i,
                 int j,
                 int k,
                 int l,
                 int m,
                 int n,
                 int o)
Native routine to fetch the specified value from the array. The specified array index/indices must be lie between the array lower upper bounds (inclusive). Invalid indices will have unpredictable (but almost certainly bad) results.
Overrides:
_get in interface Long.Array

_set

public void _set(int i,
                 int j,
                 int k,
                 int l,
                 int m,
                 int n,
                 int o,
                 long value)
Native routine to set the specified value in the array. The specified array index/indices must be lie between the array lower upper bounds (inclusive). Invalid indices will have unpredictable (but almost certainly bad) results.
Overrides:
_set in interface Long.Array

_slice

public Long.Array _slice(int dimen,
                         int[] numElem,
                         int[] srcStart,
                         int[] srcStride,
                         int[] newStart)
Routine to return an array based on this one, but slice according to your instructions
Overrides:
_slice in interface Long.Array