Array<E> implements an arrays in BRIDGES, and it can be used to create arrays of any generic type; Bridges Arrays support uptto 3 dimensions. The setDimensions() method is used to set the array dimensions, which also allocates storage. Bridges creates arrays of Element<E>, which can be used to set visual properties.
See also
This tutorial gives an introduction to the usage of arrays. You can find the complete documentation of the features in the Doxygen documentation of the following classes and functions:
- Array1D [Java] [C++] [Python]
- Array2D [Java] [C++] [Python]
- Array3D [Java] [C++] [Python]
- Element [Java] [C++] [Python]
Array - Example BRIDGES Programs (1D, 2D, 3D)
Java
C++
Python
Bridges Visualization
- Once all your code is in order, run your file.
- Assuming all your code is correct and it compiles correctly, a link to the Bridges website will be generated on the console.
- Copy/paste this link into your favorite browser to view a visualization of the data structure you just created.
- It should look something like this:
Well done! You’ve just created your Bridges Array project!