|
| template<typename T1 , typename T2 , typename TreePath > |
| void | pre (T1 &&t1, T2 &&t2, TreePath treePath) const |
| | Method for prefix tree traversal. More...
|
| |
| template<typename T1 , typename T2 , typename TreePath > |
| void | in (T1 &&t1, T2 &&t2, TreePath treePath) const |
| | Method for infix tree traversal. More...
|
| |
| template<typename T1 , typename T2 , typename TreePath > |
| void | post (T1 &&t1, T2 &&t2, TreePath treePath) const |
| | Method for postfix traversal. More...
|
| |
| template<typename T1 , typename T2 , typename TreePath > |
| void | leaf (T1 &&t1, T2 &&t2, TreePath treePath) const |
| | Method for leaf traversal. More...
|
| |
| template<typename T1 , typename Child1 , typename T2 , typename Child2 , typename TreePath , typename ChildIndex > |
| void | beforeChild (T1 &&t1, Child1 &&child1, T2 &&t2, Child2 &&child2, TreePath treePath, ChildIndex childIndex) const |
| | Method for parent-child traversal. More...
|
| |
| template<typename T1 , typename Child1 , typename T2 , typename Child2 , typename TreePath , typename ChildIndex > |
| void | afterChild (T1 &&t1, Child1 &&child1, T2 &&t2, Child2 &&child2, TreePath treePath, ChildIndex childIndex) const |
| | Method for child-parent traversal. More...
|
| |
Convenience base class for visiting an entire tree pair.
template<typename T1 , typename Child1 , typename T2 , typename Child2 , typename TreePath , typename ChildIndex >
| void Dune::TypeTree::DefaultPairVisitor::afterChild |
( |
T1 && |
t1, |
|
|
Child1 && |
child1, |
|
|
T2 && |
t2, |
|
|
Child2 && |
child2, |
|
|
TreePath |
treePath, |
|
|
ChildIndex |
childIndex |
|
) |
| const |
|
inlineinherited |
Method for child-parent traversal.
This method gets called after visiting a child node.
- Note
- This method gets called even if the visitor decides not to visit the child in question.
- Parameters
-
| t1 | The node of the first tree to visit. |
| child1 | The child of t1 to visit. |
| t2 | The node of the second tree to visit. |
| child2 | The child of t2 to visit. |
| treePath | The position of the parent nodes within the TypeTree. |
| childIndex | The index of the child nodes in relation to the parent nodes. |
template<typename T1 , typename Child1 , typename T2 , typename Child2 , typename TreePath , typename ChildIndex >
| void Dune::TypeTree::DefaultPairVisitor::beforeChild |
( |
T1 && |
t1, |
|
|
Child1 && |
child1, |
|
|
T2 && |
t2, |
|
|
Child2 && |
child2, |
|
|
TreePath |
treePath, |
|
|
ChildIndex |
childIndex |
|
) |
| const |
|
inlineinherited |
Method for parent-child traversal.
This method gets called before visiting a child node.
- Note
- This method gets called even if the visitor decides not to visit the child in question.
- Parameters
-
| t1 | The node of the first tree to visit. |
| child1 | The child of t1 to visit. |
| t2 | The node of the second tree to visit. |
| child2 | The child of t2 to visit. |
| treePath | The position of the parent nodes within the TypeTree. |
| childIndex | The index of the child nodes in relation to the parent nodes. |