Dune::cpgrid::EntityRep< codim > Class Template Reference Represents an entity of a given codim, with positive or negative orientation. More...
Inheritance diagram for Dune::cpgrid::EntityRep< codim >:
Detailed Descriptiontemplate<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.
Member Enumeration Documentation◆ anonymous enum◆ anonymous enumConstructor & Destructor Documentation◆ EntityRep() [1/2]
template<int codim>
Default constructor. Referenced by Dune::cpgrid::EntityRep< codim >::opposite(). ◆ EntityRep() [2/2]
template<int codim>
Constructor taking an entity index and an orientation.
Member Function Documentation◆ increment()
template<int codim>
Increments the entityrep's index() by one. Referenced by Dune::cpgrid::Iterator< cd, pitype >::Iterator(), and Dune::cpgrid::Iterator< cd, pitype >::operator++(). ◆ index()
template<int codim>
The (positive) index of an entity. Not a Dune interface method.
Referenced by Dune::cpgrid::PointViaCellHandleWrapper< Handle >::gather(), Dune::cpgrid::Intersection::id(), Dune::cpgrid::LevelGlobalIdSet::id(), Dune::cpgrid::IndexSet::index(), Dune::cpgrid::Entity< codim >::isValid(), Dune::cpgrid::Iterator< cd, pitype >::Iterator(), Dune::cpgrid::OrientedEntityTable< codim_from, codim_to >::makeInverseRelation(), Dune::cpgrid::Iterator< cd, pitype >::operator++(), Dune::cpgrid::EntityRep< codim >::operator<(), Dune::cpgrid::EntityVariable< T, codim >::operator[](), Dune::cpgrid::SignedEntityVariable< T, codim >::operator[](), Dune::cpgrid::OrientedEntityTable< codim_from, codim_to >::operator[](), Dune::cpgrid::OrientedEntityTable< codim_from, codim_to >::printRelationMatrix(), Dune::cpgrid::OrientedEntityTable< codim_from, codim_to >::row(), Dune::cpgrid::OrientedEntityTable< codim_from, codim_to >::rowSize(), Dune::cpgrid::PointViaCellHandleWrapper< Handle >::scatter(), and Dune::cpgrid::PointViaCellHandleWrapper< Handle >::size(). ◆ operator!=()
template<int codim>
Inequality operator.
References Dune::cpgrid::EntityRep< codim >::operator==(). ◆ operator<()
template<int codim>
Ordering relation used for maps etc. Sorting on index and then orientation, with positive orientations first.
References Dune::cpgrid::EntityRep< codim >::index(), and Dune::cpgrid::EntityRep< codim >::orientation(). ◆ operator==()
template<int codim>
Equality operator.
Referenced by Dune::cpgrid::EntityRep< codim >::operator!=(), and Dune::cpgrid::Entity< codim >::operator==(). ◆ opposite()
template<int codim>
Returns an EntityRep with opposite orientation.
References Dune::cpgrid::EntityRep< codim >::EntityRep(). Referenced by Dune::cpgrid::OrientedEntityTable< codim_from, codim_to >::makeInverseRelation(), Dune::cpgrid::OrientedEntityRange< codim_to >::operator[](), and Dune::cpgrid::MutableOrientedEntityRange< codim_to >::operator[](). ◆ orientation()
template<int codim>
Returns true if the entity has positive orientation. Not a Dune interface method.
Referenced by Dune::cpgrid::OrientedEntityTable< codim_from, codim_to >::makeInverseRelation(), Dune::cpgrid::EntityRep< codim >::operator<(), Dune::cpgrid::SignedEntityVariable< T, codim >::operator[](), Dune::cpgrid::OrientedEntityTable< codim_from, codim_to >::operator[](), and Dune::cpgrid::OrientedEntityTable< codim_from, codim_to >::printRelationMatrix(). ◆ setValue()
template<int codim>
Set entity value.
◆ signedIndex()
template<int codim>
The signed index that also tells us the orientation. The documentation for this class was generated from the following files: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||