![]() |
Bridges-Java-3.0.2
3.0.2
Bridges(JavaAPI)
|
This class can be used to create arrays of type Element<E>.
This class can be used to create arrays of type Element<E> where E is a generic object representing application specific data.
Arrays are internally represented as 1D arrays; currently 1D, 2D and 3D arrays are supported.
<E> | The generic parameter object that is part of this element, representing application specific data. |
Public Member Functions | |
Array () | |
Array (int num_dims, int[] dims) | |
String | getDataStructType () |
void | setNumDimensions (int nd) |
int | getNumDimensions () |
void | setSize (int nd, int[] dim) |
Set the size of each dimensions; also allocates array space. More... | |
void | getDimensions (int[] dim) |
Get the size of each dimensions;. More... | |
int | getSize () |
String | getDataStructureRepresentation () |
![]() | |
abstract String | getDataStructType () |
abstract String | getDataStructureRepresentation () |
Protected Member Functions | |
Element< E > | getElement (int indx) |
void | setElement (int indx, Element< E > el) |
Additional Inherited Members | |
![]() | |
String | QUOTE = "\"" |
bridges.base.Array< E >.Array | ( | ) |
bridges.base.Array< E >.Array | ( | int | num_dims, |
int [] | dims | ||
) |
Create an array object with the specified dimensions
num_dims | number of dimensions of the array |
dims | size of each dimension |
String bridges.base.Array< E >.getDataStructType | ( | ) |
This method gets the data structure type
String bridges.base.Array< E >.getDataStructureRepresentation | ( | ) |
void bridges.base.Array< E >.getDimensions | ( | int [] | dim | ) |
Get the size of each dimensions;.
[out] | dim | size of each dimension is returned |
|
protected |
Get the object at 'indx'
indx | index into the array |
int bridges.base.Array< E >.getNumDimensions | ( | ) |
Get the number of dimensions of the array;
int bridges.base.Array< E >.getSize | ( | ) |
Get the array size
|
protected |
Set the input object at 'indx' - for 1D array
indx | index into the array |
el | element object to be assigned at 'indx' |
void bridges.base.Array< E >.setNumDimensions | ( | int | nd | ) |
Set the number of dimensions of the array;
nd | number of dimensions |
void bridges.base.Array< E >.setSize | ( | int | nd, |
int [] | dim | ||
) |
Set the size of each dimensions; also allocates array space.
nd | number of dimension |
dim | size of each dimension |