dune-pdelab
2.4.1
|
Wrapper for Dune::QuadratureRule with value semantics. More...
#include <dune/pdelab/common/quadraturerules.hh>
Public Types | |
using | CoordType = typename QR::CoordType |
The coordinate type of the local coordinates of the rule. More... | |
using | size_type = typename QR::size_type |
The size type used by the container. More... | |
using | const_iterator = typename QR::const_iterator |
A const iterator over the quadrature points. More... | |
using | iterator = const_iterator |
An iterator over the quadrature points (always const, as the container is read-only). More... | |
Public Member Functions | |
int | order () const |
Returns the maximum polynomial order up to which this rule is exact. More... | |
GeometryType | type () const |
Returns the geometry type that this rule is valid for. More... | |
size_type | size () const |
Returns the number of quadrature points. More... | |
const_iterator | begin () const |
Returns an iterator pointing to the first quadrature point. More... | |
const_iterator | end () const |
Returns an iterator pointing after the last quadrature point. More... | |
Wrapper for Dune::QuadratureRule with value semantics.
This class wraps a Dune::QuadratureRule and exposes the relevant parts of its interface (iteration, size, order and geometry information). It does, however, not leak internal information by inheriting from std::vector, so you should not rely on the additional types and methods inherited from std::vector.
In contrast to Dune::QuadratureRule, QuadratureRuleWrapper should be used with value semantics, i.e. you should store it by value (not by reference) and create copies as needed. Copies are very cheap, as the class internally only stores a reference to the underlying QuadratureRule.
using Dune::PDELab::QuadratureRuleWrapper< QR >::const_iterator = typename QR::const_iterator |
A const iterator over the quadrature points.
using Dune::PDELab::QuadratureRuleWrapper< QR >::CoordType = typename QR::CoordType |
The coordinate type of the local coordinates of the rule.
using Dune::PDELab::QuadratureRuleWrapper< QR >::iterator = const_iterator |
An iterator over the quadrature points (always const, as the container is read-only).
using Dune::PDELab::QuadratureRuleWrapper< QR >::size_type = typename QR::size_type |
The size type used by the container.
|
inline |
Returns an iterator pointing to the first quadrature point.
|
inline |
Returns an iterator pointing after the last quadrature point.
|
inline |
Returns the maximum polynomial order up to which this rule is exact.
Referenced by Dune::PDELab::quadratureRule().
|
inline |
Returns the number of quadrature points.
|
inline |
Returns the geometry type that this rule is valid for.