Dune Core Modules (2.9.0)
#include <dune/typetree/accumulate_static.hh>
Public Types | |
typedef Functor | functor |
typedef Reduction | sibling_reduction |
typedef ParentChildReduction | parent_child_reduction |
typedef StartType | start_type |
typedef ReductionAlgorithm | reduction_strategy |
Detailed Description
struct Dune::TypeTree::TypeAccumulationPolicy< Functor, Reduction, StartType, ParentChildReduction, ReductionAlgorithm >
Policy for controlling the static type accumulation algorithm AccumulateType. See the documentation of nested types for further information.
- Template Parameters
-
startType The start type fed into the initial accumulation step.
Member Typedef Documentation
◆ functor
typedef Functor Dune::TypeTree::TypeAccumulationPolicy< Functor, Reduction, StartType, ParentChildReduction, ReductionAlgorithm >::functor |
The compile-time functor used for visiting each node.
This functor must implement the following interface:
◆ parent_child_reduction
typedef ParentChildReduction Dune::TypeTree::TypeAccumulationPolicy< Functor, Reduction, StartType, ParentChildReduction, ReductionAlgorithm >::parent_child_reduction |
The reduction operator used to combine the accumulated result of all children of a node with the result of the parent node.
This operator has the same interface as sibling_reduction.
◆ reduction_strategy
typedef ReductionAlgorithm Dune::TypeTree::TypeAccumulationPolicy< Functor, Reduction, StartType, ParentChildReduction, ReductionAlgorithm >::reduction_strategy |
The strategy for performing the type reduction with regard to the tree structure. Valid values are flattened_reduction and bottom_up_reduction.
◆ sibling_reduction
typedef Reduction Dune::TypeTree::TypeAccumulationPolicy< Functor, Reduction, StartType, ParentChildReduction, ReductionAlgorithm >::sibling_reduction |
The reduction operator used to accumulate the per-node results of sibling nodes.
The reduction operator must implement the following interface:
◆ start_type
typedef StartType Dune::TypeTree::TypeAccumulationPolicy< Functor, Reduction, StartType, ParentChildReduction, ReductionAlgorithm >::start_type |
The initial result type. This type will be feed as first operand to the reduction operators when doing the first accumulation (and there is no calculated result to accumulate with yet).
The documentation for this struct was generated from the following file:
- dune/typetree/accumulate_static.hh