| 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|---|
| 2 | <!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/xml/qdom.cpp:913 -->
|
|---|
| 3 | <html>
|
|---|
| 4 | <head>
|
|---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|---|
| 6 | <title>QDomNodeList Class</title>
|
|---|
| 7 | <style type="text/css"><!--
|
|---|
| 8 | fn { margin-left: 1cm; text-indent: -1cm; }
|
|---|
| 9 | a:link { color: #004faf; text-decoration: none }
|
|---|
| 10 | a:visited { color: #672967; text-decoration: none }
|
|---|
| 11 | body { background: #ffffff; color: black; }
|
|---|
| 12 | --></style>
|
|---|
| 13 | </head>
|
|---|
| 14 | <body>
|
|---|
| 15 |
|
|---|
| 16 | <table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|---|
| 17 | <tr bgcolor="#E5E5E5">
|
|---|
| 18 | <td valign=center>
|
|---|
| 19 | <a href="index.html">
|
|---|
| 20 | <font color="#004faf">Home</font></a>
|
|---|
| 21 | | <a href="classes.html">
|
|---|
| 22 | <font color="#004faf">All Classes</font></a>
|
|---|
| 23 | | <a href="mainclasses.html">
|
|---|
| 24 | <font color="#004faf">Main Classes</font></a>
|
|---|
| 25 | | <a href="annotated.html">
|
|---|
| 26 | <font color="#004faf">Annotated</font></a>
|
|---|
| 27 | | <a href="groups.html">
|
|---|
| 28 | <font color="#004faf">Grouped Classes</font></a>
|
|---|
| 29 | | <a href="functions.html">
|
|---|
| 30 | <font color="#004faf">Functions</font></a>
|
|---|
| 31 | </td>
|
|---|
| 32 | <td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QDomNodeList Class Reference<br><small>[<a href="xml.html">XML module</a>]</small></h1>
|
|---|
| 33 |
|
|---|
| 34 | <p>The QDomNodeList class is a list of QDomNode objects.
|
|---|
| 35 | <a href="#details">More...</a>
|
|---|
| 36 | <p>All the functions in this class are <a href="threads.html#reentrant">reentrant</a> when Qt is built with thread support.</p>
|
|---|
| 37 | <p><tt>#include <<a href="qdom-h.html">qdom.h</a>></tt>
|
|---|
| 38 | <p><a href="qdomnodelist-members.html">List of all member functions.</a>
|
|---|
| 39 | <h2>Public Members</h2>
|
|---|
| 40 | <ul>
|
|---|
| 41 | <li class=fn><a href="#QDomNodeList"><b>QDomNodeList</b></a> ()</li>
|
|---|
| 42 | <li class=fn><a href="#QDomNodeList-2"><b>QDomNodeList</b></a> ( const QDomNodeList & n )</li>
|
|---|
| 43 | <li class=fn>QDomNodeList & <a href="#operator-eq"><b>operator=</b></a> ( const QDomNodeList & n )</li>
|
|---|
| 44 | <li class=fn>bool <a href="#operator-eq-eq"><b>operator==</b></a> ( const QDomNodeList & n ) const</li>
|
|---|
| 45 | <li class=fn>bool <a href="#operator!-eq"><b>operator!=</b></a> ( const QDomNodeList & n ) const</li>
|
|---|
| 46 | <li class=fn>virtual <a href="#~QDomNodeList"><b>~QDomNodeList</b></a> ()</li>
|
|---|
| 47 | <li class=fn>virtual QDomNode <a href="#item"><b>item</b></a> ( int index ) const</li>
|
|---|
| 48 | <li class=fn>virtual uint <a href="#length"><b>length</b></a> () const</li>
|
|---|
| 49 | <li class=fn>uint <a href="#count"><b>count</b></a> () const</li>
|
|---|
| 50 | </ul>
|
|---|
| 51 | <hr><a name="details"></a><h2>Detailed Description</h2>
|
|---|
| 52 |
|
|---|
| 53 |
|
|---|
| 54 |
|
|---|
| 55 | The QDomNodeList class is a list of <a href="qdomnode.html">QDomNode</a> objects.
|
|---|
| 56 |
|
|---|
| 57 | <p>
|
|---|
| 58 |
|
|---|
| 59 | <p> Lists can be obtained by <a href="qdomdocument.html#elementsByTagName">QDomDocument::elementsByTagName</a>() and
|
|---|
| 60 | <a href="qdomnode.html#childNodes">QDomNode::childNodes</a>(). The Document Object Model (DOM) requires
|
|---|
| 61 | these lists to be "live": whenever you change the underlying
|
|---|
| 62 | document, the contents of the list will get updated.
|
|---|
| 63 | <p> You can get a particular node from the list with <a href="#item">item</a>(). The
|
|---|
| 64 | number of items in the list is returned by <a href="#count">count</a>() (and by
|
|---|
| 65 | <a href="#length">length</a>()).
|
|---|
| 66 | <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
|
|---|
| 67 | introduction of the DOM implementation see the <a href="qdomdocument.html">QDomDocument</a>
|
|---|
| 68 | documentation.
|
|---|
| 69 | <p> <p>See also <a href="qdomnode.html#childNodes">QDomNode::childNodes</a>(), <a href="qdomdocument.html#elementsByTagName">QDomDocument::elementsByTagName</a>(), and <a href="xml-tools.html">XML</a>.
|
|---|
| 70 |
|
|---|
| 71 | <hr><h2>Member Function Documentation</h2>
|
|---|
| 72 | <h3 class=fn><a name="QDomNodeList"></a>QDomNodeList::QDomNodeList ()
|
|---|
| 73 | </h3>
|
|---|
| 74 | Creates an empty node list.
|
|---|
| 75 |
|
|---|
| 76 | <h3 class=fn><a name="QDomNodeList-2"></a>QDomNodeList::QDomNodeList ( const <a href="qdomnodelist.html">QDomNodeList</a> & n )
|
|---|
| 77 | </h3>
|
|---|
| 78 | Constructs a copy of <em>n</em>.
|
|---|
| 79 |
|
|---|
| 80 | <h3 class=fn><a name="~QDomNodeList"></a>QDomNodeList::~QDomNodeList ()<tt> [virtual]</tt>
|
|---|
| 81 | </h3>
|
|---|
| 82 | Destroys the object and frees its resources.
|
|---|
| 83 |
|
|---|
| 84 | <h3 class=fn>uint <a name="count"></a>QDomNodeList::count () const
|
|---|
| 85 | </h3>
|
|---|
| 86 |
|
|---|
| 87 | <p> Returns the number of nodes in the list.
|
|---|
| 88 | <p> This function is the same as <a href="#length">length</a>().
|
|---|
| 89 |
|
|---|
| 90 | <h3 class=fn><a href="qdomnode.html">QDomNode</a> <a name="item"></a>QDomNodeList::item ( int index ) const<tt> [virtual]</tt>
|
|---|
| 91 | </h3>
|
|---|
| 92 | Returns the node at position <em>index</em>.
|
|---|
| 93 | <p> If <em>index</em> is negative or if <em>index</em> >= <a href="#length">length</a>() then a null
|
|---|
| 94 | node is returned (i.e. a node for which <a href="qdomnode.html#isNull">QDomNode::isNull</a>() returns
|
|---|
| 95 | TRUE).
|
|---|
| 96 | <p> <p>See also <a href="#count">count</a>().
|
|---|
| 97 |
|
|---|
| 98 | <h3 class=fn>uint <a name="length"></a>QDomNodeList::length () const<tt> [virtual]</tt>
|
|---|
| 99 | </h3>
|
|---|
| 100 | Returns the number of nodes in the list.
|
|---|
| 101 | <p> This function is the same as <a href="#count">count</a>().
|
|---|
| 102 |
|
|---|
| 103 | <h3 class=fn>bool <a name="operator!-eq"></a>QDomNodeList::operator!= ( const <a href="qdomnodelist.html">QDomNodeList</a> & n ) const
|
|---|
| 104 | </h3>
|
|---|
| 105 | Returns TRUE the node list <em>n</em> and this node list are not equal;
|
|---|
| 106 | otherwise returns FALSE.
|
|---|
| 107 |
|
|---|
| 108 | <h3 class=fn><a href="qdomnodelist.html">QDomNodeList</a> & <a name="operator-eq"></a>QDomNodeList::operator= ( const <a href="qdomnodelist.html">QDomNodeList</a> & n )
|
|---|
| 109 | </h3>
|
|---|
| 110 | Assigns <em>n</em> to this node list.
|
|---|
| 111 |
|
|---|
| 112 | <h3 class=fn>bool <a name="operator-eq-eq"></a>QDomNodeList::operator== ( const <a href="qdomnodelist.html">QDomNodeList</a> & n ) const
|
|---|
| 113 | </h3>
|
|---|
| 114 | Returns TRUE if the node list <em>n</em> and this node list are equal;
|
|---|
| 115 | otherwise returns FALSE.
|
|---|
| 116 |
|
|---|
| 117 | <!-- eof -->
|
|---|
| 118 | <hr><p>
|
|---|
| 119 | This file is part of the <a href="index.html">Qt toolkit</a>.
|
|---|
| 120 | Copyright © 1995-2007
|
|---|
| 121 | <a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
|
|---|
| 122 | <table width=100% cellspacing=0 border=0><tr>
|
|---|
| 123 | <td>Copyright © 2007
|
|---|
| 124 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
|---|
| 125 | <td align=right><div align=right>Qt 3.3.8</div>
|
|---|
| 126 | </table></div></address></body>
|
|---|
| 127 | </html>
|
|---|