7#ifndef continuityData_hh
8#define continuityData_hh
42 typedef std::map<uint, const CellData*>::iterator
iterator;
72 std::map<uint, const CellData*>
cells_;
103 if (father_.
begin()==father_.
end()) {
106 else return father_.
begin()->second;
136 std::ostream& operator<<(std::ostream&
os,
const CellData& c);
144 friend std::ostream& operator<<(std::ostream&
os,
const FaceData& f);
174 friend std::ostream& operator<<(std::ostream&
os,
const EdgeData& e);
235 std::map<uint, FaceData> faces_;
239 void recreateFaceList_();
250 friend std::ostream& operator<<(std::ostream&
os,
const VertexData& e);
301 std::map<uint, EdgeData> edges_;
305 void recreateEdgeList_();
void addFather(const CellData *father)
Adds a father, if its not 0.
const Connector1 * edge(const uint i) const
Returns the ith edge of the cell.
bool hasFace(const Connector2 &f) const
Returns true if face f exists.
const ConnectorData fathers(uint i) const
const Connector2 * face(const uint i) const
Returns the ith face of the cell.
const CellData * father(uint i) const
ConnectorData fathers() const
Returns father_ (might be 0)
bool hasEdge(const Connector1 &e) const
Returns true if edge e exists.
CellData(const Connector &cell, const CellData *father)
const Connector & cell() const
Returns cell_.
Key key() const
Returns the key of the cell.
const CellData * father() const
Returns the (1st) father (might be 0)
int related(const CellData &c) const
Calls Connector::related.
iterator end()
Returns the STL end of the list of cells.
void addCell(const CellData &c)
const_iterator end() const
Returns the STL end of the list of cells.
iterator begin()
Returns the STL beginning of the list of cells.
std::map< uint, constCellData * >::iterator iterator
The STL iterator over the list of cells.
bool hasCell(const Connector &c) const
Returns true if c is in the list of cells.
void replaceCell(const CellData &remove, const CellData &add)
const_iterator begin() const
Returns the STL beginning of the list of cells.
std::map< uint, const CellData * > cells_
List of cells.
std::map< uint, constCellData * >::const_iterator const_iterator
The constant STL iterator over the list of cells.
int related(const Connector &conn) const
const Key & key() const
Returns the key of the connector.
static void checkRelatedEdges(std::map< uint, EdgeData > &edgeList)
Key key() const
Returns the key of the edge.
void addFace(const FaceData &f)
Adds f to faces_ whithout check.
const Connector1 & edge() const
Returns edge_.
static bool doCheckRelations(std::map< uint, EdgeData > &edgeList)
int related(const EdgeData &e) const
Calls Connector::related.
EdgeData(const Connector1 &edge)
EdgesOfVertices(const concepts::Connector2 &cell)
Constructor.
EdgesOfVertices()
Standard constructor.
void addCell(const concepts::Connector2 &cell)
adds the vertices and belonging edges of cell to the mapping
int related(const FaceData &f) const
Calls Connector::related.
static void checkRelatedFaces(std::map< uint, FaceData > &faceList)
const Connector2 & face() const
Returns face_.
FaceData(const Connector2 &face)
Key key() const
Returns the key of the face.
static bool doCheckRelations(std::map< uint, VertexData > &vertexList)
void addEdge(const EdgeData &e)
Adds e to edges_ whithout check.
VertexData(const Connector0 &vertex)
const Connector0 & vertex() const
Rerturns c vertex_.
Key key() const
Returns the key of the vertex.
Set< F > makeSet(uint n, const F &first,...)