Class documentation of Concepts

Loading...
Searching...
No Matches
formulaFromWeight.hh
Go to the documentation of this file.
1
6#ifndef formulaFromWeight_hh
7#define formulaFromWeight_hh
8
9#include "space/formula.hh"
10#include "shortestDist.hh"
11
12namespace hp3D {
13
14 // ***************************************************** FormulaFromWeight **
15
20 template<typename Weight = TrivialWeight>
21 class FormulaFromWeight : public concepts::ElementFormula<concepts::Real> {
22 public:
26 FormulaFromWeight(const SingularSet& singularities) :
27 weight_(), singularities_(singularities) {}
28
29 virtual Real operator()(const concepts::ElementWithCell<Real>& elm,
30 const Real p, const Real t = 0.0) const;
31 virtual Real operator()(const concepts::ElementWithCell<Real>& elm,
32 const concepts::Real2d& p,
33 const Real t = 0.0) const;
34 virtual Real operator()(const concepts::ElementWithCell<Real>& elm,
35 const concepts::Real3d& p,
36 const Real t = 0.0) const;
38 return new FormulaFromWeight(singularities_); }
39 private:
40 Weight weight_;
41 const SingularSet& singularities_;
42 };
43
44} // namespace concepts
45
46#endif // formulaFromWeight_hh
FormulaFromWeight(const SingularSet &singularities)
virtual FormulaFromWeight< Weight > * clone() const
Virtual copy constructor.
Definition meshDX.hh:23