qdomnodelist.html

来自「QT 下载资料仅供参考」· HTML 代码 · 共 125 行

HTML
125
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/reggie/tmp/qt-3.0-reggie-5401/qt-x11-commercial-3.0.5/src/xml/qdom.cpp:899 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>QDomNodeList Class</title><style type="text/css"><!--h3.fn,span.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>QDomNodeList Class Reference<br><small>[<a href="xml.html">XML module</a>]</small></h1><p>The QDomNodeList class is a list of QDomNode objects.<a href="#details">More...</a><p><tt>#include &lt;<a href="qdom-h.html">qdom.h</a>&gt;</tt><p><a href="qdomnodelist-members.html">List of all member functions.</a><h2>Public Members</h2><ul><li><div class=fn><a href="#QDomNodeList"><b>QDomNodeList</b></a> ()</div></li><li><div class=fn><a href="#QDomNodeList-2"><b>QDomNodeList</b></a> ( const&nbsp;QDomNodeList&nbsp;&amp;&nbsp;n )</div></li><li><div class=fn>QDomNodeList &amp; <a href="#operator-eq"><b>operator=</b></a> ( const&nbsp;QDomNodeList&nbsp;&amp;&nbsp;n )</div></li><li><div class=fn>bool <a href="#operator-eq-eq"><b>operator==</b></a> ( const&nbsp;QDomNodeList&nbsp;&amp;&nbsp;n ) const</div></li><li><div class=fn>bool <a href="#operator!-eq"><b>operator!=</b></a> ( const&nbsp;QDomNodeList&nbsp;&amp;&nbsp;n ) const</div></li><li><div class=fn>virtual <a href="#~QDomNodeList"><b>~QDomNodeList</b></a> ()</div></li><li><div class=fn>virtual QDomNode <a href="#item"><b>item</b></a> ( int&nbsp;index ) const</div></li><li><div class=fn>virtual uint <a href="#length"><b>length</b></a> () const</div></li><li><div class=fn>uint <a href="#count"><b>count</b></a> () const</div></li></ul><hr><a name="details"></a><h2>Detailed Description</h2>The QDomNodeList class is a list of <a href="qdomnode.html">QDomNode</a> objects.<p> <p> Lists can be obtained by <a href="qdomdocument.html#elementsByTagName">QDomDocument::elementsByTagName</a>() and<a href="qdomnode.html#childNodes">QDomNode::childNodes</a>(). The Document Object Model (DOM) requires these liststo be "live": whenever you change the underlying document, the contents ofthe list will get updated.<p> You can get a particular node from the list with <a href="#item">item</a>(). The number of itemsin 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="qdomdocument.html">QDomDocument</a> documentation.<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>.<hr><h2>Member Function Documentation</h2><h3 class=fn><a name="QDomNodeList"></a>QDomNodeList::QDomNodeList ()</h3>Creates an empty node list.<h3 class=fn><a name="QDomNodeList-2"></a>QDomNodeList::QDomNodeList ( const&nbsp;<a href="qdomnodelist.html">QDomNodeList</a>&nbsp;&amp;&nbsp;n )</h3>Constructs a copy of <em>n</em>.<h3 class=fn><a name="~QDomNodeList"></a>QDomNodeList::~QDomNodeList ()<tt> [virtual]</tt></h3>Destroys the object and frees its resources.<h3 class=fn>uint <a name="count"></a>QDomNodeList::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="qdomnode.html">QDomNode</a> <a name="item"></a>QDomNodeList::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 isreturned (i.e. a node for which <a href="qdomnode.html#isNull">QDomNode::isNull</a>() returns TRUE).<p> <p>See also <a href="#count">count</a>().<h3 class=fn>uint <a name="length"></a>QDomNodeList::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>QDomNodeList::operator!= ( const&nbsp;<a href="qdomnodelist.html">QDomNodeList</a>&nbsp;&amp;&nbsp;n ) const</h3>Returns TRUE the node list <em>n</em> and this node list are not equal; otherwisereturns FALSE.<h3 class=fn><a href="qdomnodelist.html">QDomNodeList</a>&nbsp;&amp; <a name="operator-eq"></a>QDomNodeList::operator= ( const&nbsp;<a href="qdomnodelist.html">QDomNodeList</a>&nbsp;&amp;&nbsp;n )</h3>Assigns <em>n</em> to this node list.<h3 class=fn>bool <a name="operator-eq-eq"></a>QDomNodeList::operator== ( const&nbsp;<a href="qdomnodelist.html">QDomNodeList</a>&nbsp;&amp;&nbsp;n ) const</h3>Returns TRUE if the node list <em>n</em> and this node list are equal; otherwisereturns FALSE.<!-- eof --><hr><p>This file is part of the <a href="index.html">Qt toolkit</a>.Copyright &copy; 1995-2002<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; 2002 <a href="http://www.trolltech.com">Trolltech</a><td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a><td align=right><div align=right>Qt version 3.0.5</div></table></div></address></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?