Public Methods | |
Constructors and assignment operator | |
DOM_TreeWalker () | |
DOM_TreeWalker (const DOM_TreeWalker &other) | |
DOM_TreeWalker & | operator= (const DOM_TreeWalker &other) |
DOM_TreeWalker & | operator= (const DOM_NullPtr *val) |
Destructor. | |
~DOM_TreeWalker () | |
Equality and Inequality operators. | |
bool | operator== (const DOM_TreeWalker &other) const |
bool | operator== (const DOM_NullPtr *other) const |
bool | operator!= (const DOM_TreeWalker &other) const |
bool | operator!= (const DOM_NullPtr *other) const |
Get functions. | |
DOM_Node | getRoot () |
unsigned long | getWhatToShow () |
DOM_NodeFilter * | getFilter () |
bool | getExpandEntityReferences () |
DOM_Node | getCurrentNode () |
DOM_Node | parentNode () |
DOM_Node | firstChild () |
DOM_Node | lastChild () |
DOM_Node | previousSibling () |
DOM_Node | nextSibling () |
DOM_Node | previousNode () |
DOM_Node | nextNode () |
Set functions. | |
void | setCurrentNode (DOM_Node currentNode) |
Protected Methods | |
DOM_TreeWalker (TreeWalkerImpl *impl) | |
Friends | |
class | DOM_Document |
DOM_TreeWalker
objects are used to navigate a document tree or subtree using the view of the document defined by its whatToShow
flags and any filters that are defined for the DOM_TreeWalker
. Any function which performs navigation using a DOM_TreeWalker
will automatically support any view defined by a DOM_TreeWalker
.
Omitting nodes from the logical view of a subtree can result in a structure that is substantially different from the same subtree in the complete, unfiltered document. Nodes that are siblings in the DOM_TreeWalker view may be children of different, widely separated nodes in the original view. For instance, consider a Filter that skips all nodes except for Text nodes and the root node of a document. In the logical view that results, all text nodes will be siblings and appear as direct children of the root node, no matter how deeply nested the structure of the original document.
|
Default constructor. |
|
Copy constructor.
|
|
Destructor for DOM_TreeWalker. |
|
Moves the |
|
Return the node at which the DOM_TreeWalker is currently positioned. |
|
Return the expandEntityReferences flag. The value of this flag determines whether the children of entity reference nodes are visible to the DOM_TreeWalker. If false, they will be skipped over. |
|
Return The filter used to screen nodes. |
|
The |
|
Return which node types are presented via the DOM_TreeWalker. These constants are defined in the DOM_NodeFilter interface. |
|
Moves the |
|
Moves the |
|
Moves the |
|
Compare with a pointer. Intended only to allow a convenient comparison with null. |
|
The inequality operator. See operator ==. |
|
Assignment operator. This overloaded variant is provided for the sole purpose of setting a DOM_NodeIterator to null.
|
|
Assignment operator.
|
|
Compare with a pointer. Intended only to allow a convenient comparison with null. |
|
The equality operator.
|
|
Moves to and returns the closest visible ancestor node of the current node. If the search for parentNode attempts to step upward from the DOM_TreeWalker's root node, or if it fails to find a visible ancestor node, this method retains the current position and returns null. |
|
Moves the |
|
Moves the |
|
Set the node at which the DOM_TreeWalker is currently positioned. |