OGS
GenericIntegrationMethod.h
Go to the documentation of this file.
1 
10 #pragma once
11 
12 #include <vector>
13 
14 #include "MathLib/WeightedPoint.h"
15 
16 namespace NumLib
17 {
24 {
25 public:
26  GenericIntegrationMethod(unsigned const order,
27  std::vector<MathLib::WeightedPoint>&& points)
28  : order_{order}, points_{std::move(points)}
29  {
30  }
31 
32  unsigned getIntegrationOrder() const { return order_; }
33 
34  unsigned getNumberOfPoints() const { return points_.size(); }
35 
36  MathLib::WeightedPoint const& getWeightedPoint(unsigned const igp) const
37  {
38  return points_[igp];
39  }
40 
41  // forbid accidental copies
44  delete;
47 
48 private:
49  unsigned order_;
50 
51  std::vector<MathLib::WeightedPoint> points_;
52 };
53 } // namespace NumLib
GenericIntegrationMethod & operator=(GenericIntegrationMethod &&)=default
GenericIntegrationMethod(unsigned const order, std::vector< MathLib::WeightedPoint > &&points)
GenericIntegrationMethod(GenericIntegrationMethod const &)=delete
GenericIntegrationMethod & operator=(GenericIntegrationMethod const &)=delete
MathLib::WeightedPoint const & getWeightedPoint(unsigned const igp) const
GenericIntegrationMethod(GenericIntegrationMethod &&)=default
std::vector< MathLib::WeightedPoint > points_