| class RXmlEngNodeSet |
This class implements the node set container, which is one of the result type in XPath.
| Public Member Functions | |
|---|---|
| RXmlEngNodeSet() | |
| void | Close() |
| IMPORT_C TBool | Contains(TXmlEngNode) |
| IMPORT_C void | Free() |
| IMPORT_C void | InitializeL() |
| IMPORT_C TInt | Length() |
| IMPORT_C TXmlEngNode | operator[](TInt) |
| Private Member Functions | |
|---|---|
| RXmlEngNodeSet(void *) | |
| Private Attributes | |
|---|---|
| void * | iInternal |
| RXmlEngNodeSet | ( | void * | aData | ) | [private] |
Constructor
| void * aData | Internal data pointer |
| IMPORT_C TBool | Contains | ( | TXmlEngNode | aNode | ) | const |
Checks whether a node is in the node set.
ETrue if the node is in the node set, EFalse otherwise
| TXmlEngNode aNode | The node to check |
| IMPORT_C void | Free | ( | ) |
Frees any allocated resources.
As a node set only refers to existing nodes in the DOM tree, no nodes are freed. However, namespace declarations are copied into the node set and these copies are indeed freed.
| IMPORT_C void | InitializeL | ( | ) |
Initializes the node set to an empty state.
This method is used when preparing node sets that will be used with RXmlEngXPathExpression::EvaluateWithDependenciesL(TXmlEngNode,RXmlEngNodeSet&) and TXmlEngXPathEvaluator::EvaluateWithDependenciesL(aExpression,aContextNode,aResolver,aDependents).
leave
KErrNoMemory Memory allocation failure
leave
Otherwise, any of the system wide errors.
| IMPORT_C TXmlEngNode | operator[] | ( | TInt | aIndex | ) | const |
Retrieves a node from the node set by index
The node
leave
KXmlEngErrWrongUseOfAPI aIndex is less than 0 or greater than Length(), in debug builds only.
leave
Otherwise, any of the system wide errors.
| TInt aIndex | Node index ( 0 <= aIndex < Length() ) |