OGS
GenericIntegrationMethod.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
6#include <vector>
7
9
10namespace NumLib
11{
18{
19public:
20 GenericIntegrationMethod(unsigned const order,
21 std::vector<MathLib::WeightedPoint>&& points)
22 : order_{order}, points_{std::move(points)}
23 {
24 }
25
26 unsigned getIntegrationOrder() const { return order_; }
27
28 unsigned getNumberOfPoints() const { return points_.size(); }
29
30 MathLib::WeightedPoint const& getWeightedPoint(unsigned const igp) const
31 {
32 return points_[igp];
33 }
34
35 // forbid accidental copies
38 delete;
41
42private:
43 unsigned order_;
44
45 std::vector<MathLib::WeightedPoint> points_;
46};
47} // 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_