.TH "DOM::NodeList" 3 "28 Jan 2004" "khtml Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
DOM::NodeList \- The \fC \fBNodeList\fP \fP interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <dom_node.h>\fP
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBNodeList\fP (const  \fBNodeList\fP &other)"
.br
.ti -1c
.RI "\fBNodeList\fP & \fBoperator=\fP (const  \fBNodeList\fP &other)"
.br
.ti -1c
.RI "unsigned long \fBlength\fP () const "
.br
.RI "\fIThe number of nodes in the list. \fP"
.ti -1c
.RI "\fBNode\fP \fBitem\fP (unsigned long index) const "
.br
.RI "\fIReturns the \fC index \fP th item in the collection. \fP"
.ti -1c
.RI "NodeListImpl * \fBhandle\fP () const "
.br
.ti -1c
.RI "bool \fBisNull\fP () const "
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "\fBNodeList\fP (const  NodeListImpl *i)"
.br
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "NodeListImpl * \fBimpl\fP"
.br
.in -1c
.SS "Friends"

.in +1c
.ti -1c
.RI "class \fBElement\fP"
.br
.ti -1c
.RI "class \fBNode\fP"
.br
.ti -1c
.RI "class \fBDocument\fP"
.br
.ti -1c
.RI "class \fBHTMLDocument\fP"
.br
.ti -1c
.RI "class \fBKJS::HTMLDocument\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
The \fC \fBNodeList\fP \fP interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented. 

The items in the \fC \fBNodeList\fP \fP are accessible via an integral index, starting from 0. 
.PP
Definition at line 895 of file dom_node.h.
.SH "Member Function Documentation"
.PP 
.SS "unsigned long NodeList::length () const"
.PP
The number of nodes in the list. The range of valid child node indices is 0 to \fC length-1 \fP inclusive. Definition at line 479 of file dom_node.cpp.
.SS "\fBNode\fP NodeList::item (unsigned long index) const"
.PP
Returns the \fC index \fP th item in the collection. If \fC index \fP is greater than or equal to the number of nodes in the list, this returns \fC null \fP .
.PP
\fBParameters:\fP
.RS 4
\fIindex\fP Index into the collection.
.RE
.PP
\fBReturns:\fP
.RS 4
The node at the \fC index \fP th position in the \fC \fBNodeList\fP \fP , or \fC null \fP if that is not a valid index. 
.RE
.PP
Definition at line 473 of file dom_node.cpp.

.SH "Author"
.PP 
Generated automatically by Doxygen for khtml Library from the source code.
