dune-typetree 2.8.0
|
#include <dune/typetree/visitor.hh>
Public Member Functions | |
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 childIndex, U u) const |
template<class Tree , class TreePath , class U > | |
auto | leaf (Tree &&, TreePath, U u) const |
template<typename T , typename TreePath , typename U > | |
auto | pre (T &&t, TreePath treePath, const U &u) const |
Method for prefix tree traversal. More... | |
template<typename T , typename TreePath , typename U > | |
auto | in (T &&t, TreePath treePath, const U &u) const |
Method for infix tree traversal. More... | |
template<typename T , typename TreePath , typename U > | |
auto | post (T &&t, TreePath treePath, const U &u) const |
Method for postfix tree traversal. More... | |
template<typename T , typename TreePath , typename U > | |
auto | leaf (T &&t, TreePath treePath, const U &u) const |
Method for leaf traversal. More... | |
template<typename T , typename Child , typename TreePath , typename ChildIndex , typename U > | |
auto | beforeChild (T &&t, Child &&child, TreePath treePath, ChildIndex childIndex, const U &u) const |
Method for parent-child traversal. More... | |
template<typename T , typename Child , typename TreePath , typename ChildIndex , typename U > | |
auto | afterChild (T &&t, Child &&child, TreePath treePath, ChildIndex childIndex, const U &u) const |
Method for child-parent traversal. More... | |
Static Public Attributes | |
static const TreePathType::Type | treePathType = TreePathType::fullyStatic |
Use the static tree traversal algorithm. More... | |
|
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. |
|
inline |
|
inline |
|
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. |
|
inline |
|
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. |
|
staticinherited |
Use the static tree traversal algorithm.