Class documentation of Concepts

Loading...
Searching...
No Matches
singularSet.hh
Go to the documentation of this file.
1
6#ifndef singularSet2D_hh
7#define singularSet2D_hh
8
11#include "geometry/topology.hh"
12#include "geometry/mesh.hh"
13#include "hp2D/quad.hh"
14
15namespace hp2D {
16
17 using concepts::Real;
18
19 // ******************************************************** SingularVertex **
20
29 friend std::ostream& operator<<(std::ostream& os, const SingularVertex& s);
30 public:
36 const concepts::Real2d vtx0) :
37 vertex_(vertex), vtx0_(vtx0) {}
39 const concepts::Connector0* vertex() const { return vertex_; }
43 Real distance(concepts::Real2d point) const;
47 Real distance(concepts::Real2d point, const Quad<Real>* elm) const {
48 return distance(elm->chi(point[0], point[1]));
49 }
50 private:
52 const concepts::Connector0* vertex_;
54 const concepts::Real2d vtx0_;
55 };
56
57 // *********************************************************** SingularSet **
58
64 friend std::ostream& operator<<(std::ostream& os, const SingularSet& s);
65 public:
66 SingularSet() : vertices_(0) {}
71 void add(const concepts::Attribute& attrib, concepts::Mesh2& msh);
76 private:
79 };
80
81} // namespace hp2D
82
83#endif // singularSet2D_hh
concepts::Real2d chi(const Real x, const Real y) const
Definition quad.hh:40
concepts::Scan< SingularVertex > * verticesScan() const
Scanner over all singular vertices.
void add(const concepts::Attribute &attrib, concepts::Mesh2 &msh)
SingularVertex(const concepts::Connector0 *vertex, const concepts::Real2d vtx0)
Real distance(concepts::Real2d point, const Quad< Real > *elm) const
Real distance(concepts::Real2d point) const
const concepts::Connector0 * vertex() const
Returns a pointer to the vertex object (topological, connector)
double Real
Definition typedefs.hh:39
Set< F > makeSet(uint n, const F &first,...)
Definition set.hh:320