continuityData.hh
void replaceCell(const CellData &remove, const CellData &add)
Removes remove from the list of cells and tries to add add to this list using addCell.
Stores additional information on a cell, namely its father.
Definition: continuityData.hh:80
std::map< uint, const CellData * >::iterator iterator
The STL iterator over the list of cells.
Definition: continuityData.hh:42
const Connector1 * edge(const uint i) const
Returns the ith edge of the cell.
const ConnectorData fathers(uint i) const
Returns the fathers of the i.th level Its assumed, that all the fathers have common grandfathers.
const CellData * father() const
Returns the (1st) father (might be 0)
Definition: continuityData.hh:102
friend std::ostream & operator<<(std::ostream &os, const FaceData &f)
void addCell(const concepts::Connector2 &cell)
adds the vertices and belonging edges of cell to the mapping
const CellData * father(uint i) const
Returns the (1st) father of the i.th level i = 0 : returns itself i = 1 : returns the fathers i = 2 :...
std::map< uint, const CellData * >::const_iterator const_iterator
The constant STL iterator over the list of cells.
Definition: continuityData.hh:44
Stores additional information on a vertex, namely its cells and edges.
Definition: continuityData.hh:249
Stores additional information on a face, namely its cells.
Definition: continuityData.hh:143
friend std::ostream & operator<<(std::ostream &os, const VertexData &e)
EdgesOfVertices(const concepts::Connector2 &cell)
Constructor.
const CellData * findCommonCell_(const EdgeData &edge) const
Finds a cell which is common to this vertex and the edge.
std::ostream & operator<<(std::ostream &os, const Level< dim > &c)
Build a mapping from vertices (over their key) in a cell to the edges their belong to.
Definition: continuityData.hh:317
Generalization of the class which store additional information for topological entities.
Definition: continuityData.hh:39
const CellData * findCommonCell_(const FaceData &face) const
Finds a cell which is common to this edge and the face.
void recreateFaceList_()
Removes the faces in faces_ and rebuilds this list from the cells in cells_.
static bool doCheckRelations(std::map< uint, EdgeData > &edgeList)
Calls checkRelations for each edge in the edgeList.
int related(const Connector &conn) const
Checks if this connector is related to conn.
const_iterator begin() const
Returns the STL beginning of the list of cells.
Definition: continuityData.hh:65
void recreateEdgeList_()
Removes the edges in edges_ and rebuilds this list from the cells in cells_.
Stores additional information on an edge, namely its cells and faces.
Definition: continuityData.hh:173
static void checkRelatedEdges(std::map< uint, EdgeData > &edgeList)
Checks if there are edges with relations in edgeList.
Definition: hashMap.hh:19
ConnectorData father_
List of fathers of the cell (might be no father)
Definition: continuityData.hh:131
const Connector2 * face(const uint i) const
Returns the ith face of the cell.
friend std::ostream & operator<<(std::ostream &os, const EdgeData &e)
static void checkRelatedFaces(std::map< uint, FaceData > &faceList)
Checks if there are faces with relations in faceList.
static bool doCheckRelations(std::map< uint, VertexData > &vertexList)
Calls checkRelations for each vertex in the vertexList.
Exception class to express an illegal relation within topological lists.
Definition: continuityData.hh:28
bool hasCell(const Connector &c) const
Returns true if c is in the list of cells.