Commit 6753dfc1 authored by Christian Engwer's avatar Christian Engwer

[TreePath] remove last bits of deprecated TreePath

we remove specializations of TreePath, as this now only an alias and
this the HybridTreePath version matches.
parent bfd48a0f
Pipeline #27524 passed with stage
in 1 minute and 33 seconds
......@@ -142,46 +142,6 @@ namespace Dune {
return Impl::childStorageImpl(&node,indices...);
}
//! Extracts the child of a node given by a static TreePath object.
/**
* Use this function to extract a (possibly indirect) child of a TypeTree node.
*
* Example:
*
* \code{.cc}
* Dune::TypeTree::TreePath<4,2,0,1> tp;
* auto&& c = child(node,tp);
* \endcode
*
* returns the second child of the first child of the third child
* of the fifth child of node.
*
* \param node The node from which to extract the child.
* \param treePath A TreePath object that describes the path into the tree to the
* wanted child.
* \return A reference to the child, its cv-qualification depends on the passed-in node.
*/
template<typename Node, std::size_t... Indices>
#ifdef DOXYGEN
ImplementationDefined child (Node&& node, TreePath<Indices...> treePath)
#else
decltype(auto) child (Node&& node, TreePath<Indices...>)
#endif
{
return Impl::childImpl(std::forward<Node>(node),index_constant<Indices>{}...);
}
template<typename Node, std::size_t... Indices>
#ifdef DOXYGEN
ImplementationDefined childStorage (Node&& node, TreePath<Indices...> treePath)
#else
auto childStorage (Node&& node, TreePath<Indices...>)
#endif
{
static_assert(sizeof...(Indices) > 0, "childStorage() cannot be called with an empty TreePath");
return Impl::childStorageImpl(&node,index_constant<Indices>{}...);
}
//! Extracts the child of a node given by a HybridTreePath object.
/**
* Use this function to extract a (possibly indirect) child of a TypeTree node.
......
......@@ -164,14 +164,6 @@ namespace Dune {
return std::false_type();
}
// Overload for instances of TreePath<...>
template<std::size_t... i>
constexpr auto isTreePath(const TreePath<i...>*)
-> std::true_type
{
return std::true_type();
}
// Overload for instances of HybridTreePath<...>
template<class... I>
constexpr auto isTreePath(const HybridTreePath<I...>*)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment