|
dune-grid 2.11
|
#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. | |
| Iterator (const YGridComponent< Coordinates > &r, const iTupel &coord) | |
| Make iterator pointing to given cell in a grid. | |
| void | reinit (const YGridComponent< Coordinates > &r, const iTupel &coord) |
| reinitialize iterator to given position | |
| bool | operator== (const Iterator &i) const |
| Return true when two iterators over the same grid are equal (!). | |
| bool | operator!= (const Iterator &i) const |
| Return true when two iterators over the same grid are not equal (!). | |
| int | superindex () const |
| Return consecutive index in enclosing grid. | |
| int | coord (int i) const |
| Return coordinate of the cell in direction i. | |
| const iTupel & | coord () const |
| Return coordinate of the cell as reference (do not modify). | |
| void | move (int i, int dist) |
| move this iterator dist cells in direction i | |
| void | move (const iTupel &dist) |
| move this iterator dist cells in direction i | |
| Iterator & | operator++ () |
| Increment iterator to next cell with position. | |
| ct | lowerleft (int i) const |
| Return ith component of lower left corner of the entity associated with the current coordinates and shift. | |
| fTupel | lowerleft () const |
| Return lower left corner of the entity associated with the current coordinates and shift. | |
| ct | upperright (int i) const |
| Return ith component of upper right corder of the entity associated with the current coordinates and shift. | |
| fTupel | upperright () const |
| Return upper right corder of the entity associated with the current coordinates and shift. | |
| ct | meshsize (int i) const |
| Return meshsize in direction i. | |
| fTupel | meshsize () const |
| Return meshsize of current cell as reference. | |
| bool | shift (int i) const |
| std::bitset< d > | shift () const |
| Coordinates * | coordCont () const |
Protected Attributes | |
| iTupel | _coord |
| current position in index set | |
| int | _superindex = 0 |
| consecutive index in enclosing grid | |
| const YGridComponent< Coordinates > * | _grid = nullptr |
Detailed Description
class Dune::YGridComponent< Coordinates >::Iterator
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.
Constructor & Destructor Documentation
◆ Iterator() [1/3]
|
default |
◆ Iterator() [2/3]
|
inline |
Make iterator pointing to first cell in a grid.
◆ Iterator() [3/3]
|
inline |
Make iterator pointing to given cell in a grid.
Member Function Documentation
◆ coord() [1/2]
|
inline |
Return coordinate of the cell as reference (do not modify).
◆ coord() [2/2]
|
inline |
Return coordinate of the cell in direction i.
◆ coordCont()
|
inline |
◆ lowerleft() [1/2]
|
inline |
Return lower left corner of the entity associated with the current coordinates and shift.
◆ lowerleft() [2/2]
|
inline |
Return ith component of lower left corner of the entity associated with the current coordinates and shift.
◆ meshsize() [1/2]
|
inline |
Return meshsize of current cell as reference.
◆ meshsize() [2/2]
|
inline |
Return meshsize in direction i.
◆ move() [1/2]
|
inline |
move this iterator dist cells in direction i
◆ move() [2/2]
|
inline |
move this iterator dist cells in direction i
◆ operator!=()
|
inline |
Return true when two iterators over the same grid are not equal (!).
◆ operator++()
|
inline |
Increment iterator to next cell with position.
◆ operator==()
|
inline |
Return true when two iterators over the same grid are equal (!).
◆ reinit()
|
inline |
reinitialize iterator to given position
◆ shift() [1/2]
|
inline |
◆ shift() [2/2]
|
inline |
◆ superindex()
|
inline |
Return consecutive index in enclosing grid.
◆ upperright() [1/2]
|
inline |
Return upper right corder of the entity associated with the current coordinates and shift.
◆ upperright() [2/2]
|
inline |
Return ith component of upper right corder of the entity associated with the current coordinates and shift.
Member Data Documentation
◆ _coord
|
protected |
current position in index set
◆ _grid
|
protected |
◆ _superindex
|
protected |
consecutive index in enclosing grid
The documentation for this class was generated from the following file:
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8