6 #include <dune/common/concept.hh> 8 #include <dune/functions/common/indexaccess.hh> 10 #include <amdis/common/Concepts.hpp> 26 template <
class Node,
class TreePath,
class Range,
28 decltype(
auto) operator()(
const Node& node,
const TreePath& treePath, Range&& y)
const 30 return Dune::Functions::resolveStaticMultiIndex(y, transformTreePath(treePath));
34 template <
class Node,
class TreePath,
class Range,
36 decltype(
auto) operator()(
const Node& node,
const TreePath& treePath, Range&& y)
const 38 return std::forward<Range>(y);
44 template <
class TreePath>
45 static auto transformTreePath(TreePath
const& treePath)
47 return Ranges::apply([](
auto... i) {
return Dune::makeTupleVector(i...); }, treePath._data);
Definition: AdaptBase.hpp:6
constexpr bool HasIndexAccess
A Dune::Functions::HasIndexAccess type.
Definition: Concepts.hpp:158
A simple node to range map using the nested tree indices.
Definition: HierarchicNodeToRangeMap.hpp:23