You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tqt3/doc/html/tqdomnodelist.html

128 lines
6.3 KiB

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/xml/tqdom.cpp:913 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>TQDomNodeList Class</title>
<style type="text/css"><!--
fn { margin-left: 1cm; text-indent: -1cm; }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
body { background: #ffffff; color: black; }
--></style>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr bgcolor="#E5E5E5">
<td valign=center>
<a href="index.html">
<font color="#004faf">Home</font></a>
| <a href="classes.html">
<font color="#004faf">All&nbsp;Classes</font></a>
| <a href="mainclasses.html">
<font color="#004faf">Main&nbsp;Classes</font></a>
| <a href="annotated.html">
<font color="#004faf">Annotated</font></a>
| <a href="groups.html">
<font color="#004faf">Grouped&nbsp;Classes</font></a>
| <a href="functions.html">
<font color="#004faf">Functions</font></a>
</td>
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>TQDomNodeList Class Reference<br><small>[<a href="xml.html">XML module</a>]</small></h1>
<p>The TQDomNodeList class is a list of TQDomNode objects.
<a href="#details">More...</a>
<p>All the functions in this class are <a href="threads.html#reentrant">reentrant</a> when TQt is built with thread support.</p>
<p><tt>#include &lt;<a href="tqdom-h.html">tqdom.h</a>&gt;</tt>
<p><a href="tqdomnodelist-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<li class=fn><a href="#TQDomNodeList"><b>TQDomNodeList</b></a> ()</li>
<li class=fn><a href="#TQDomNodeList-2"><b>TQDomNodeList</b></a> ( const&nbsp;TQDomNodeList&nbsp;&amp;&nbsp;n )</li>
<li class=fn>TQDomNodeList &amp; <a href="#operator-eq"><b>operator=</b></a> ( const&nbsp;TQDomNodeList&nbsp;&amp;&nbsp;n )</li>
<li class=fn>bool <a href="#operator-eq-eq"><b>operator==</b></a> ( const&nbsp;TQDomNodeList&nbsp;&amp;&nbsp;n ) const</li>
<li class=fn>bool <a href="#operator!-eq"><b>operator!=</b></a> ( const&nbsp;TQDomNodeList&nbsp;&amp;&nbsp;n ) const</li>
<li class=fn>virtual <a href="#~TQDomNodeList"><b>~TQDomNodeList</b></a> ()</li>
<li class=fn>virtual TQDomNode <a href="#item"><b>item</b></a> ( int&nbsp;index ) const</li>
<li class=fn>virtual uint <a href="#length"><b>length</b></a> () const</li>
<li class=fn>uint <a href="#count"><b>count</b></a> () const</li>
</ul>
<hr><a name="details"></a><h2>Detailed Description</h2>
The TQDomNodeList class is a list of <a href="tqdomnode.html">TQDomNode</a> objects.
<p>
<p> Lists can be obtained by <a href="tqdomdocument.html#elementsByTagName">TQDomDocument::elementsByTagName</a>() and
<a href="tqdomnode.html#childNodes">TQDomNode::childNodes</a>(). The Document Object Model (DOM) requires
these lists to be "live": whenever you change the underlying
document, the contents of the list will get updated.
<p> You can get a particular node from the list with <a href="#item">item</a>(). The
number of items in the list is returned by <a href="#count">count</a>() (and by
<a href="#length">length</a>()).
<p> For further information about the Document Object Model see <a href="http://www.w3.org/TR/REC-DOM-Level-1/">http://www.w3.org/TR/REC-DOM-Level-1/</a> and <a href="http://www.w3.org/TR/DOM-Level-2-Core/">http://www.w3.org/TR/DOM-Level-2-Core/</a>. For a more general
introduction of the DOM implementation see the <a href="tqdomdocument.html">TQDomDocument</a>
documentation.
<p> <p>See also <a href="tqdomnode.html#childNodes">TQDomNode::childNodes</a>(), <a href="tqdomdocument.html#elementsByTagName">TQDomDocument::elementsByTagName</a>(), and <a href="xml-tools.html">XML</a>.
<hr><h2>Member Function Documentation</h2>
<h3 class=fn><a name="TQDomNodeList"></a>TQDomNodeList::TQDomNodeList ()
</h3>
Creates an empty node list.
<h3 class=fn><a name="TQDomNodeList-2"></a>TQDomNodeList::TQDomNodeList ( const&nbsp;<a href="tqdomnodelist.html">TQDomNodeList</a>&nbsp;&amp;&nbsp;n )
</h3>
Constructs a copy of <em>n</em>.
<h3 class=fn><a name="~TQDomNodeList"></a>TQDomNodeList::~TQDomNodeList ()<tt> [virtual]</tt>
</h3>
Destroys the object and frees its resources.
<h3 class=fn>uint <a name="count"></a>TQDomNodeList::count () const
</h3>
<p> Returns the number of nodes in the list.
<p> This function is the same as <a href="#length">length</a>().
<h3 class=fn><a href="tqdomnode.html">TQDomNode</a> <a name="item"></a>TQDomNodeList::item ( int&nbsp;index ) const<tt> [virtual]</tt>
</h3>
Returns the node at position <em>index</em>.
<p> If <em>index</em> is negative or if <em>index</em> >= <a href="#length">length</a>() then a null
node is returned (i.e. a node for which <a href="tqdomnode.html#isNull">TQDomNode::isNull</a>() returns
TRUE).
<p> <p>See also <a href="#count">count</a>().
<h3 class=fn>uint <a name="length"></a>TQDomNodeList::length () const<tt> [virtual]</tt>
</h3>
Returns the number of nodes in the list.
<p> This function is the same as <a href="#count">count</a>().
<h3 class=fn>bool <a name="operator!-eq"></a>TQDomNodeList::operator!= ( const&nbsp;<a href="tqdomnodelist.html">TQDomNodeList</a>&nbsp;&amp;&nbsp;n ) const
</h3>
Returns TRUE the node list <em>n</em> and this node list are not equal;
otherwise returns FALSE.
<h3 class=fn><a href="tqdomnodelist.html">TQDomNodeList</a>&nbsp;&amp; <a name="operator-eq"></a>TQDomNodeList::operator= ( const&nbsp;<a href="tqdomnodelist.html">TQDomNodeList</a>&nbsp;&amp;&nbsp;n )
</h3>
Assigns <em>n</em> to this node list.
<h3 class=fn>bool <a name="operator-eq-eq"></a>TQDomNodeList::operator== ( const&nbsp;<a href="tqdomnodelist.html">TQDomNodeList</a>&nbsp;&amp;&nbsp;n ) const
</h3>
Returns TRUE if the node list <em>n</em> and this node list are equal;
otherwise returns FALSE.
<!-- eof -->
<hr><p>
This file is part of the <a href="index.html">TQt toolkit</a>.
Copyright &copy; 1995-2007
<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
<table width=100% cellspacing=0 border=0><tr>
<td>Copyright &copy; 2007
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
<td align=right><div align=right>TQt 3.3.8</div>
</table></div></address></body>
</html>