1 #ifndef DUNE_PDELAB_COMMON_QUADRATURERULES_HH 2 #define DUNE_PDELAB_COMMON_QUADRATURERULES_HH 4 #include <dune/geometry/quadraturerules.hh> 46 return _quadrature_rule->order();
52 return _quadrature_rule->type();
58 return _quadrature_rule->size();
64 return _quadrature_rule->begin();
70 return _quadrature_rule->end();
76 : _quadrature_rule(&quadrature_rule)
83 const QR* _quadrature_rule;
110 template<
typename Geometry>
113 typename Geometry::ctype,
114 Geometry::mydimension
117 quadratureRule(
const Geometry& geo, std::size_t
order, QuadratureType::Enum quadrature_type = QuadratureType::GaussLegendre)
119 return { QuadratureRules<typename Geometry::ctype,Geometry::mydimension>::rule(geo.type(),
order,quadrature_type) };
130 #endif // DUNE_PDELAB_COMMON_QUADRATURERULES_HH QuadratureRuleWrapper< QuadratureRule< typename Geometry::ctype, Geometry::mydimension > > quadratureRule(const Geometry &geo, std::size_t order, QuadratureType::Enum quadrature_type=QuadratureType::GaussLegendre)
Returns a quadrature rule for the given geometry.
Definition: quadraturerules.hh:117
typename QR::const_iterator const_iterator
A const iterator over the quadrature points.
Definition: quadraturerules.hh:38
Wrapper for Dune::QuadratureRule with value semantics.
Definition: quadraturerules.hh:26
const_iterator iterator
An iterator over the quadrature points (always const, as the container is read-only).
Definition: quadraturerules.hh:41
int order() const
Returns the maximum polynomial order up to which this rule is exact.
Definition: quadraturerules.hh:44
size_type size() const
Returns the number of quadrature points.
Definition: quadraturerules.hh:56
typename QR::CoordType CoordType
The coordinate type of the local coordinates of the rule.
Definition: quadraturerules.hh:32
const_iterator begin() const
Returns an iterator pointing to the first quadrature point.
Definition: quadraturerules.hh:62
typename QR::size_type size_type
The size type used by the container.
Definition: quadraturerules.hh:35
GeometryType type() const
Returns the geometry type that this rule is valid for.
Definition: quadraturerules.hh:50
const_iterator end() const
Returns an iterator pointing after the last quadrature point.
Definition: quadraturerules.hh:68
For backward compatibility – Do not use this!
Definition: adaptivity.hh:27