6#ifndef DUNE_TYPETREE_NODEINTERFACE_HH
7#define DUNE_TYPETREE_NODEINTERFACE_HH
12#include <dune/common/documentation.hh>
37 static const bool isLeaf = implementationDefined;
40 static const bool isPower = implementationDefined;
69 template<
typename Node>
70 using NodeTag =
typename std::decay_t<Node>::NodeTag;
78 template<
typename Node>
93 template<
typename Node,
typename NodeTag>
96 return node->degree();
106 template<
typename Node>
std::size_t degree(const Node &node)
Returns the degree of node as run time information.
Definition nodeinterface.hh:79
typename std::decay_t< Node >::NodeTag NodeTag
Returns the node tag of the given Node.
Definition nodeinterface.hh:70
typename std::decay_t< T >::ImplementationTag ImplementationTag
Returns the implementation tag of the given Node.
Definition nodeinterface.hh:74
decltype(Node::degree()) StaticDegree
Returns the statically known degree of the given Node type as a std::integral_constant.
Definition nodeinterface.hh:107
Definition accumulate_static.hh:16
Interface for nodes in a dune-typetree.
Definition nodeinterface.hh:35
static auto degree()
Number of children of this node in the dune-typetree.
static const bool isPower
Whether this is a power node in the dune-typetree.
Definition nodeinterface.hh:40
static const bool isLeaf
Whether this is a leaf node in a dune-typetree.
Definition nodeinterface.hh:37
ImplementationDefined NodeStorage
container type to pass around a collection of children
Definition nodeinterface.hh:65
static const bool isComposite
Whether this is a composite node in the dune-typetree.
Definition nodeinterface.hh:43
ImplementationDefined NodeTag
The type tag that describes what kind of node this is.
Definition nodeinterface.hh:59