1#ifndef DUNE_FEM_POINTPROVIDER_HH
2#define DUNE_FEM_POINTPROVIDER_HH
9#include <dune/common/math.hh>
22 template<
class ct,
int dim,
int codim >
25 static_assert( (codim >= 0) && (codim <= 1),
26 "PointProvider exists only for codimension 0 and 1." );
29 template <
class ct,
int dim>
47 const GeometryType& elementGeo);
50 typedef std::map<const QuadratureKeyType, GlobalPointVectorType> PointContainerType;
51 typedef typename PointContainerType::iterator PointIteratorType;
54 PointContainerType points_;
56 static PointContainerType& points()
58 return instance().points_;
61 static ThisType& instance()
68 template <
class ct,
int dim>
90 const GeometryType& elementGeo);
95 const GeometryType& elementGeo);
98 const GeometryType& elementGeo);
101 typedef std::map<const QuadratureKeyType, GlobalPointVectorType> PointContainerType;
102 typedef std::map<const QuadratureKeyType, MapperVectorPairType > MapperContainerType;
104 typedef typename PointContainerType::iterator PointIteratorType;
105 typedef typename MapperContainerType::iterator MapperIteratorType;
111 GeometryType elementGeo);
115 PointContainerType points_;
117 MapperContainerType mappers_;
119 static PointContainerType& points() {
return instance().points_; }
120 static MapperContainerType& mappers() {
return instance().mappers_; }
122 static ThisType& instance()
124 return Singleton< ThisType > :: instance();
Definition: bindguard.hh:11
Definition: pointmapper.hh:18
Definition: pointmapper.hh:52
std::vector< MapperType > MapperVectorType
Definition: pointmapper.hh:60
QuadratureType::CoordinateType PointType
extracted types from integration point list
Definition: pointmapper.hh:56
std::vector< size_t > MapperType
Definition: pointmapper.hh:58
std::vector< PointType > PointVectorType
Definition: pointmapper.hh:57
Definition: pointprovider.hh:24
Definition: pointprovider.hh:31
Traits::PointVectorType GlobalPointVectorType
Definition: pointprovider.hh:38
Traits::QuadratureType QuadratureType
Definition: pointprovider.hh:37
Traits::QuadratureKeyType QuadratureKeyType
Definition: pointprovider.hh:39
Definition: pointprovider.hh:70
std::pair< MapperVectorType, MapperVectorType > MapperVectorPairType
Definition: pointprovider.hh:85
FieldVector< ct, dim > GlobalPointType
Definition: pointprovider.hh:82
Traits::QuadratureKeyType QuadratureKeyType
Definition: pointprovider.hh:84
Traits::PointType LocalPointType
Definition: pointprovider.hh:78
Traits::QuadratureType QuadratureType
Definition: pointprovider.hh:77
Traits::MapperType MapperType
Definition: pointprovider.hh:80
Traits::PointVectorType LocalPointVectorType
Definition: pointprovider.hh:79
Traits::MapperVectorType MapperVectorType
Definition: pointprovider.hh:81
std::vector< GlobalPointType > GlobalPointVectorType
Definition: pointprovider.hh:83
return singleton instance of given Object type.
Definition: singleton.hh:88