#include <XSECXPathNodeList.hpp>
Collaboration diagram for XSECXPathNodeList:
Public Methods | |
Constructors, Destructors and operators | |
XSECXPathNodeList () | |
XSECXPathNodeList (const XSECXPathNodeList &other) | |
Copy Constructor. More... | |
~XSECXPathNodeList () | |
XSECXPathNodeList & | operator= (const XSECXPathNodeList &toCopy) |
Assignment Operator. More... | |
Adding and Deleting nodes | |
void | addNode (const DOMNode *n) |
Add a node to the list. More... | |
void | removeNode (const DOMNode *n) |
Remove a node from the list. More... | |
void | clear (void) |
Clear out the entire list, deleting all entries. More... | |
Reading List Functions | |
bool | hasNode (const DOMNode *n) |
Check if a node exists in the list. More... | |
const DOMNode * | getFirstNode (void) |
Get the first node in the list. More... | |
const DOMNode * | getNextNode (void) |
Get the next node in the list. More... |
This class is used primarily for holding lists of nodes found during XPath processing. It is also used for xpath-filter which requires multiple list comparisons.
It is not implemented using one of the container classes as it has the potential to become a real bottleneck. It could potentially be implemented as a hash list based on names of nodes (or even pointers).
|
|
|
Copy Constructor.
|
|
|
|
Add a node to the list.
Checks to see whether the node is already in the list, and if not adds it.
|
|
Clear out the entire list, deleting all entries.
|
|
Get the first node in the list.
Returns the first node in the list of nodes and resets the search list.
|
|
Get the next node in the list.
Returns the next node in the list.
|
|
Check if a node exists in the list.
|
|
Assignment Operator.
Set one node list equal to another.
|
|
Remove a node from the list.
Given a node, find it in the list and (if it exists) delete it from the list.
|