RXmlEngNodeList Class Reference

#include <xml/dom/xmlengnodelist.h>

class RXmlEngNodeList
Public Member Functions
voidClose()
TInt Count()
TBool HasNext()
TNext()

Detailed Description

Implements an iterator or filtered iterator for a tree.

This classes behaves in two very different ways, depending on the template parameter.

1) RXmlEngNodeList<TXmlEngNode>

Through template specialization, this becomes an alias for RXmlEngNodeListImpl. The RXmlEngNodeListImpl::OpenL() methods control which nodes are included in the iterator. It is possible to iterate across all node types or only a single type. It is possible to iterate only over nodes within a specific namespace. It is also possible to iterate over nodes with the same name.

RXmlEngNodeListImpl should not be used directly.

See also: RXmlEngNodeListImpl

2) RXmlEngNodeList<X> where X is not TXmlEngNode

As the OpenL() methods of this class are private, this class cannot be opened except by friend classes TXmlEngNode and TXmlEngElement. As such, this form should not be used.

Member Function Documentation

Close ( )

voidClose()[inline]

Closes a node list. This does not affect any of the nodes. Only internally used memory is freed.

Count ( )

TInt Count()const [inline]

Gets the list length.

Return Value
The number of nodes in the list

HasNext ( )

TBool HasNext()const [inline]

Checks whether a next node exists in the list

Return Value
ETrue of a next node exists, EFalse otherwise

Next ( )

TNext()[inline]

Gets the next node in the list

Return Value
The next node casted to the templated type or NULL if it does not exist