OGS
GenericIntegrationMethod.h
Go to the documentation of this file.
1
10#pragma once
11
12#include <vector>
13
15
16namespace NumLib
17{
24{
25public:
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
48private:
49 unsigned order_;
50
51 std::vector<MathLib::WeightedPoint> points_;
52};
53} // namespace NumLib
GenericIntegrationMethod(unsigned const order, std::vector< MathLib::WeightedPoint > &&points)
GenericIntegrationMethod(GenericIntegrationMethod const &)=delete
MathLib::WeightedPoint const & getWeightedPoint(unsigned const igp) const
GenericIntegrationMethod & operator=(GenericIntegrationMethod &&)=default
GenericIntegrationMethod(GenericIntegrationMethod &&)=default
GenericIntegrationMethod & operator=(GenericIntegrationMethod const &)=delete
std::vector< MathLib::WeightedPoint > points_