#include <treewalker.h>
|
|
| TreeWalker (TraversalType type=PreOrderTraversal) |
| |
| bool | walkItems (T item, const VisitFunction &visit) |
| |
| bool | walkChildren (T item, const VisitFunction &visit) |
| |
template<typename T>
class KDSME::TreeWalker< T >
Performs a DFS walk through the hierarchy of T
- Note
- Specialize TreeWalkerTrait for your type T to get TreeWalker support
| Enumerator |
|---|
| ContinueWalk |
Continues traversal with the next sibling of the item just visited, without visiting its children.
|
| RecursiveWalk |
Traverse the children of this item.
|
| StopWalk |
Terminate the traversal.
|
Convenience function. Same as walk(), but omits item item
- See also
- walk()
Walk through all items including the start item itself
- Returns
- True in case we walked through all items, false otherwise
- Parameters
-
| visit | Function called each time a LayoutItem instance is encountered |
The documentation for this class was generated from the following file: