#include <TreeWalker.hpp>
Inherited by FormatterTreeWalker, NodeNameTreeWalker, and XalanDocumentPrefixResolver::NamespaceNodesTreeWalker.
Definition at line 36 of file TreeWalker.hpp.
◆ TreeWalker()
TreeWalker::TreeWalker |
( |
| ) |
|
◆ ~TreeWalker()
virtual TreeWalker::~TreeWalker |
( |
| ) |
|
|
virtual |
◆ endNode() [1/2]
virtual bool TreeWalker::endNode |
( |
const XalanNode * |
node | ) |
|
|
protectedpure virtual |
◆ endNode() [2/2]
virtual bool TreeWalker::endNode |
( |
XalanNode * |
node | ) |
|
|
protectedpure virtual |
◆ startNode() [1/2]
virtual bool TreeWalker::startNode |
( |
const XalanNode * |
node | ) |
|
|
protectedpure virtual |
◆ startNode() [2/2]
virtual bool TreeWalker::startNode |
( |
XalanNode * |
node | ) |
|
|
protectedpure virtual |
◆ traverse() [1/4]
Perform a document-order traversal.
Derived classes and stop the traversal by returning true from startNode() or endNode(). If that happens, the function will return the next node in document order. If desired, the caller can start traversing the tree again from that point. Note that terminal nodes will always have startNode() and endNode() called before the traversal terminates.
- Parameters
-
pos | The node in the tree with which to start the walk |
- Returns
- 0 if the traversal completes, or the next node if the traversal doesn't complete.
◆ traverse() [2/4]
Perform a document-order traversal.
Derived classes and stop the traversal by returning true from startNode() or endNode(). If that happens, the function will return the next node in document order. If desired, the caller can start traversing the tree again from that point. Note that terminal nodes will always have startNode() and endNode() called before the traversal terminates.
- Parameters
-
pos | The node in the tree with which to start the walk |
- Returns
- 0 if the traversal completes, or the next node if the traversal doesn't complete.
◆ traverse() [3/4]
Perform a document-order traversal stopping at the provided parent node.
Derived classes and stop the traversal by returning true from startNode() or endNode(). If that happens, the function will return the next node in document order. If desired, the caller can start traversing the tree again from that point. Note that terminal nodes will always have startNode() and endNode() called before the traversal terminates.
- Parameters
-
pos | The node in the tree with which to start the walk |
parent | The parent of pos. Note that for multiple calls that continue the traversal, this node must remain the same. |
- Returns
- parent if the traversal completes, or the next node if the traversal doesn't complete.
◆ traverse() [4/4]
Perform a document-order traversal stopping at the provided parent node.
Derived classes and stop the traversal by returning true from startNode() or endNode(). If that happens, the function will return the next node in document order. If desired, the caller can start traversing the tree again from that point. Note that terminal nodes will always have startNode() and endNode() called before the traversal terminates.
- Parameters
-
pos | The node in the tree with which to start the walk |
parent | The parent of pos. Note that for multiple calls that continue the traversal, this node must remain the same. |
- Returns
- parent if the traversal completes, or the next node if the traversal doesn't complete.
◆ traverseSubtree() [1/2]
virtual void TreeWalker::traverseSubtree |
( |
const XalanNode * |
pos | ) |
|
|
virtual |
Perform a pre-order traversal.
- Parameters
-
◆ traverseSubtree() [2/2]
virtual void TreeWalker::traverseSubtree |
( |
XalanNode * |
pos | ) |
|
|
virtual |
Perform a pre-order traversal.
- Parameters
-
The documentation for this class was generated from the following file: