Loading...
Searching...
No Matches
Dune::TypeTree::Concept::StaticDegreeInnerTreeNode Concept Reference

Model of an inner node of a typetree with compile time known degree and child access via index_constant. More...

`#include <dune/common/typetree/nodeconcepts.hh>`

## Concept definition

template<class Node>
concept Dune::TypeTree::Concept::StaticDegreeInnerTreeNode = TreeNode<Node> && requires(Node node)
{
std::remove_cvref_t<Node>::degree();
requires IsCompileTimeConstant<decltype(std::remove_cvref_t<Node>::degree())>::value;
requires Impl::HasConstExprDegree<Node> and Impl::HasPositiveDegree<Node>;
node.child(index_constant<0>());
node.child(index_constant<(std::remove_cvref_t<Node>::degree()-1)>());
}
Dune::index_constant
std::integral_constant< std::size_t, i > index_constant
An index constant with value i.
Definition indices.hh:29
Dune::IsCompileTimeConstant
Check if T is an integral constant or any type derived from std::integral_constant.
Definition typetraits.hh:411
Dune::TypeTree::Concept::TreeNode
Model of a node of a typetree.
Definition nodeconcepts.hh:34
Dune::TypeTree::Concept::StaticDegreeInnerTreeNode
Model of an inner node of a typetree with compile time known degree and child access via index_consta...
Definition nodeconcepts.hh:41

## Detailed Description

Model of an inner node of a typetree with compile time known degree and child access via index_constant.