sidl
Class Enum.Array

java.lang.Object
  extended by gov.llnl.sidl.BaseArray
      extended by sidl.Long.Array
          extended by sidl.Enum.Array
Direct Known Subclasses:
Enum.Array1, Enum.Array2, Enum.Array3, Enum.Array4, Enum.Array5, Enum.Array6, Enum.Array7
Enclosing class:
Enum

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
 
Field Summary
 
Fields inherited from class gov.llnl.sidl.BaseArray
d_array, d_owner
 
Constructor Summary
  Enum.Array()
          Construct an empty array object.
  Enum.Array(int dim, int[] lower, int[] upper, boolean isRow)
          Create an array with the specified lower and upper bounds.
protected Enum.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()
          Casts this array to an array of a defined dimension and returns the resulting array.
 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, _reallocate
 
Methods inherited from class gov.llnl.sidl.BaseArray
_addRef, _deallocate, _destroy, _dim, _isColumnOrder, _isRowOrder, _length, _lower, _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
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Enum.Array

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


Enum.Array

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


Enum.Array

public Enum.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.

Method Detail

_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 class 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 class 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 class Long.Array

_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()
Description copied from class: Long.Array
Casts this array to an array of a defined dimension and returns the resulting array. (You might want to deallocate the original array. Argument dimen determines what dimension array to cast this array to.

Overrides:
_dcast in class Long.Array