Bridges-C++
3.4.4
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 |
Bracker_helper class to make [] operators work on array 2d. You should never use it directly. More... | |
struct | Bracket_helper2 |
Bracker_helper class to make [][] operators work on array 2d. You should never use it directly. More... | |
struct | Bracket_helper2_const |
helper2 const class is to make [][] operators work on array 2d. You should never use it directly More... | |
struct | Bracket_helper_const |
helper const class is 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 |
helper const class is to make [] operators work on array 2d. You should never use it directly 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 size 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. param slices number of slices (depth) param rows number of rows (height) param columns number of columns (width)
|
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 |
helper const class is to make [] operators work on array 2d. You should never use it directly
|
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 |