3 #ifndef DUNE_PDELAB_BACKEND_ISTL_UTILITY_HH 4 #define DUNE_PDELAB_BACKEND_ISTL_UTILITY_HH 9 #include <dune/common/typetraits.hh> 10 #include <dune/common/deprecated.hh> 28 template<
typename T, std::
size_t depth,
typename Tag>
31 template<
typename T, std::
size_t depth>
32 struct nesting_depth<T,depth,tags::block_vector>
33 :
public nesting_depth<typename T::block_type,depth+1,typename tags::container<typename T::block_type>::type::base_tag>
36 template<
typename T, std::
size_t depth>
37 struct nesting_depth<T,depth,tags::dynamic_vector>
38 :
public std::integral_constant<std::size_t,depth+1>
41 template<
typename T, std::
size_t depth>
42 struct nesting_depth<T,depth,tags::field_vector>
43 :
public std::integral_constant<std::size_t,depth+1>
46 template<
typename T, std::
size_t depth>
47 struct nesting_depth<T,depth,tags::bcrs_matrix>
48 :
public nesting_depth<typename T::block_type,depth+1,typename tags::container<typename T::block_type>::type::base_tag>
51 template<
typename T, std::
size_t depth>
52 struct nesting_depth<T,depth,tags::dynamic_matrix>
53 :
public std::integral_constant<std::size_t,depth+1>
56 template<
typename T, std::
size_t depth>
57 struct nesting_depth<T,depth,tags::field_matrix>
58 :
public std::integral_constant<std::size_t,depth+1>
72 :
public impl::nesting_depth<T,0,typename tags::container<T>::type::base_tag>
79 #endif // DUNE_PDELAB_BACKEND_ISTL_UTILITY_HH TMP for figuring out the depth up to which ISTL containers are nested.
Definition: backend/istl/utility.hh:71
For backward compatibility – Do not use this!
Definition: adaptivity.hh:27