Xalan-C++ API Reference  1.12.0
Public Types | Public Member Functions | Protected Member Functions | List of all members
xalanc::NodeNameTreeWalker Class Reference

#include <xalanc/TestXPath/NodeNameTreeWalker.hpp>

Inheritance diagram for xalanc::NodeNameTreeWalker:
[legend]
Collaboration diagram for xalanc::NodeNameTreeWalker:
[legend]

Public Types

typedef XalanVector< const XalanNode * > NodeVectorType
 

Public Member Functions

 NodeNameTreeWalker (MemoryManager &theManager)
 
virtual ~NodeNameTreeWalker ()
 
virtual void findMatchingNodes (const XalanDOMString &theNodeName, const XalanNode *theStartNode)
 Find all nodes matching a specified node in a specified node tree. More...
 
virtual void findMatchingNodes (const XalanDOMString &theNodeName, XalanNode *theStartNode)
 
const NodeVectorTypegetMatchingNodes () const
 Retrieve the matching nodes from the last search. More...
 
- Public Member Functions inherited from xalanc::TreeWalker
 TreeWalker ()
 Constructor. More...
 
virtual ~TreeWalker ()
 
const XalanNodetraverse (const XalanNode *pos)
 Perform a document-order traversal. More...
 
XalanNodetraverse (XalanNode *pos)
 Perform a document-order traversal. More...
 
const XalanNodetraverse (const XalanNode *pos, const XalanNode *parent)
 Perform a document-order traversal stopping at the provided parent node. More...
 
XalanNodetraverse (XalanNode *pos, XalanNode *parent)
 Perform a document-order traversal stopping at the provided parent node. More...
 
virtual void traverseSubtree (const XalanNode *pos)
 Perform a pre-order traversal. More...
 
virtual void traverseSubtree (XalanNode *pos)
 Perform a pre-order traversal. More...
 

Protected Member Functions

virtual bool startNode (XalanNode *node)
 Called when first walking a node. More...
 
virtual bool endNode (XalanNode *node)
 Called when leaving a node. More...
 
virtual bool startNode (const XalanNode *node)
 Called when first walking a node. More...
 
virtual bool endNode (const XalanNode *node)
 Called when leaving a node. More...
 

Detailed Description

Definition at line 39 of file NodeNameTreeWalker.hpp.

Member Typedef Documentation

◆ NodeVectorType

Definition at line 43 of file NodeNameTreeWalker.hpp.

Constructor & Destructor Documentation

◆ NodeNameTreeWalker()

xalanc::NodeNameTreeWalker::NodeNameTreeWalker ( MemoryManager &  theManager)

◆ ~NodeNameTreeWalker()

virtual xalanc::NodeNameTreeWalker::~NodeNameTreeWalker ( )
virtual

Member Function Documentation

◆ endNode() [1/2]

virtual bool xalanc::NodeNameTreeWalker::endNode ( const XalanNode node)
protectedvirtual

Called when leaving a node.

Parameters
nodeThe node
Returns
return false if the walk should continue, or true if it should not.

Implements xalanc::TreeWalker.

◆ endNode() [2/2]

virtual bool xalanc::NodeNameTreeWalker::endNode ( XalanNode node)
protectedvirtual

Called when leaving a node.

Parameters
nodeThe node
Returns
return false if the walk should continue, or true if it should not.

Implements xalanc::TreeWalker.

◆ findMatchingNodes() [1/2]

virtual void xalanc::NodeNameTreeWalker::findMatchingNodes ( const XalanDOMString theNodeName,
const XalanNode theStartNode 
)
virtual

Find all nodes matching a specified node in a specified node tree.

The member m_matchingNodes is populated as a side effect.

Parameters
theNodeNamename of node sought
theStartNodestart node for search

◆ findMatchingNodes() [2/2]

virtual void xalanc::NodeNameTreeWalker::findMatchingNodes ( const XalanDOMString theNodeName,
XalanNode theStartNode 
)
virtual

◆ getMatchingNodes()

const NodeVectorType& xalanc::NodeNameTreeWalker::getMatchingNodes ( ) const
inline

Retrieve the matching nodes from the last search.

Returns
vector of nodes

Definition at line 73 of file NodeNameTreeWalker.hpp.

◆ startNode() [1/2]

virtual bool xalanc::NodeNameTreeWalker::startNode ( const XalanNode node)
protectedvirtual

Called when first walking a node.

Parameters
nodeThe node
Returns
return false if the walk should continue, or true if it should not.

Implements xalanc::TreeWalker.

◆ startNode() [2/2]

virtual bool xalanc::NodeNameTreeWalker::startNode ( XalanNode node)
protectedvirtual

Called when first walking a node.

Parameters
nodeThe node
Returns
return false if the walk should continue, or true if it should not.

Implements xalanc::TreeWalker.


The documentation for this class was generated from the following file: