dune-typetree  2.8-git
Public Types | Static Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
Dune::TypeTree::LeafNode Class Reference

Base class for leaf nodes in a dune-typetree. More...

#include <dune/typetree/leafnode.hh>

Public Types

typedef LeafNodeTag NodeTag
 The type tag that describes a LeafNode. More...
 

Static Public Member Functions

static constexpr auto degree ()
 

Static Public Attributes

static const bool isLeaf = true
 Mark this class as a leaf in a dune-typetree. More...
 
static const bool isPower = false
 Mark this class as a non power in the dune-typetree. More...
 
static const bool isComposite = false
 Mark this class as a non composite in the dune-typetree. More...
 
static const std::size_t CHILDREN = 0
 Leafs have no children. More...
 

Protected Member Functions

 LeafNode ()
 Default constructor. More...
 

Detailed Description

Base class for leaf nodes in a dune-typetree.

Every leaf type in a dune-typetree must be derived from this class.

Member Typedef Documentation

◆ NodeTag

The type tag that describes a LeafNode.

Constructor & Destructor Documentation

◆ LeafNode()

Dune::TypeTree::LeafNode::LeafNode ( )
inlineprotected

Default constructor.

The default constructor is protected, as LeafNode is a utility class that needs to be filled with meaning by subclassing it and adding useful functionality to the subclass.

Member Function Documentation

◆ degree()

static constexpr auto Dune::TypeTree::LeafNode::degree ( )
inlinestaticconstexpr

Member Data Documentation

◆ CHILDREN

const std::size_t Dune::TypeTree::LeafNode::CHILDREN = 0
static

Leafs have no children.

◆ isComposite

const bool Dune::TypeTree::LeafNode::isComposite = false
static

Mark this class as a non composite in the dune-typetree.

◆ isLeaf

const bool Dune::TypeTree::LeafNode::isLeaf = true
static

Mark this class as a leaf in a dune-typetree.

◆ isPower

const bool Dune::TypeTree::LeafNode::isPower = false
static

Mark this class as a non power in the dune-typetree.


The documentation for this class was generated from the following file: