Main Page   Class Hierarchy   Compound List   File List   Compound Members  

IDOM_NodeList Class Reference

Inheritance diagram for IDOM_NodeList:

List of all members.

Public Methods

Destructor.
Get functions.
virtual IDOM_Nodeitem (unsigned int index)=0
virtual unsigned int getLength ()=0

Protected Methods

 IDOM_NodeList (const IDOM_NodeList &other)
IDOM_NodeList & operator= (const IDOM_NodeList &other)

Detailed Description

The NodeList interface provides the abstraction of an ordered collection of nodes. NodeLists are created by DOM_Document::getElementsByTagName(), DOM_Node::getChildNodes(),

The items in the NodeList are accessible via an integral index, starting from 0.

NodeLists are "live", in that any changes to the document tree are immediately reflected in any NodeLists that may have been created for that tree.


Member Function Documentation

virtual unsigned int IDOM_NodeList::getLength   [pure virtual]
 

Returns the number of nodes in the list.

The range of valid child node indices is 0 to length-1 inclusive.

virtual IDOM_Node* IDOM_NodeList::item unsigned int    index [pure virtual]
 

Returns the indexth item in the collection.

If index is greater than or equal to the number of nodes in the list, this returns null.

Parameters:
index Index into the collection.
Returns:
The node at the indexth position in the NodeList, or null if that is not a valid index.


The documentation for this class was generated from the following file:
Generated on Tue Nov 19 09:36:43 2002 by doxygen1.3-rc1