![]() |
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 | |
| Array2D () | |
| Array2D (int rows, int cols) | |
| Element< E > | getElement (int row, int col) |
| void | setElement (int row, int col, Element< E > el) |
Public Member Functions inherited from bridges.base.Array< E > | |
| 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 () |
Public Member Functions inherited from bridges.base.DataStruct | |
| abstract String | getDataStructType () |
| abstract String | getDataStructureRepresentation () |
Additional Inherited Members | |
Protected Member Functions inherited from bridges.base.Array< E > | |
| Element< E > | getElement (int indx) |
| void | setElement (int indx, Element< E > el) |
Protected Attributes inherited from bridges.base.DataStruct | |
| String | QUOTE = "\"" |
| bridges.base.Array2D< E >.Array2D | ( | ) |
| bridges.base.Array2D< E >.Array2D | ( | int | rows, |
| int | cols | ||
| ) |
Create an array object with the specified dimensions
| rows,cols | size of the array |
| Element<E> bridges.base.Array2D< E >.getElement | ( | int | row, |
| int | col | ||
| ) |
Get the object at index x, y – for 2D arrays
| row | - row index |
| col | - column index |
| void bridges.base.Array2D< E >.setElement | ( | int | row, |
| int | col, | ||
| Element< E > | el | ||
| ) |
Set the input object at x, y - 2D arrays
| row | row index into the array |
| col | index index into the array |
| el | element object to be assigned at 'indx' |
1.8.14