|
dune-typetree 2.11
|
#include <dune/typetree/visitor.hh>

Public Member Functions | |
| template<typename Tree, typename TreePath, typename U> | |
| auto | pre (Tree &&, TreePath, U u) const |
| template<class Tree, class Child, class TreePath, class ChildIndex, class U> | |
| auto | beforeChild (Tree &&, Child &&, TreePath, ChildIndex, U u) const |
| template<class Tree, class Child, class TreePath, class U> | |
| std::size_t | beforeChild (Tree &&, Child &&, TreePath, std::size_t, U u) const |
| template<typename T, typename Child, typename TreePath, typename ChildIndex, typename U> | |
| auto | beforeChild (T &&, Child &&, TreePath, ChildIndex, const U &u) const |
| Method for parent-child traversal. | |
| template<class Tree, class TreePath, class U> | |
| auto | leaf (Tree &&, TreePath, U u) const |
| template<typename T, typename TreePath, typename U> | |
| auto | leaf (T &&, TreePath, const U &u) const |
| Method for leaf traversal. | |
| template<typename T, typename TreePath, typename U> | |
| auto | pre (T &&, TreePath, const U &u) const |
| Method for prefix tree traversal. | |
| template<typename T, typename TreePath, typename U> | |
| auto | in (T &&, TreePath, const U &u) const |
| Method for infix tree traversal. | |
| template<typename T, typename TreePath, typename U> | |
| auto | post (T &&, TreePath, const U &u) const |
| Method for postfix tree traversal. | |
| template<typename T, typename Child, typename TreePath, typename ChildIndex, typename U> | |
| auto | afterChild (T &&, Child &&, TreePath, ChildIndex, const U &u) const |
| Method for child-parent traversal. | |
Static Public Attributes | |
| static const TreePathType::Type | treePathType = TreePathType::fullyStatic |
| Use the static tree traversal algorithm. | |
|
inlineinherited |
Method for child-parent traversal.
This method gets called after visiting a child node.
| t | The parent node. |
| child | The child node that was visited last (if the visitor did not reject it). |
| treePath | The position of the parent node within the TypeTree. |
| childIndex | The index of the child node in relation to the parent node. |
| u | The carry value from previous visit. |
|
inlineinherited |
Method for parent-child traversal.
This method gets called before visiting a child node.
| t | The parent node. |
| child | The child node that will (potentially) be visited next. |
| treePath | The position of the parent node within the TypeTree. |
| childIndex | The index of the child node in relation to the parent node. |
| u | The carry value from previous visit. |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Method for infix tree traversal.
This method gets called BETWEEN visits of children of a non-leaf node. That definition implies that this method will only be called for nodes with at least two children.
| t | The node to visit. |
| treePath | The position of the node within the TypeTree. |
| u | The carry value from previous visit. |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Method for postfix tree traversal.
This method gets called after all children of a non-leaf node have been visited.
| t | The node to visit. |
| treePath | The position of the node within the TypeTree. |
| u | The carry value from previous visit. |
|
inlineinherited |
Method for prefix tree traversal.
This method gets called when first encountering a non-leaf node and before visiting any of its children.
| t | The node to visit. |
| treePath | The position of the node within the TypeTree. |
| u | The carry value from previous visit. |
|
inline |
|
staticinherited |
Use the static tree traversal algorithm.