![]() |
Bridges-Java-3.0.2
3.0.2
Bridges(JavaAPI)
|
This is a class can be used to create 1 dimensional arrays of type Element<E>.
This class can be used to create 1D arrays of type Element<E> where E is a generic object representing application specific data.
Array1D has iterator semantic to enable range for loops. For instance,
| <E> | The generic parameter object that is part of this element, representing application specific data. |
Public Member Functions | |
| Array1D () | |
| Array1D (int sz) | |
| Element< E > | getElement (int indx) |
| void | setElement (int indx, Element< E > el) |
| Iterator< E > | iterator () |
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.Array1D< E >.Array1D | ( | ) |
| bridges.base.Array1D< E >.Array1D | ( | int | sz | ) |
Create a 1D array object
| sz | number of elements in the array |
| Element<E> bridges.base.Array1D< E >.getElement | ( | int | indx | ) |
Get the object at 'indx'
| indx | index into the array |
| Iterator<E> bridges.base.Array1D< E >.iterator | ( | ) |
| void bridges.base.Array1D< E >.setElement | ( | int | indx, |
| Element< E > | el | ||
| ) |
Set the input object at 'indx' - for 1D array
| indx | index into the array |
| el | element object to be assigned at 'indx' |
1.8.14