Dune Core Modules (2.7.1)
Dune::RefinementImp::Traits< topologyId, CoordType, coerceToId, dimension, Dummy > Struct Template Reference
Mapping from geometryType, CoordType and coerceTo to a particular Refinement implementation. More...
Detailed Description
template<unsigned topologyId, class CoordType, unsigned coerceToId, int dimension, class Dummy = void>
struct Dune::RefinementImp::Traits< topologyId, CoordType, coerceToId, dimension, Dummy >
struct Dune::RefinementImp::Traits< topologyId, CoordType, coerceToId, dimension, Dummy >
Mapping from geometryType, CoordType and coerceTo to a particular Refinement implementation.
- Template Parameters
-
topologyId The topology id of the element to refine CoordType The C++ type of the coordinates coerceToId The topologyId of the subelements dimension The dimension of the refinement. Dummy Dummy parameter which can be used for SFINAE, should always be void.
Each Refinement implementation has to define one or more specialisations of this struct to declare what it implements. Template class Refinement uses this struct to know which implementation it should inherit from. Since non-type template arguments of specializations may not involve template parameters, it is often impossible to specify the specialization for all cases directly. As the workaround, the template parameter Dummy can be used for SFINAE with enable_if.
Each specialisation should contain a single member typedef Imp, e.g.:
template<class CoordType>
struct Traits<sphereTopologyId, CoordType, Impl::CubeToplogy<2>::id, 2>
{
typedef SquaringTheCircle::Refinement Imp;
};
Mapping from geometryType, CoordType and coerceTo to a particular Refinement implementation.
Definition: base.cc:68
The documentation for this struct was generated from the following file:
- dune/geometry/refinement/base.cc
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 12, 23:30, 2024)