dune-grid 2.9.0
|
#include <dune/grid/yaspgrid/ygrid.hh>
Public Member Functions | |
Iterator ()=default | |
Iterator (const YGridComponent< Coordinates > &r) | |
Make iterator pointing to first cell in a grid. More... | |
Iterator (const YGridComponent< Coordinates > &r, const iTupel &coord) | |
Make iterator pointing to given cell in a grid. More... | |
void | reinit (const YGridComponent< Coordinates > &r, const iTupel &coord) |
reinitialize iterator to given position More... | |
bool | operator== (const Iterator &i) const |
Return true when two iterators over the same grid are equal (!). More... | |
bool | operator!= (const Iterator &i) const |
Return true when two iterators over the same grid are not equal (!). More... | |
int | superindex () const |
Return consecutive index in enclosing grid. More... | |
int | coord (int i) const |
Return coordinate of the cell in direction i. More... | |
const iTupel & | coord () const |
Return coordinate of the cell as reference (do not modify). More... | |
void | move (int i, int dist) |
move this iterator dist cells in direction i More... | |
void | move (const iTupel &dist) |
move this iterator dist cells in direction i More... | |
Iterator & | operator++ () |
Increment iterator to next cell with position. More... | |
ct | lowerleft (int i) const |
Return ith component of lower left corner of the entity associated with the current coordinates and shift. More... | |
fTupel | lowerleft () const |
Return lower left corner of the entity associated with the current coordinates and shift. More... | |
ct | upperright (int i) const |
Return ith component of upper right corder of the entity associated with the current coordinates and shift. More... | |
fTupel | upperright () const |
Return upper right corder of the entity associated with the current coordinates and shift. More... | |
ct | meshsize (int i) const |
Return meshsize in direction i. More... | |
fTupel | meshsize () const |
Return meshsize of current cell as reference. More... | |
bool | shift (int i) const |
std::bitset< d > | shift () const |
Coordinates * | coordCont () const |
Protected Attributes | |
iTupel | _coord |
current position in index set More... | |
int | _superindex = 0 |
consecutive index in enclosing grid More... | |
const YGridComponent< Coordinates > * | _grid = nullptr |
Iterator class allows one to run over all cells of a grid. The cells of the grid to iterate over are numbered consecutively starting with zero. Via the index() method the iterator provides a mapping of the cells of the grid to a one-dimensional array. The number of entries in this array must be the size of the grid.
|
default |
|
inline |
Make iterator pointing to first cell in a grid.
|
inline |
Make iterator pointing to given cell in a grid.
|
inline |
Return coordinate of the cell as reference (do not modify).
|
inline |
Return coordinate of the cell in direction i.
|
inline |
|
inline |
Return lower left corner of the entity associated with the current coordinates and shift.
|
inline |
Return ith component of lower left corner of the entity associated with the current coordinates and shift.
|
inline |
Return meshsize of current cell as reference.
|
inline |
Return meshsize in direction i.
|
inline |
move this iterator dist cells in direction i
|
inline |
move this iterator dist cells in direction i
|
inline |
Return true when two iterators over the same grid are not equal (!).
|
inline |
Increment iterator to next cell with position.
|
inline |
Return true when two iterators over the same grid are equal (!).
|
inline |
reinitialize iterator to given position
|
inline |
|
inline |
|
inline |
Return consecutive index in enclosing grid.
|
inline |
Return upper right corder of the entity associated with the current coordinates and shift.
|
inline |
Return ith component of upper right corder of the entity associated with the current coordinates and shift.
|
protected |
current position in index set
|
protected |
|
protected |
consecutive index in enclosing grid