|
|||||||||
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
sidl.Integer.Array2
public static class Integer.Array2
Define a two dimensional array of type int
.
This array representation is used for sidl arrays since it requires
no copies to go between Java and sidl. Explicit copies may be made
of the array by calling the appropriate get
and
set
methods.
Nested Class Summary | |
---|---|
static class |
Integer.Array2.Holder
|
Field Summary |
---|
Fields inherited from class gov.llnl.sidl.BaseArray |
---|
d_array, d_owner |
Constructor Summary | |
---|---|
|
Integer.Array2()
Create an empty two dimensional array. |
|
Integer.Array2(int[][] array)
Create a two dimensional array using the specified Java array. |
|
Integer.Array2(int s0,
int s1,
boolean isRow)
Create a two dimenstional array of the specified size, with the lower index starting at zero. |
|
Integer.Array2(int l0,
int l1,
int u0,
int u1,
boolean isRow)
Create a two dimensional array using the specified lower and upper bounds (where both bounds are inclusive). |
protected |
Integer.Array2(long array,
boolean owner)
Create a two dimensional array directly using the sidl pointer and owner flag. |
Method Summary | |
---|---|
int |
_get(int i,
int j)
Get the specified array element without bounds checking. |
void |
_set(int i,
int j,
int value)
Set the specified array element without bounds checking. |
void |
copy(Integer.Array2 dest)
Method Copy copies the elements of 'this' to an already existing array of the same size. |
void |
fromArray(int[][] array)
Set the value of the sidl array from the Java array. |
int |
get(int i,
int j)
Get the specified array element with bounds checking. |
int |
length(int dim)
Routine gets length of the array in the specified dimension |
void |
reallocate(int l0,
int l1,
int u0,
int u1,
boolean isRow)
Reallocate array data using the specifed lower and upper bounds. |
void |
set(int i,
int j,
int value)
Set the specified array element with bounds checking. |
Integer.Array2 |
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[][] |
toArray()
Convert the sidl array into a Java array. |
Methods inherited from class sidl.Integer.Array |
---|
_copy, _dcast, _get, _reallocate, _set, _slice |
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 |
---|
public Integer.Array2()
protected Integer.Array2(long array, boolean owner)
public Integer.Array2(int l0, int l1, int u0, int u1, boolean isRow)
public Integer.Array2(int s0, int s1, boolean isRow)
public Integer.Array2(int[][] array)
Method Detail |
---|
public int length(int dim)
public int _get(int i, int j)
get
instead.
public int get(int i, int j)
public void reallocate(int l0, int l1, int u0, int u1, boolean isRow)
public Integer.Array2 smartCopy()
public void copy(Integer.Array2 dest)
public void _set(int i, int j, int value)
set
instead.
public void set(int i, int j, int value)
public int[][] toArray()
public void fromArray(int[][] array)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |