DUNE PDELab (git)

Dune::PDELab::QuadratureRuleWrapper< QR > Class Template Reference

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.
 
using size_type = typename QR::size_type
 The size type used by the container.
 
using const_iterator = typename QR::const_iterator
 A const iterator over the quadrature points.
 
using iterator = const_iterator
 An iterator over the quadrature points (always const, as the container is read-only).
 

Public Member Functions

int order () const
 Returns the maximum polynomial order up to which this rule is exact.
 
GeometryType type () const
 Returns the geometry type that this rule is valid for.
 
size_type size () const
 Returns the number of quadrature points.
 
const_iterator begin () const
 Returns an iterator pointing to the first quadrature point.
 
const_iterator end () const
 Returns an iterator pointing after the last quadrature point.
 

Detailed Description

template<typename QR>
class Dune::PDELab::QuadratureRuleWrapper< QR >

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.

Note
Users will normally not construct a QuadratureRuleWrapper directly, but obtain the rule by calling Dune::PDELab::quadratureRule().

The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Jul 15, 22:36, 2024)