shapefunction.hh

Go to the documentation of this file.
1 
6 #ifndef shapefunction_hh
7 #define shapefunction_hh
8 
10 
11 namespace 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 
45  F* values_;
46  private:
48  uint n_;
49 
51  uint nP_;
52  };
53 
54 } // namespace concepts
55 
56 #endif // shapefunction_hh
uint n() const
Returns the number of shape functions.
F * values_
Values of the shape functions.
uint nP() const
Returns the number of abscissas (in which the shape functions are evaluated)
ShapeFunction1D(const uint n, const uint nP)
Constructor.
const F * values() const
Returns the values of the shape functions.
virtual std::ostream & info(std::ostream &os) const =0
Returns information in an output stream.
uint n_
Number of shape functions.
uint nP_
Number of points in which the shape functions are evaluated.
Abstract class for 1D shape function.
Class providing an output operator.
Basic namespace for Concepts-2.
Definition: pml_formula.h:16
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich