![]() |
Dune-Fufem 2.12-git
|
Loading...
Searching...
No Matches
shapefunctioncache.hh
Go to the documentation of this file.
33 static constexpr decltype(auto) accessByTreePath(C&& container, const Dune::TypeTree::TreePath<T...>& path)
46 using JacobianField = typename Dune::PromotionTraits<GeometryField, ReferenceJacobianField>::PromotedType;
48 using type = decltype(std::declval<ReferenceJacobian>()*std::declval<GeometryJacobianInverse>());
56 using JacobianField = typename Dune::PromotionTraits<GeometryField, ReferenceJacobianField>::PromotedType;
121 using FEGlobalJacobian = typename Impl::GlobalJacobianTraits<FEJacobian, GeometryJacobianInverse>::type;
348 using type = Dune::TupleVector<ShapeFunctionCache<Dune::TypeTree::Child<Node, indices>, CT>...>;
355 using TupleVectorOfChildShapeFunctionCaches_t = typename TupleVectorOfChildShapeFunctionCaches<Node, CT, ChildIndices<Node>>::type;
int id()
void invalidate()
int size() const
bool empty() const
void pop_front()
static constexpr IntegralRange< T > range(T from, T to) noexcept
constexpr void forEach(Range &&range, F &&f)
std::ptrdiff_t index() const
typename Impl::ChildTraits< Node, indices... >::type Child
constexpr auto get(std::integer_sequence< T, II... >, std::integral_constant< std::size_t, pos >={})
constexpr index_constant< 0 > _0
constexpr auto front() const
decltype(std::declval< T1 >()+std::declval< T2 >()) PromotedType
A class for managing caches of different types.
Definition shapefunctioncache.hh:644
auto & getCache(size_type index)
Obtain a registered cache.
Definition shapefunctioncache.hh:806
CacheManager(const CacheManager &other)=default
void invalidate()
Invalidate all stores caches.
Definition shapefunctioncache.hh:756
CacheManager & operator=(const CacheManager &)=delete
size_type registerCache(UniqueCacheId uniqueCacheId, Cache &&cache)
Register a new cache.
Definition shapefunctioncache.hh:782
CacheManager()=default
void setRule(const QuadratureRule &rule)
Set the associated quadrature rule for all stored caches.
Definition shapefunctioncache.hh:746
CacheManager(CacheManager &&other)=default
const QuadratureRule & rule() const
Obtain the associated quadrature rule.
Definition shapefunctioncache.hh:738
void clear()
Clear all stored data.
Definition shapefunctioncache.hh:728
A cache providing multiple versions for different quadrature rules.
Definition shapefunctioncache.hh:466
Cache & operator[](const QuadratureRuleKey &key)
Definition shapefunctioncache.hh:512
Cache & operator[](const FacetKey &facetKey)
Definition shapefunctioncache.hh:520
Cache & prototype()
Definition shapefunctioncache.hh:528
const auto & getValues()
Definition shapefunctioncache.hh:197
ShapeFunctionCache(const QuadratureRule &rule, const Node &node)
Definition shapefunctioncache.hh:127
const auto & getJacobians()
Definition shapefunctioncache.hh:210
ShapeFunctionCache(const Node &node)
Definition shapefunctioncache.hh:139
ChildCache & operator[](std::size_t i)
Definition shapefunctioncache.hh:310
const auto & getGlobalJacobians()
Definition shapefunctioncache.hh:223
typename std::vector< std::vector< FEValue > > ValueCache
Definition shapefunctioncache.hh:123
typename Node::FiniteElement::Traits::LocalBasisType::Traits::JacobianType FEJacobian
Definition shapefunctioncache.hh:120
typename Node::FiniteElement::Traits::LocalBasisType::Traits::RangeType FEValue
Definition shapefunctioncache.hh:119
ShapeFunctionCache(const QuadratureRule &rule)
Definition shapefunctioncache.hh:133
ShapeFunctionCache(const ShapeFunctionCache &other)=default
typename std::vector< std::vector< FEJacobian > > JacobianCache
Definition shapefunctioncache.hh:124
void setNonAffine()
Definition shapefunctioncache.hh:165
void setTree(const Node &node)
Definition shapefunctioncache.hh:160
void invalidate()
Definition shapefunctioncache.hh:175
constexpr std::size_t size() const noexcept
Definition shapefunctioncache.hh:328
typename std::vector< std::vector< FEGlobalJacobian > > GlobalJacobianCache
Definition shapefunctioncache.hh:125
const ChildCache & operator[](std::size_t i) const
Definition shapefunctioncache.hh:304
ShapeFunctionCache()=default
const QuadratureRule & rule() const
Definition shapefunctioncache.hh:170
void setRule(const QuadratureRule &rule)
Definition shapefunctioncache.hh:149
typename Impl::GlobalJacobianTraits< FEJacobian, GeometryJacobianInverse >::type FEGlobalJacobian
Definition shapefunctioncache.hh:121
A hierarchic cache for storing shape function evaluations for a tree.
Definition shapefunctioncache.hh:106
A simple cache implementation storing values.
Definition shapefunctioncache.hh:837
SimpleCache(bool isNonAffine)
Definition shapefunctioncache.hh:845
void setEmpty(bool isEmpty)
Definition shapefunctioncache.hh:879
void setNonAffine()
Definition shapefunctioncache.hh:863
const QuadratureRule & rule() const
Definition shapefunctioncache.hh:858
void setRule(const QuadratureRule &rule)
Definition shapefunctioncache.hh:851
SimpleCache(const SimpleCache &other)=default
const auto & getValues() const
Definition shapefunctioncache.hh:889
typename std::vector< Value > ValueCache
Definition shapefunctioncache.hh:843
Objects of this class are used to uniquely identifies a cache.
Definition shapefunctioncache.hh:571
UniqueCacheId(const T &t)
Create UniqueCacheId associated to given object.
Definition shapefunctioncache.hh:584
static UniqueCacheId makeUniqueCacheId()
Create a globally unique UniqueCacheId.
Definition shapefunctioncache.hh:596
Quadrature rule for a subentity of some given geometry type.
Definition subentityquadraturerule.hh:31
Definition quadraturerulecache.hh:200
static const Dune::QuadratureRule< coord_type, dim > & rule(const Dune::GeometryType >, const int order, int refinement)
Definition quadraturerulecache.hh:206
T clear(T... args)
T end(T... args)
T endl(T... args)
T find(T... args)
T forward(T... args)
T make_pair(T... args)
Definition baseclass.hh:22
STL namespace.
T push_back(T... args)
T size(T... args)
