Bridges-Java
3.4.3
Bridges(Java API)
|
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 () |
Additional Inherited Members | |
Protected Attributes inherited from bridges.base.DataStruct | |
String | QUOTE = "\"" |
Package Attributes inherited from bridges.base.DataStruct | |
String | COMMA = "," |
String | COLON = ":" |
String | OPEN_CURLY = "{" |
String | CLOSE_CURLY = "}" |
String | OPEN_PAREN = "(" |
String | CLOSE_PAREN = ")" |
String | OPEN_BOX = "[" |
String | CLOSE_BOX = "]" |
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 |
Reimplemented from bridges.base.Array< E >.
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' |
Reimplemented from bridges.base.Array< E >.