dune-typetree  2.4.1
Classes | Namespaces | Typedefs | Functions
childextraction.hh File Reference
#include <dune/common/documentation.hh>
#include <dune/common/typetraits.hh>
#include <dune/common/shared_ptr.hh>
#include <dune/typetree/treepath.hh>

Go to the source code of this file.

Classes

struct  Dune::TypeTree::extract_child_type< Node, TreePath >
 Extract the type of the child of Node at position TreePath. More...
 

Namespaces

 Dune
 
 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. More...
 
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. More...
 
template<typename T >
using Dune::TypeTree::is_flat_index = typename impl::_is_flat_index< typename std::decay< T >::type >::type
 Type trait that determines whether T is a flat index in the context of child extraction. More...
 

Functions

template<typename Node , typename TreePath >
ImplementationDefined & Dune::TypeTree::extract_child (Node &node, Treepath tp)
 Extract the child of a node located at tp (non-const version). More...
 
template<typename Node , typename TreePath >
const ImplementationDefined & Dune::TypeTree::extract_child (const Node &node, Treepath tp)
 Extract the child of a node located at tp (const version). More...
 
template<typename Node , typename TreePath >
ImplementationDefined Dune::TypeTree::extract_child_storage (Node &node, Treepath tp)
 
template<typename Node , typename TreePath >
ImplementationDefined Dune::TypeTree::extract_child_storage (const Node &node, Treepath tp)
 
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. More...
 
template<typename Node , std::size_t... Indices>
ImplementationDefined Dune::TypeTree::child (Node &&node, TreePath< Indices... > treePath)
 Extracts the child of a node given by a static TreePath object. More...
 
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. More...