3#ifndef DUNE_FUNCTIONS_FUNCTIONSPACEBASES_HIERARCHICNODETORANGEMAP_HH
4#define DUNE_FUNCTIONS_FUNCTIONSPACEBASES_HIERARCHICNODETORANGEMAP_HH
12#include <dune/functions/functionspacebases/concepts.hh>
13#include <dune/functions/common/indexaccess.hh>
31 template<
class Node,
class TreePath,
class Range,
32 std::enable_if_t< models<Concept::HasIndexAccess, Range, Dune::index_constant<0>>(),
int> = 0>
33 decltype(
auto) operator()(
const Node& node,
const TreePath&
treePath, Range&& y)
const
38 template<
class Node,
class TreePath,
class Range,
39 std::enable_if_t<not models<Concept::HasIndexAccess, Range, Dune::index_constant<0>>(),
int> = 0>
40 decltype(
auto) operator()(
const Node& node,
const TreePath&
treePath, Range&& y)
const
42 return std::forward<Range>(y);
Infrastructure for concepts.
constexpr HybridTreePath< T... > treePath(const T &... t)
Constructs a new HybridTreePath from the given indices.
Definition: treepath.hh:188
constexpr decltype(auto) resolveStaticMultiIndex(C &&c, const MultiIndex &multiIndex)
Provide multi-index access by chaining operator[].
Definition: indexaccess.hh:399
Dune namespace.
Definition: alignedallocator.hh:14
A simple node to range map using the nested tree indices.
Definition: hierarchicnodetorangemap.hh:30