dune-typetree  2.4-dev
nodeinterface.hh
Go to the documentation of this file.
1 // -*- tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 // vi: set et ts=8 sw=2 sts=2:
3 
4 #ifndef DUNE_TYPETREE_NODEINTERFACE_HH
5 #define DUNE_TYPETREE_NODEINTERFACE_HH
6 
7 #include <cstddef>
8 
9 #include <dune/common/documentation.hh>
10 
11 namespace Dune {
12  namespace TypeTree {
13 
31  {
33  static const bool isLeaf = implementationDefined;
34 
36  static const bool isPower = implementationDefined;
37 
39  static const bool isComposite = implementationDefined;
40 
42  static const std::size_t CHILDREN = implementationDefined;
43 
45 
50  typedef ImplementationDefined NodeTag;
51 
53 
56  typedef ImplementationDefined NodeStorage;
57  };
58 
60 
61  } // namespace TypeTree
62 } //namespace Dune
63 
64 #endif // DUNE_TYPETREE_NODEINTERFACE_HH
Definition: accumulate_static.hh:12
static const bool isLeaf
Whether this is a leaf node in a dune-typetree.
Definition: nodeinterface.hh:33
Interface for nodes in a dune-typetree.
Definition: nodeinterface.hh:30
ImplementationDefined NodeTag
The type tag that describes what kind of node this is.
Definition: nodeinterface.hh:50
ImplementationDefined NodeStorage
container type to pass around a collection of children
Definition: nodeinterface.hh:56
static const bool isComposite
Whether this is a composite node in the dune-typetree.
Definition: nodeinterface.hh:39
static const bool isPower
Whether this is a power node in the dune-typetree.
Definition: nodeinterface.hh:36
static const std::size_t CHILDREN
Number of children of this node in the dune-typetree.
Definition: nodeinterface.hh:42