![]() |
rasdaman client API
10.6.3
The Array Analytics Engine: Datacubes at Your Fingertips
|
r_Miter is used for iterating through parts of multidimensional intervals. More...
#include <miter.hh>
Classes | |
| struct | incArrElem |
Public Member Functions | |
| r_Miter (const r_Minterval *newAreaIter, const r_Minterval *newAreaTile, r_Bytes newCellSize, const char *newFirstCell) | |
| The pointers are stored, do not delete the objects as long as the iterator is used! More... | |
| ~r_Miter () | |
| void | reset () |
| resets iterator to first cell. More... | |
| char * | nextCell () |
| returns current cell and sets iterator to next cell. More... | |
| bool | isDone () |
| returns TRUE if iteration is finished. More... | |
Protected Attributes | |
| const r_Minterval * | areaIter {NULL} |
| area to be iterated through More... | |
| const r_Minterval * | areaTile {NULL} |
| area of tile. More... | |
| const char * | firstCell {NULL} |
| offset of first cell in tile. More... | |
| incArrElem * | incArrIter {NULL} |
| array with increments More... | |
| char * | currCell {NULL} |
| current cell for iteration; More... | |
| r_Bytes | cellSize {} |
| size of base type. More... | |
| int | lowCount {} |
| counter for position in lowest dimension. More... | |
| bool | done {false} |
| flag set if iteration is finished. More... | |
r_Miter is used for iterating through parts of multidimensional intervals.
It is given the domain of the object to be iterated through, the size of the base base type, the address of the first cell in the Tile and an Minterval specifying the area to be iterated through.
Going to the next cell is done with nextCell() which returns the address of the next cell. Test for the end is done with isDone(). The iterator can be reset with reset().
| r_Miter::r_Miter | ( | const r_Minterval * | newAreaIter, |
| const r_Minterval * | newAreaTile, | ||
| r_Bytes | newCellSize, | ||
| const char * | newFirstCell | ||
| ) |
The pointers are stored, do not delete the objects as long as the iterator is used!
| r_Miter::~r_Miter | ( | ) |
|
inline |
returns TRUE if iteration is finished.
|
inline |
returns current cell and sets iterator to next cell.
| void r_Miter::reset | ( | ) |
resets iterator to first cell.
|
protected |
area to be iterated through
|
protected |
area of tile.
|
protected |
size of base type.
|
protected |
current cell for iteration;
|
protected |
flag set if iteration is finished.
|
protected |
offset of first cell in tile.
|
protected |
array with increments
|
protected |
counter for position in lowest dimension.