dune-typetree 2.10
Loading...
Searching...
No Matches
childextraction.hh File Reference
#include <type_traits>
#include <utility>
#include <dune/common/concept.hh>
#include <dune/common/documentation.hh>
#include <dune/common/typetraits.hh>
#include <dune/common/shared_ptr.hh>
#include <dune/typetree/nodeinterface.hh>
#include <dune/typetree/treepath.hh>

Go to the source code of this file.

Namespaces

namespace  Dune
namespace  Dune::TypeTree

Typedefs

template<typename Node, std::size_t... indices>
using Dune::TypeTree::Child = typename impl::_Child<Node,indices...>::type
 Template alias for the type of a child node given by a list of child indices.
template<typename Node, typename TreePath>
using Dune::TypeTree::ChildForTreePath = typename impl::_ChildForTreePath<Node,TreePath>::type
 Template alias for the type of a child node given by a TreePath or a HybridTreePath type.
template<typename T>
using Dune::TypeTree::is_flat_index = typename impl::_is_flat_index<std::decay_t<T>>::type
 Type trait that determines whether T is a flat index in the context of child extraction.

Functions

template<typename Node, typename... Indices>
ImplementationDefined Dune::TypeTree::child (Node &&node, Indices... indices)
 Extracts the child of a node given by a sequence of compile-time and run-time indices.
template<typename Node, typename... Indices>
ImplementationDefined Dune::TypeTree::childStorage (Node &&node, Indices... indices)
template<typename Node, typename... Indices>
ImplementationDefined Dune::TypeTree::child (Node &&node, HybridTreePath< Indices... > treePath)
 Extracts the child of a node given by a HybridTreePath object.