3 #include <dune/common/version.hh> 8 template <
class PB,
class TP>
9 auto makeNode(PB
const& preBasis, [[maybe_unused]] TP
const& treePath)
11 return preBasis.makeNode();
15 template <
class PB,
class TP>
16 using Node_t = decltype(makeNode(std::declval<PB>(), std::declval<TP>()));
20 class Tree =
typename PB::Node,
21 class Iter =
typename std::vector<typename PB::MultiIndex>::iterator>
22 using PreBasisHasIndicesConcept
23 = decltype(std::declval<PB>().indices(std::declval<Tree>(), std::declval<Iter>()));
28 template <
class PB,
class TP>
29 auto makeNodeIndexSet(PB
const& preBasis, [[maybe_unused]] TP
const& treePath)
31 if constexpr(Dune::Std::is_detected_v<PreBasisHasIndicesConcept,PB>)
34 return preBasis.makeIndexSet();
38 template <
class PB,
class TP>
39 using NodeIndexSet_t = decltype(makeNodeIndexSet(std::declval<PB>(), std::declval<TP>()));
Definition: AdaptBase.hpp:6