10#include <kernel/util/string.hpp>
36 typename Weight_ =
Real,
37 typename Coord_ =
Real>
81 _weights.resize(std::size_t(num_points));
82 _coords.resize(std::size_t(num_points));
94 other._num_points = 0;
106 _weights = std::forward<std::vector<WeightType>>(other._weights);
107 _coords = std::forward<std::vector<CoordType>>(other._coords);
110 other._num_points = 0;
128 const String& get_name()
const
133 int get_num_points()
const
153 return _coords[std::size_t(i)];
159 return _coords[std::size_t(i)];
#define ASSERTM(expr, msg)
Debug-Assertion macro definition with custom message.
Scalar Cubature Rule class template.
int _num_points
The total number of points in the cubature rule.
String _name
The name of the cubature rule.
virtual ~Rule()
virtual destructor
Rule(int num_points, String name)
Constructor.
std::vector< CoordType > _coords
Cubature point coordinates array.
Rule & operator=(Rule &&other)
move-assign operator
Coord_ CoordType
Coord typedef.
Rule()
default constructor
Weight_ WeightType
Weight typedef.
Rule(Rule &&other)
move ctor
std::vector< WeightType > _weights
Cubature weights array.
String class implementation.
double Real
Real data type.