Represents an entity of a given codim, with positive or negative orientation.
More...
|
| EntityRep () |
| Default constructor.
|
|
| EntityRep (int index_arg, bool orientation_arg) |
| Constructor taking an entity index and an orientation.
|
|
void | setValue (int index_arg, bool orientation_arg) |
| Set entity value.
|
|
int | index () const |
| The (positive) index of an entity.
|
|
int | signedIndex () const |
| The signed index that also tells us the orientation.
|
|
bool | orientation () const |
| Returns true if the entity has positive orientation.
|
|
EntityRep | opposite () const |
| Returns an EntityRep with opposite orientation.
|
|
void | increment () |
| Increments the entityrep's index() by one.
|
|
bool | operator< (const EntityRep &other) const |
| Ordering relation used for maps etc.
|
|
bool | operator== (const EntityRep &other) const |
| Equality operator.
|
|
bool | operator!= (const EntityRep &other) const |
| Inequality operator.
|
|
template<int codim>
class Dune::cpgrid::EntityRep< codim >
Represents an entity of a given codim, with positive or negative orientation.
This class is not a part of the Dune interface, but of our implementation. Since this class has a few friends, and for aid in debugging, we document its interior representation here: The interior representation consists of an integer entityrep_ which, if positive or zero, indicates the index of the entity. In that case, the entity's orientation is positive. If entityrep_ is negative, the orientation is negative, and the index is given by ~entityrep_ (we cannot use -entityrep_, since 0 is a valid index). We may consider changing this representation to using something like a std::pair<int, bool> instead.
- Template Parameters
-