|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CNodeSet: public CInterface { public: CNodeSet(); virtual ~CNodeSet(); public: virtual bool InDocumentOrder() = 0; virtual bool InReverseDocumentOrder() = 0; virtual int GetSize() = 0; virtual XNode GetFirstNode() = 0; virtual XIterator CreateIterator() = 0; };
The abstract interface to XPath node-sets.
This class is also used to represent XPath node lists and sorted node sequences which do not need to obey a document order.
CIterator, Dom::INode
Constructor/Destructor Summary | |
CNodeSet
();
����������Constructs the node-set. |
|
~CNodeSet
();
����������Destroys the node-set. |
Function Summary | |
bool
|
InDocumentOrder
();
����������Tests whether nodes in this node-set are sorted in the document order. |
bool
|
InReverseDocumentOrder
();
����������Tests whether nodes in this node-set are sorted in the reverse document order. |
int
|
GetSize
();
����������Returns the number of nodes in this node-set. |
XNode
|
GetFirstNode
();
����������Returns the first node of this node-set. |
XIterator
|
CreateIterator
();
����������Creates an iterator for this node-set. |
Constructor/Destructor Detail |
CNodeSet();
Constructs the node-set.
virtual ~CNodeSet();
Destroys the node-set.
Function Detail |
virtual bool InDocumentOrder() = 0;
Tests whether nodes in this node-set are sorted in the document order.
true
if nodes of this node-set
are sorted in the document order;
false
otherwisevirtual bool InReverseDocumentOrder() = 0;
Tests whether nodes in this node-set are sorted in the reverse document order.
true
if nodes of this node-set
are sorted in the reverse document order;
false
otherwisevirtual int GetSize() = 0;
Returns the number of nodes in this node-set.
virtual XNode GetFirstNode() = 0;
Returns the first node of this node-set.
NULL
if this node-set is emptyvirtual XIterator CreateIterator() = 0;
Creates an iterator for this node-set.
The iterator provides an interface for sequential enumeration
of nodes in the node-set.
See description of the
CIterator
class for details.
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |