Class documentation of Concepts

Loading...
Searching...
No Matches
shapefunction.hh
Go to the documentation of this file.
1
6#ifndef shapefunction_hh
7#define shapefunction_hh
8
10
11namespace concepts {
12
13 // ********************************************************* ShapeFunction **
14
23 template<class F>
24 class ShapeFunction1D : public virtual OutputOperator {
25 public:
31 ShapeFunction1D(const uint n, const uint nP) :
32 values_(0), n_(n), nP_(nP) {}
33 virtual ~ShapeFunction1D() {}
35 uint n() const { return n_; }
38 uint nP() const { return nP_; }
40 const F* values() const { return values_; }
41 protected:
42 virtual std::ostream& info(std::ostream& os) const = 0;
43
46 private:
48 uint n_;
49
51 uint nP_;
52 };
53
54} // namespace concepts
55
56#endif // shapefunction_hh
const F * values() const
Returns the values of the shape functions.
uint n() const
Returns the number of shape functions.
virtual std::ostream & info(std::ostream &os) const =0
Returns information in an output stream.
F * values_
Values of the shape functions.
ShapeFunction1D(const uint n, const uint nP)
Set< F > makeSet(uint n, const F &first,...)
Definition set.hh:320