![]() |
Bridges-Java-3.0.1
3.0.1
Bridges(JavaAPI)
|
This class can be used to create two dimensional arrays of type Element<E>.
This class can be used to create three dimensional 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 | |
Array3D () | |
Array3D (int[] dims) | |
Array3D (int slices, int rows, int cols) | |
Element< E > | getElement (int slice, int row, int col) |
void | setElement (int slice, int row, int col, Element< E > el) |
![]() | |
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 () |
Additional Inherited Members | |
![]() | |
Element< E > | getElement (int indx) |
void | setElement (int indx, Element< E > el) |
![]() | |
String | QUOTE = "\"" |
bridges.base.Array3D< E >.Array3D | ( | ) |
bridges.base.Array3D< E >.Array3D | ( | int [] | dims | ) |
Create an array object with the specified dimensions
dims | size of each dimension |
bridges.base.Array3D< E >.Array3D | ( | int | slices, |
int | rows, | ||
int | cols | ||
) |
Create an array object with the specified dimensions
cols | number of columns |
rows | number of rows |
slices | number of slices |
Element<E> bridges.base.Array3D< E >.getElement | ( | int | slice, |
int | row, | ||
int | col | ||
) |
Get the object at slice, row, column – for 3D arrays
slice | - slice index |
row | - row index |
col | - column index |
void bridges.base.Array3D< E >.setElement | ( | int | slice, |
int | row, | ||
int | col, | ||
Element< E > | el | ||
) |
Set the input object at 'col, row, slice'
col | column index into the array |
row | row index into the array |
slice | slice index into the array |
el | element object to be assigned at 'indx' |