\section{DOM::Node\-List Class Reference}
\label{classDOM_1_1NodeList}\index{DOM::NodeList@{DOM::NodeList}}
The {\tt  {\bf Node\-List}{\rm (p.\,\pageref{classDOM_1_1NodeList})} } interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented.  


{\tt \#include $<$dom\_\-node.h$>$}

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Node\-List} (const  {\bf Node\-List} \&other)\label{classDOM_1_1NodeList_a1}

\item 
{\bf Node\-List} \& {\bf operator=} (const  {\bf Node\-List} \&other)\label{classDOM_1_1NodeList_a2}

\item 
unsigned long {\bf length} () const 
\begin{CompactList}\small\item\em The number of nodes in the list. \item\end{CompactList}\item 
{\bf Node} {\bf item} (unsigned long index) const 
\begin{CompactList}\small\item\em Returns the {\tt  index } th item in the collection. \item\end{CompactList}\item 
Node\-List\-Impl $\ast$ {\bf handle} () const \label{classDOM_1_1NodeList_a6}

\item 
bool {\bf is\-Null} () const \label{classDOM_1_1NodeList_a7}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
{\bf Node\-List} (const  Node\-List\-Impl $\ast$i)\label{classDOM_1_1NodeList_b0}

\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
Node\-List\-Impl $\ast$ {\bf impl}\label{classDOM_1_1NodeList_p0}

\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf Element}\label{classDOM_1_1NodeList_n0}

\item 
class {\bf Node}\label{classDOM_1_1NodeList_n1}

\item 
class {\bf Document}\label{classDOM_1_1NodeList_n2}

\item 
class {\bf HTMLDocument}\label{classDOM_1_1NodeList_n3}

\item 
class {\bf KJS::HTMLDocument}\label{classDOM_1_1NodeList_n4}

\end{CompactItemize}


\subsection{Detailed Description}
The {\tt  {\bf Node\-List}{\rm (p.\,\pageref{classDOM_1_1NodeList})} } interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented. 

The items in the {\tt  {\bf Node\-List}{\rm (p.\,\pageref{classDOM_1_1NodeList})} } are accessible via an integral index, starting from 0. 



Definition at line 895 of file dom\_\-node.h.

\subsection{Member Function Documentation}
\index{DOM::NodeList@{DOM::Node\-List}!length@{length}}
\index{length@{length}!DOM::NodeList@{DOM::Node\-List}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}unsigned long Node\-List::length () const}\label{classDOM_1_1NodeList_a4}


The number of nodes in the list. 

The range of valid child node indices is 0 to {\tt  length-1 } inclusive. 

Definition at line 479 of file dom\_\-node.cpp.\index{DOM::NodeList@{DOM::Node\-List}!item@{item}}
\index{item@{item}!DOM::NodeList@{DOM::Node\-List}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Node} Node\-List::item (unsigned long {\em index}) const}\label{classDOM_1_1NodeList_a5}


Returns the {\tt  index } th item in the collection. 

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

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em index}]Index into the collection.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The node at the {\tt  index } th position in the {\tt  {\bf Node\-List}{\rm (p.\,\pageref{classDOM_1_1NodeList})} } , or {\tt  null } if that is not a valid index. \end{Desc}


Definition at line 473 of file dom\_\-node.cpp.

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
dom\_\-node.h\item 
dom\_\-node.cpp\end{CompactItemize}
