Go to the documentation of this file.
99 typedef std::unordered_map<uint, VertexInfo>::iterator
iterator;
100 typedef std::unordered_map<uint, VertexInfo>::const_iterator
165 virtual std::ostream&
info(std::ostream& os)
const;
176 #endif // geoLists_hh
std::unordered_map< uint, VertexInfo >::const_iterator const_iterator
concepts::Real3d coordinates() const
Returns the coordinates.
std::unordered_set< uint > edges_
List of edges meeting at this vertex.
uint index() const
Returns the index of the vertex.
VertexInfo(concepts::Real3d coord, uint index=0)
Constructor.
iterator find(uint k)
Finds a vertex in the list.
uint & index()
Sets the index of the vertex.
std::unordered_map< uint, VertexInfo > vertices_
List of vertices.
A cell in a mesh consist of topological information (neighbours, connectivity, orientation) and geome...
iterator end()
End of the list.
uint size() const
Returns the size of the list.
enum vtxInfo vtxInfo_
What information about the vertices should be stored.
void addEdge(uint edge)
Adds an edge to the list of edges.
std::unordered_set< uint > faces_
List of faces meeting at this vertex.
uint index_
Index of the vertex.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
std::unordered_map< uint, VertexInfo >::iterator iterator
vtxInfo
Allows to chose if all information should be stored or only some parts.
Class containing information about one single vertex.
void addFace(uint face)
Adds a face to the list of faces.
VertexInfo * addVertex(uint v, concepts::Real3d coord)
Add a new vertex.
const_iterator end() const
Class containing a list of vertices.
VertexInfo * vertex(uint v)
Looks for the vertex with the given key.
virtual void operator()(const concepts::Cell &cell)
Application operator.
concepts::Real3d coord_
Coordinates of the vertex.
VertexList(enum vtxInfo info=ALL)
Constructor.
const_iterator find(uint k) const
const_iterator begin() const
VertexList(const VertexList &vl)
Copy constructor.
std::unordered_set< uint > volumes_
List of volumes meeting at this vertex (only useful for 3D)
void addVolume(uint volume)
Adds a volume to the list of volumes.
friend std::ostream & operator<<(std::ostream &os, const VertexInfo &v)
enum vtxInfo vertexInfo() const
Returns vtxInfo_.
iterator begin()
Beginning of the list.
Abstract class for per cell postprocessing.
double Real
Type normally used for a floating point number.
Basic namespace for Concepts-2.