dune-typetree 2.9
|
Statically accumulate a value over the nodes of a TypeTree. More...
#include <dune/typetree/accumulate_static.hh>
Public Types | |
typedef Functor::result_type | result_type |
The result type of the computation. | |
Static Public Attributes | |
static const result_type | result = accumulate_value<Tree,Functor,Reduction,ParentChildReduction,startValue,HybridTreePath<>,NodeTag<Tree>>::result |
The accumulated result of the computation. | |
Statically accumulate a value over the nodes of a TypeTree.
This struct implements an algorithm for iterating over a tree and calculating an accumulated value at compile time.
Tree | The tree to iterate over. |
Functor | The compile-time functor used for visiting each node. |
This functor must implement the following interface:
Reduction | The reduction operator used to accumulate the per-node results. |
The reduction operator must implement the following interface:
startValue | The starting value fed into the initial accumulation step. |
typedef Functor::result_type Dune::TypeTree::AccumulateValue< Tree, Functor, Reduction, startValue, ParentChildReduction >::result_type |
The result type of the computation.
|
static |
The accumulated result of the computation.