RXmlEngNodeSet Class Reference

class RXmlEngNodeSet

This class implements the node set container, which is one of the result type in XPath.

Public Member Functions
RXmlEngNodeSet()
voidClose()
IMPORT_C TBoolContains(TXmlEngNode)
IMPORT_C voidFree()
IMPORT_C voidInitializeL()
IMPORT_C TIntLength()
IMPORT_C TXmlEngNodeoperator[](TInt)
Private Member Functions
RXmlEngNodeSet(void *)
Private Attributes
void *iInternal

Constructor & Destructor Documentation

RXmlEngNodeSet()

IMPORT_CRXmlEngNodeSet()

Default constructor

RXmlEngNodeSet(void *)

RXmlEngNodeSet(void *aData)[private]

Constructor

Parameters

void * aDataInternal data pointer

Member Functions Documentation

Close()

voidClose()[inline]

Closes the node set. This simply calls Free().

Contains(TXmlEngNode)

IMPORT_C TBoolContains(TXmlEngNodeaNode)const

Checks whether a node is in the node set.

ETrue if the node is in the node set, EFalse otherwise

Parameters

TXmlEngNode aNodeThe node to check

Free()

IMPORT_C voidFree()

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.

InitializeL()

IMPORT_C voidInitializeL()

Initializes the node set to an empty state.

Free()

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.

Length()

IMPORT_C TIntLength()const

Gets the size of the node set The number of nodes

operator[](TInt)

IMPORT_C TXmlEngNodeoperator[](TIntaIndex)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.

Parameters

TInt aIndexNode index ( 0 <= aIndex < Length() )

Member Data Documentation

void * iInternal

void *iInternal[private]