Class documentation of Concepts

Loading...
Searching...
No Matches
exceptions.hh
Go to the documentation of this file.
1
6#ifndef formulaexceptions_hh
7#define formulaexceptions_hh
8
9#include "elementFormula.hh"
10#include "basics/exceptions.hh"
11
12namespace concepts {
13
14 template<typename F>
15 class Element;
16
17
18 // ******************************************* ElementNotInDomainOfFormula **
19
25 public:
27 template<typename F, typename G>
29 const ElementFormula<F,G>& frm) {
30 std::stringstream s;
31 s << "element " << elm << " is not in the domain of " << frm;
32 errorMessage_ = s.str();
33 }
34
35 template<typename F>
37 std::stringstream s;
38 s << "element " << elm << " is not in the domain";
39 errorMessage_ = s.str();
40 }
41
42 virtual ~ElementNotInDomainOfFormula() throw() {}
43 protected:
44 virtual std::ostream& info(std::ostream& os) const throw();
45 private:
46 std::string errorMessage_;
47 };
48
49 // ******************************************* PointerToEmptyElementFormula **
50
56 public:
59 {
60 errorMessage_ = "Empty RCP<ElementFormula>";
61 }
63 protected:
64 virtual std::ostream& info(std::ostream& os) const throw();
65 private:
66 std::string errorMessage_;
67 };
68
69 // ************************************************** PointerToEmptyFormula **
70
76 public:
79 {
80 errorMessage_ = "Empty RCP<Formula>";
81 }
82 virtual ~PointerToEmptyFormula() throw() {}
83 protected:
84 virtual std::ostream& info(std::ostream& os) const throw();
85 private:
86 std::string errorMessage_;
87 };
88
89
90} // namespace concepts
91
92#endif // formulaexceptions_hh
93
ElementNotInDomainOfFormula(const Element< G > &elm, const ElementFormula< F, G > &frm)
Constructor.
Definition exceptions.hh:28
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
Set< F > makeSet(uint n, const F &first,...)
Definition set.hh:320
GenericElement< KarniadakisMixin< F > > Element
template aliases for backwards compatibility
Definition element.hh:267