Iterator over a collection o YGrids A YGrid::Iterator is the heart of an entity in YaspGrid.
More...
#include <dune/grid/yaspgrid/ygrid.hh>
|
| Iterator ()=default |
| default constructor More...
|
|
| Iterator (const YGrid< Coordinates > &yg, const std::array< int, dim > &coords, int which=0) |
| construct an iterator from coordinates and component More...
|
|
| Iterator (const YGrid< Coordinates > &yg, bool end=false) |
| create an iterator to start or end of the codimension More...
|
|
void | reinit (const YGrid< Coordinates > &yg, const std::array< int, dim > &coords, int which=0) |
| reinitializes an iterator, as if it was just constructed. More...
|
|
int | coord (int i) const |
| return coordinate at the current position (direction i) More...
|
|
const std::array< int, dim > & | coord () const |
| return coordinate array at the current position More...
|
|
Coordinates::ctype | lowerleft (int i) const |
|
Dune::FieldVector< typename Coordinates::ctype, dim > | lowerleft () const |
|
Coordinates::ctype | upperright (int i) const |
|
Dune::FieldVector< typename Coordinates::ctype, dim > | upperright () const |
|
Coordinates::ctype | meshsize (int i) const |
| return the current meshsize in direction i More...
|
|
Dune::FieldVector< typename Coordinates::ctype, dim > | meshsize () const |
| return the current meshsize vector More...
|
|
bool | shift (int i) const |
| return the shift in direction i More...
|
|
std::bitset< dim > | shift () const |
| return the shift vector More...
|
|
int | superindex () const |
| return the superindex More...
|
|
Iterator & | operator++ () |
| increment to the next entity jumping to next component if necessary More...
|
|
bool | operator== (const Iterator &i) const |
| compare two iterators: component has to match More...
|
|
bool | operator!= (const Iterator &i) const |
| compare two iterators: component has to match More...
|
|
int | which () const |
| return the current component number More...
|
|
void | move (int i, int dist) |
| move the grid, this is only done and needed for codim 0 More...
|
|
void | move (const iTupel &dist) |
|
Coordinates * | coordCont () const |
|
template<class Coordinates>
class Dune::YGrid< Coordinates >::Iterator
Iterator over a collection o YGrids A YGrid::Iterator is the heart of an entity in YaspGrid.
◆ Iterator() [1/3]
template<class Coordinates >
◆ Iterator() [2/3]
template<class Coordinates >
Dune::YGrid< Coordinates >::Iterator::Iterator |
( |
const YGrid< Coordinates > & |
yg, |
|
|
const std::array< int, dim > & |
coords, |
|
|
int |
which = 0 |
|
) |
| |
|
inline |
construct an iterator from coordinates and component
◆ Iterator() [3/3]
template<class Coordinates >
Dune::YGrid< Coordinates >::Iterator::Iterator |
( |
const YGrid< Coordinates > & |
yg, |
|
|
bool |
end = false |
|
) |
| |
|
inline |
create an iterator to start or end of the codimension
◆ coord() [1/2]
template<class Coordinates >
const std::array< int, dim > & Dune::YGrid< Coordinates >::Iterator::coord |
( |
| ) |
const |
|
inline |
return coordinate array at the current position
◆ coord() [2/2]
template<class Coordinates >
int Dune::YGrid< Coordinates >::Iterator::coord |
( |
int |
i | ) |
const |
|
inline |
return coordinate at the current position (direction i)
◆ coordCont()
template<class Coordinates >
Coordinates * Dune::YGrid< Coordinates >::Iterator::coordCont |
( |
| ) |
const |
|
inline |
◆ lowerleft() [1/2]
template<class Coordinates >
Dune::FieldVector< typename Coordinates::ctype, dim > Dune::YGrid< Coordinates >::Iterator::lowerleft |
( |
| ) |
const |
|
inline |
◆ lowerleft() [2/2]
template<class Coordinates >
Coordinates::ctype Dune::YGrid< Coordinates >::Iterator::lowerleft |
( |
int |
i | ) |
const |
|
inline |
◆ meshsize() [1/2]
template<class Coordinates >
Dune::FieldVector< typename Coordinates::ctype, dim > Dune::YGrid< Coordinates >::Iterator::meshsize |
( |
| ) |
const |
|
inline |
return the current meshsize vector
◆ meshsize() [2/2]
template<class Coordinates >
Coordinates::ctype Dune::YGrid< Coordinates >::Iterator::meshsize |
( |
int |
i | ) |
const |
|
inline |
return the current meshsize in direction i
◆ move() [1/2]
template<class Coordinates >
◆ move() [2/2]
template<class Coordinates >
void Dune::YGrid< Coordinates >::Iterator::move |
( |
int |
i, |
|
|
int |
dist |
|
) |
| |
|
inline |
move the grid, this is only done and needed for codim 0
◆ operator!=()
template<class Coordinates >
compare two iterators: component has to match
◆ operator++()
template<class Coordinates >
increment to the next entity jumping to next component if necessary
◆ operator==()
template<class Coordinates >
compare two iterators: component has to match
◆ reinit()
template<class Coordinates >
void Dune::YGrid< Coordinates >::Iterator::reinit |
( |
const YGrid< Coordinates > & |
yg, |
|
|
const std::array< int, dim > & |
coords, |
|
|
int |
which = 0 |
|
) |
| |
|
inline |
reinitializes an iterator, as if it was just constructed.
◆ shift() [1/2]
template<class Coordinates >
std::bitset< dim > Dune::YGrid< Coordinates >::Iterator::shift |
( |
| ) |
const |
|
inline |
◆ shift() [2/2]
template<class Coordinates >
bool Dune::YGrid< Coordinates >::Iterator::shift |
( |
int |
i | ) |
const |
|
inline |
return the shift in direction i
◆ superindex()
template<class Coordinates >
int Dune::YGrid< Coordinates >::Iterator::superindex |
( |
| ) |
const |
|
inline |
◆ upperright() [1/2]
template<class Coordinates >
Dune::FieldVector< typename Coordinates::ctype, dim > Dune::YGrid< Coordinates >::Iterator::upperright |
( |
| ) |
const |
|
inline |
◆ upperright() [2/2]
template<class Coordinates >
Coordinates::ctype Dune::YGrid< Coordinates >::Iterator::upperright |
( |
int |
i | ) |
const |
|
inline |
◆ which()
template<class Coordinates >
int Dune::YGrid< Coordinates >::Iterator::which |
( |
| ) |
const |
|
inline |
return the current component number
The documentation for this class was generated from the following file: