![]() |
Bridges-C++
3.1.1
Bridges(C++API)
|
#include <Array3D.h>
A BRIDGES array type.
This class can be used to create 3D arrays of any type.
The access to the values stored are done directly using bracket operators such as
Entries in the array can be styled by showing a label and changing the color of an entry. This is achieved by styling the underlying element to a particular entry of the array such as:
| E | the application data type |
Classes | |
| struct | Bracket_helper |
| helper class to make [][] operators work on array 2d. You should never use it directly More... | |
| struct | Bracket_helper2 |
| struct | Bracket_helper2_const |
| struct | Bracket_helper_const |
| helper class to make [][] operators work on array 2d. You should never use it directly More... | |
Public Member Functions | |
| virtual | ~Array3D () |
| Array3D (int slices, int rows, int columns) | |
| int | getNumRows () |
| int | getNumColumns () |
| int | getNumSlices () |
| Element< E > & | getElement (int slice, int row, int col) |
| Element< E > const & | getElement (int slice, int row, int col) const |
| void | setElement (int slice, int row, int col, Element< E > el) |
| Bracket_helper | operator[] (int index) |
| enables using the bracket [] operator More... | |
| Bracket_helper_const | operator[] (int index) const |
| enables using the bracket [] operator More... | |
Public Member Functions inherited from bridges::datastructure::Array< E > | |
| virtual const string | getDStype () const override |
| virtual const string | getDataStructureRepresentation () const override final |
| Array (const Array &)=delete | |
| Array & | operator= (const Array &)=delete |
Public Member Functions inherited from bridges::datastructure::DataStructure | |
| virtual | ~DataStructure ()=default |
Additional Inherited Members | |
Protected Member Functions inherited from bridges::datastructure::Array< E > | |
| Array () | |
| virtual | ~Array () |
| Array (int sz) | |
| builds an array given the dimensions More... | |
| void | setSize (int nd, int *dim) |
| Set the size of the array. More... | |
| void | getDimensions (int *dim) |
| Get the dimensions of the array. More... | |
| int const * | getDimensions () const |
| Element< E > & | getElement (int index) |
| Element< E > const & | getElement (int index) const |
| Get the object at index index - 1D array. More... | |
| void | setElement (int ind, Element< E > el) |
| Set the Element at index ind - 1D array. More... | |
|
inlinevirtual |
|
inline |
builds a 3D array.
| cols | number of columns |
| rows | number of rows |
| slices | number of slices |
|
inline |
Get the object at (slice, row, col) for 3D arrays
| slice | - slice index |
| row | - row index |
| col | - column index |
|
inline |
Get the object at (slice, rows, col) for 3D arrays
| col | column index |
| row | row index |
| slice | slice index |
|
inline |
Gets the number of columns of the 3D array
|
inline |
Gets the number of rows of the 3D array
|
inline |
Gets the number of slices of the 3D array
|
inline |
enables using the bracket [] operator
|
inline |
enables using the bracket [] operator
|
inline |
Set the object at index slice, row, col - 3D array
| slice | slice index into the array |
| col | column index into the array |
| row | row index into the array |
| el | - Element object |
1.8.13