Iterator intended to be used as LeafIterator and LevelIterator (no difference due to no adaptivity) for CpGrid. More...
#include <Iterators.hpp>
Public Member Functions | |
Iterator (const CpGridData &grid, int index, bool orientation) | |
Iterator & | operator++ () |
Increment operator. More... | |
![]() | |
EntityPointer () | |
Construction empty entity pointer. | |
EntityPointer (const Entity &e) | |
Construction from entity. | |
EntityPointer (const CpGridData &grid, EntityRep< codim > entityrep) | |
Constructor taking a grid and an entity representation. | |
EntityPointer (const CpGridData &grid, int index_arg, bool orientation_arg) | |
Constructor taking a grid, entity index and orientation. | |
const Entity * | operator-> () const |
Const member by pointer operator. | |
const Entity & | operator* () const |
Const dereferencing operator. | |
void | compactify () |
Minimizes memory usage. More... | |
![]() | |
Entity () | |
Constructor taking a grid and an integer entity representation. More... | |
Entity (const CpGridData &grid, EntityRep< codim > entityrep) | |
Constructor taking a grid and an entity representation. | |
Entity (const CpGridData &grid, int index_arg, bool orientation_arg) | |
Constructor taking a grid, entity index and orientation. | |
bool | operator== (const Entity &other) const |
Equality. | |
bool | operator!= (const Entity &other) const |
Inequality. | |
EntitySeed | seed () const |
Return an entity seed. More... | |
const Geometry & | geometry () const |
Returns the geometry of the entity (does not depend on its orientation). | |
int | level () const |
We do not support refinement, so level() is always 0. | |
bool | isLeaf () const |
The entity is always on the leaf grid, since we have no refinement. | |
bool | isRegular () const |
Refinement is not defined for CpGrid. | |
PartitionType | partitionType () const |
For now, the grid is serial and the only partitionType() is InteriorEntity. | |
GeometryType | type () const |
Using the cube type for all entities now (cells and vertices). | |
unsigned int | subEntities (const unsigned int cc) const |
The count of subentities of codimension cc. | |
int | count () const |
The count of subentities of codimension cc. | |
Codim< cc >::EntityPointer | subEntity (int i) const |
Obtain subentity. | |
LevelIntersectionIterator | ilevelbegin () const |
Start iterator for the cell-cell intersections of this entity. | |
LevelIntersectionIterator | ilevelend () const |
End iterator for the cell-cell intersections of this entity. | |
LeafIntersectionIterator | ileafbegin () const |
Start iterator for the cell-cell intersections of this entity. | |
LeafIntersectionIterator | ileafend () const |
End iterator for the cell-cell intersections of this entity. | |
HierarchicIterator | hbegin (int) const |
Dummy first child iterator. | |
HierarchicIterator | hend (int) const |
Dummy beyond last child iterator. | |
bool | isNew () const |
Returns true, if the entity has been created during the last call to adapt(). Dummy. | |
bool | mightVanish () const |
Returns true, if entity might disappear during the next call to adapt(). Dummy. | |
bool | hasFather () const |
No hierarchy in this grid. | |
EntityPointerType | father () const |
Dummy, returning this. | |
LocalGeometry | geometryInFather () const |
Dummy, returning default geometry. | |
bool | hasBoundaryIntersections () const |
Returns true if any of my intersections are on the boundary. More... | |
const Entity & | impl () const |
Entity & | impl () |
bool | isValid () const |
isValid method for EntitySeed More... | |
![]() | |
EntityRep () | |
Default constructor. | |
EntityRep (int index_arg, bool orientation_arg) | |
Constructor taking an entity index and an orientation. More... | |
void | setValue (int index_arg, bool orientation_arg) |
Set entity value. More... | |
int | index () const |
The (positive) index of an entity. More... | |
bool | orientation () const |
Returns true if the entity has positive orientation. More... | |
EntityRep | opposite () const |
Returns an EntityRep with opposite orientation. More... | |
void | increment () |
Increments the entityrep's index() by one. | |
bool | operator< (const EntityRep &other) const |
Ordering relation used for maps etc. More... | |
bool | operator== (const EntityRep &other) const |
Equality operator. More... | |
bool | operator!= (const EntityRep &other) const |
Inequality operator. More... | |
Additional Inherited Members | |
![]() | |
typedef cpgrid::Entity< codim > | Entity |
typedef const Entity & | Reference |
![]() | |
enum | |
enum | |
enum | |
enum | |
typedef cpgrid::EntityPointer < codim > | EntityPointerType |
typedef EntityPointerType | EntityPointer |
typedef EntityPointerType | EntitySeed |
typedef cpgrid::Geometry < 3-codim, 3 > | Geometry |
typedef Geometry | LocalGeometry |
typedef cpgrid::IntersectionIterator | LeafIntersectionIterator |
typedef cpgrid::IntersectionIterator | LevelIntersectionIterator |
typedef cpgrid::HierarchicIterator | HierarchicIterator |
typedef double | ctype |
![]() | |
enum | |
enum | |
![]() | |
const CpGridData * | pgrid_ |
Iterator intended to be used as LeafIterator and LevelIterator (no difference due to no adaptivity) for CpGrid.
This could have been a random access iterator, perhaps we will use a facade to do this later.
Dune::cpgrid::Iterator< cd, pitype >::Iterator | ( | const CpGridData & | grid, |
int | index, | ||
bool | orientation | ||
) |
|
inline |