Class documentation of Concepts

Loading...
Searching...
No Matches
formulaContainer.hh
Go to the documentation of this file.
1
8#ifndef formulaContainer_hh
9#define formulaContainer_hh
10
12#include "formula.hh"
13#include "constFormula.hh"
14
15
16namespace concepts {
17
18
19 // ******************************************************** FormulaContainer **
20
21 template<class F>
22 class FormulaContainer : public Formula<F> {
23 public:
31 FormulaContainer(const F x);
32
36
42 FormulaContainer(const RCP<const Formula<F> > frm);
46 explicit FormulaContainer(const Formula<F>* frm);
49
54 virtual F operator() (const Real p, const Real t = 0.0) const;
55 virtual F operator() (const Real2d& p, const Real t = 0.0) const;
56 virtual F operator() (const Real3d& p, const Real t = 0.0) const;
57
59 virtual FormulaContainer<F>* clone() const {
60 return new FormulaContainer<F>(frm_);
61 }
62
63 const Formula<F>& frm() const { return *frm_; }
64
66 bool empty() const { return frm_.get() == 0; }
67
68 virtual ~FormulaContainer();
69 protected:
70 virtual std::ostream& info(std::ostream& os) const;
71 private:
74 };
75
76
77} // namespace concepts
78
79
80#endif // formulaContainer_hh
FormulaContainer(const Formula< F > *frm)
virtual F operator()(const Real p, const Real t=0.0) const
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
virtual FormulaContainer< F > * clone() const
Virtual copy constructor.
FormulaContainer(const FormulaContainer< F > &frm)
Copy constructor.
FormulaContainer(const Formula< F > &frm)
FormulaContainer(const RCP< const Formula< F > > frm)
bool empty() const
Returns true if no formula is stored.
double Real
Definition typedefs.hh:39
Set< F > makeSet(uint n, const F &first,...)
Definition set.hh:320