DOM::NodeList

#include <dom_node.h>

Public Member Functions

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

Protected Member Functions

 NodeList (const NodeListImpl *i)
 

Protected Attributes

NodeListImpl * impl
 

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.

Definition at line 976 of file dom_node.h.

Member Function Documentation

NodeListImpl* DOM::NodeList::handle ( ) const
inline

not part of the DOM

Definition at line 1019 of file dom_node.h.

Node 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
indexIndex into the collection.
Returns
The node at the index th position in the NodeList , or null if that is not a valid index.

Definition at line 606 of file dom_node.cpp.

unsigned long NodeList::length ( ) const

The number of nodes in the list.

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

Definition at line 614 of file dom_node.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Jun 2 2020 22:35:38 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.