#include <xalanc/XercesParserLiaison/XercesDOMWalker.hpp>
Definition at line 32 of file XercesDOMWalker.hpp.
◆ XercesDOMWalker()
xalanc::XercesDOMWalker::XercesDOMWalker |
( |
| ) |
|
◆ ~XercesDOMWalker()
virtual xalanc::XercesDOMWalker::~XercesDOMWalker |
( |
| ) |
|
|
virtual |
◆ endNode() [1/2]
virtual bool xalanc::XercesDOMWalker::endNode |
( |
const DOMNodeType * |
node | ) |
|
|
protectedpure virtual |
◆ endNode() [2/2]
virtual bool xalanc::XercesDOMWalker::endNode |
( |
DOMNodeType * |
node | ) |
|
|
protectedvirtual |
Called when leaving a node.
- Parameters
-
- Returns
- return false if traversal should continue, or true if it should not.
◆ startNode() [1/2]
virtual bool xalanc::XercesDOMWalker::startNode |
( |
const DOMNodeType * |
node | ) |
|
|
protectedpure virtual |
◆ startNode() [2/2]
virtual bool xalanc::XercesDOMWalker::startNode |
( |
DOMNodeType * |
node | ) |
|
|
protectedvirtual |
Called when first walking a node.
- Parameters
-
- Returns
- return false if traversal should continue, or true if it should not.
◆ 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 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() [3/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() [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]
void xalanc::XercesDOMWalker::traverseSubtree |
( |
const DOMNodeType * |
pos | ) |
|
Perform a pre-order traversal.
- Parameters
-
◆ traverseSubtree() [2/2]
void xalanc::XercesDOMWalker::traverseSubtree |
( |
DOMNodeType * |
pos | ) |
|
Perform a document-order traversal.
- Parameters
-
The documentation for this class was generated from the following file: