|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.llnl.sidl.BaseArray
sidl.Integer.Array
Define a one dimensional array of type int
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 | |
static class |
Integer.Array.Holder
|
Field Summary |
Fields inherited from class gov.llnl.sidl.BaseArray |
d_array, d_owner |
Constructor Summary | |
|
Integer.Array()
Construct an empty array object. |
|
Integer.Array(int dim,
int[] lower,
int[] upper,
boolean isRow)
Create an array with the specified lower and upper bounds. |
protected |
Integer.Array(long array,
boolean owner)
Create an array using an IOR array pointer. |
Method Summary | |
void |
_addRef()
Native function to add a reference count to the IOR of this array Not for users, for internal Babel use only. |
void |
_copy(Integer.Array dest)
Method Copy copies the elements of 'this' to an already existing array of the same size. |
Integer.Array |
_dcast()
Casts this array to an array of a defined dimension and returns the resulting array. |
void |
_deallocate()
Deallocate deletes java's reference to the array (calls deleteRef) But does not (nessecarily) case the array to be GCed. |
void |
_destroy()
Native routine to destroy (deallocate) the current array data. |
int |
_dim()
Native routine to get the dimension of the current array. |
int |
_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. |
boolean |
_isColumnOrder()
Abstract method returns true if array is ColumnOrder. |
boolean |
_isRowOrder()
Abstract method returns true if array if RowOrder. |
int |
_length(int dim)
Routine gets the length of the array in the specified dimension. |
int |
_lower(int dim)
Native routine to fetch the specified lower bound of the array. |
void |
_reallocate(int dim,
int[] lower,
int[] upper,
boolean isRow)
Native routine to reallocate data in the array. |
void |
_set(int i,
int j,
int k,
int l,
int m,
int n,
int o,
int value)
Native routine to set the specified value in the array. |
Integer.Array |
_slice(int dimen,
int[] numElem,
int[] srcStart,
int[] srcStride,
int[] newStart)
Slice returns an array that is <= the orignial array. |
Integer.Array |
_smartCopy()
Method smartCopy returns a a copy of a borrowed array, or increments the reference count of an array that manages it's own data. |
int |
_stride(int dim)
Abstract method to fetch the stride of the specified dimen of the array. |
int |
_upper(int dim)
Native routine to fetch the specified upper bound of the array. |
Methods inherited from class gov.llnl.sidl.BaseArray |
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 |
public Integer.Array()
realllocate
before any actions are performed on the
array data.
protected Integer.Array(long array, boolean owner)
public Integer.Array(int dim, int[] lower, int[] upper, boolean isRow)
Method Detail |
public int _dim()
_dim
in class BaseArray
public int _lower(int dim)
_lower
in class BaseArray
public int _upper(int dim)
_upper
in class BaseArray
public int _stride(int dim)
_stride
in class BaseArray
public int _length(int dim)
public boolean _isColumnOrder()
_isColumnOrder
in class BaseArray
public boolean _isRowOrder()
_isRowOrder
in class BaseArray
public int _get(int i, int j, int k, int l, int m, int n, int o)
public void _set(int i, int j, int k, int l, int m, int n, int o, int value)
public void _addRef()
_addRef
in class BaseArray
public void _deallocate()
_deallocate
in class BaseArray
public void _destroy()
_destroy
in class BaseArray
public void _reallocate(int dim, int[] lower, int[] upper, boolean isRow)
_reallocate
in class BaseArray
public Integer.Array _slice(int dimen, int[] numElem, int[] srcStart, int[] srcStride, int[] newStart)
public Integer.Array _smartCopy()
public void _copy(Integer.Array dest)
public Integer.Array _dcast()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |