Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

DOM::NodeList Class Reference

The NodeList interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented. More...

#include <dom_node.h>

List of all members.

Public Methods

 NodeList ()
 NodeList (const NodeList &other)
NodeList & operator= (const NodeList &other)
 ~NodeList ()
unsigned long length () const
Node item (unsigned long index) const
NodeListImpl * handle () const
bool isNull () const

Protected Methods

 NodeList (const NodeListImpl *i)

Protected Attributes

NodeListImpl * impl

Friends

class Element
class Node
class Document
class HTMLDocument
class KJS::HTMLDocument


Detailed Description

The NodeList interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented.

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


Constructor & Destructor Documentation

DOM::NodeList::NodeList  
 

DOM::NodeList::NodeList const NodeList &    other
 

DOM::NodeList::~NodeList  
 

DOM::NodeList::NodeList const NodeListImpl *    i [protected]
 


Member Function Documentation

NodeList& DOM::NodeList::operator= const NodeList &    other
 

unsigned long DOM::NodeList::length  
 

The number of nodes in the list.

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

Node DOM::NodeList::item unsigned long    index const
 

Returns the index th 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 index th position in the NodeList , or null if that is not a valid index.

NodeListImpl* DOM::NodeList::handle   const [inline]
 

bool DOM::NodeList::isNull   const [inline]
 


Friends And Related Function Documentation

friend class Element [friend]
 

friend class Node [friend]
 

friend class Document [friend]
 

friend class HTMLDocument [friend]
 

friend class KJS::HTMLDocument [friend]
 


Member Data Documentation

NodeListImpl* DOM::NodeList::impl [protected]
 


The documentation for this class was generated from the following file:
Generated on Sat Jan 31 23:28:26 2004 for XPath by doxygen1.2.18