Class documentation of Concepts

Loading...
Searching...
No Matches
elementFormulaContainer.hh
Go to the documentation of this file.
1
8#ifndef elementformulaContainer_hh
9#define elementformulaContainer_hh
10
12#include "elementFormula.hh"
13#include "constFormula.hh"
14
15
16namespace concepts {
17
18
19 // ************************************************* ElementFormulaContainer **
20
23 public:
32
36
49
55 virtual F operator() (const ElementWithCell<G>& elm, const Real p,
56 const Real t = 0.0) const;
57 virtual F operator() (const ElementWithCell<G>& elm, const Real1d& p,
58 const Real t = 0.0) const
59 {return (*this)(elm, p[0],t);};
60 virtual F operator() (const ElementWithCell<G>& elm, const Real2d& p,
61 const Real t = 0.0) const;
62 virtual F operator() (const ElementWithCell<G>& elm, const Real3d& p,
63 const Real t = 0.0) const;
66 return new ElementFormulaContainer<F,G>(frm_);
67 }
68
69 const ElementFormula<F,G>& frm() const { return *frm_; }
70
72 bool empty() const { return frm_.get() == 0; }
73
75 protected:
76 virtual std::ostream& info(std::ostream& os) const;
77 private:
80 };
81
82
83} // namespace concepts
84
85
86#endif // elementformulaContainer_hh
virtual F operator()(const ElementWithCell< G > &elm, const Real p, const Real t=0.0) const
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
virtual ElementFormulaContainer< F, G > * clone() const
Virtual copy constructor.
ElementFormulaContainer(const ElementFormula< F, G > *frm)
bool empty() const
Returns true if no formula is stored.
ElementFormulaContainer(const ElementFormula< F, G > &frm)
ElementFormulaContainer(const RCP< const ElementFormula< F, G > > frm)
ElementFormulaContainer(const ElementFormulaContainer< F, G > &frm)
Copy constructor.
double Real
Definition typedefs.hh:39
Set< F > makeSet(uint n, const F &first,...)
Definition set.hh:320