Class documentation of Concepts

Loading...
Searching...
No Matches
testElementFormula.hh
Go to the documentation of this file.
1
7#pragma once
8
9#include "basics/testcase.hh"
11#include "space/element.hh"
12
13namespace concepts {
14
15 // forward declarations
16 template<class F, uint dim>
17 class Point;
18}
19
20namespace test {
21
22 // ************************************************************** Container **
23
24 template<class F = concepts::Real>
26 public:
28 : i_(i) {}
29
30 const concepts::ElementFormula<F>& frm() const {
31 return i_;
32 }
33 protected:
34 virtual std::ostream& info(std::ostream& os) const {
35 os << "Container(";
36 if (!i_.empty())
37 os << i_;
38 else os << "0";
39 return os << ")";
40 }
41 private:
43 };
44
45
46 // ***************************************************** ElementFormulaTest **
47
53 public:
54 virtual ~ElementFormulaTest() {}
55 virtual void run();
56
58
59
61
64
67
70
72
73 template<class F>
74 void testContainer(const char* s,
75 const concepts::RCP<Container<F> > cnt, F ref);
76
77 template<class F>
78 void testContainer(const char* s,
80 const concepts::Point<F,2> ref);
81 };
82
83} // namespace test
84
85
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
void testVectorSumElementFormula()
test for SumElementFormula for vector element formulas
virtual void run()
Runs the tests. Must be overwritten by the specialization.
void testProductElementFormula()
test for ProductElementFormula
void testVectorElementFormula()
test for VectorElementFormula
void testSumElementFormula()
test for SumElementFormula