public static class Character.Array1 extends Character.Array
char
.
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.Modifier and Type | Class and Description |
---|---|
static class |
Character.Array1.Holder |
Modifier | Constructor and Description |
---|---|
|
Array1()
Create an empty one dimensional array.
|
|
Array1(char[] array)
Create a one dimensional array using the specified Java array.
|
|
Array1(int s0,
boolean isRow)
Create a one dimenstional array of the specified size, with the lower
index starting at zero.
|
|
Array1(int l0,
int u0,
boolean isRow)
Create a one dimensional array using the specified lower and upper
bounds (where both bounds are inclusive).
|
protected |
Array1(long array,
boolean owner)
Create a one dimensional array directly using the sidl pointer
and owner flag.
|
Modifier and Type | Method and Description |
---|---|
char |
_get(int i)
Get the specified array element without bounds checking.
|
void |
_set(int i,
char value)
Set the specified array element without bounds checking.
|
void |
copy(Character.Array1 dest)
Method Copy copies the elements of 'this' to an already existing
array of the same size.
|
void |
fromArray(char[] array)
Set the value of the sidl array from the Java array.
|
char |
get(int i)
Get the specified array element with bounds checking.
|
int |
length()
Routine gets length of the array
|
void |
reallocate(int l0,
int u0,
boolean isRow)
Reallocate array data using the specifed lower and upper bounds.
|
void |
set(int i,
char value)
Set the specified array element with bounds checking.
|
Character.Array1 |
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.
|
char[] |
toArray()
Convert the sidl array into a Java array.
|
_copy, _dcast, _get, _reallocate, _set, _slice
_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
public Array1()
protected Array1(long array, boolean owner)
public Array1(int l0, int u0, boolean isRow)
public Array1(int s0, boolean isRow)
public Array1(char[] array)
public int length()
public char _get(int i)
get
instead.public char get(int i)
public void reallocate(int l0, int u0, boolean isRow)
public Character.Array1 smartCopy()
public void copy(Character.Array1 dest)
public void _set(int i, char value)
set
instead.public void set(int i, char value)
public char[] toArray()
public void fromArray(char[] array)