1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Qt Toolkit - QDomNamedNodeMap 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: white; color: black; }
--></style>
</head><body bgcolor="#ffffff">
<table width="100%">
<tr><td><a href="index.html">
<img width="100" height="100" src="qtlogo.png"
alt="Home" border="0"><img width="100"
height="100" src="face.png" alt="Home" border="0">
</a><td valign=top><div align=right><img src="dochead.png" width="472" height="27"><br>
<a href="classes.html"><b>Classes</b></a>
-<a href="annotated.html">Annotated</a>
- <a href="hierarchy.html">Tree</a>
-<a href="functions.html">Functions</a>
-<a href="index.html">Home</a>
-<a href="topicals.html"><b>Structure</b></a>
</div>
</table>
<h1 align=center>QDomNamedNodeMap Class Reference<br><small>[ <a href="xml.html">XML module</a> ]</small></h1><br clear="all">
<p>
The QDomNamedNodeMap class contains a collection of nodes that can be accessed by name.
<a href="#details">More...</a>
<p>
<code>#include <<a href="qdom-h.html">qdom.h</a>></code>
<p><a href="qdomnamednodemap-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<li><div class="fn"><a href="#7e4841"><b>QDomNamedNodeMap</b></a>()</div>
<li><div class="fn"><a href="#22f579"><b>QDomNamedNodeMap</b></a>(constQDomNamedNodeMap&)</div>
<li><div class="fn">QDomNamedNodeMap&<a href="#1b8424"><b>operator=</b></a>(constQDomNamedNodeMap&)</div>
<li><div class="fn">bool<a href="#5d079f"><b>operator==</b></a>(constQDomNamedNodeMap&)const</div>
<li><div class="fn">bool<a href="#9b2732"><b>operator!=</b></a>(constQDomNamedNodeMap&)const</div>
<li><div class="fn"><a href="#a74b95"><b>~QDomNamedNodeMap</b></a>()</div>
<li><div class="fn">QDomNode<a href="#00bb5c"><b>namedItem</b></a>(constQString&name)const</div>
<li><div class="fn">QDomNode<a href="#5a2b5f"><b>setNamedItem</b></a>(constQDomNode&arg)</div>
<li><div class="fn">QDomNode<a href="#761de5"><b>removeNamedItem</b></a>(constQString&name)</div>
<li><div class="fn">QDomNode<a href="#a12877"><b>item</b></a>(intindex)const</div>
<li><div class="fn">uint<a href="#0e8228"><b>length</b></a>()const</div>
<li><div class="fn">bool<a href="#5e814e"><b>contains</b></a>(constQString&name)const</div>
</ul>
<hr><h2><a name="details"></a>Detailed Description</h2>
The QDomNamedNodeMap class contains a collection of nodes that can be accessed by name.
<p>
Note that QDomNamedNodeMap does not inherit from <a href="qdomnodelist.html">QDomNodeList</a>;
QDomNamedNodeMaps does not provide any specific order of the nodes. Nodes
contained in a QDomNamedNodeMap may also be accessed by an ordinal index, but
this is simply to allow a convenient enumeration of the contents of a
QDomNamedNodeMap and does not imply that the DOM specifies an order on the
nodes.
<p>The QDomNamedNodeMap is used in three places:
<p><ul>
<li> <a href="qdomdocumenttype.html#8832e2">QDomDocumentType::entities</a>() returns a map of all entities
described in the DTD.
<li> <a href="qdomdocumenttype.html#19eace">QDomDocumentType::notations</a>() returns a map of all notations
described in the DTD.
<li> <a href="qdomelement.html#65a036">QDomElement::attributes</a>() returns a map of all attributes of the
element.
</ul>
<p>Items in the map are identified by the name which QDomNode::name() returns.
They can be queried using the <a href="#00bb5c">namedItem</a>() function and set using
<a href="#5a2b5f">setNamedItem</a>().
<p>See also <a href="#00bb5c">namedItem</a>() and <a href="#5a2b5f">setNamedItem</a>().
<hr><h2>Member Function Documentation</h2>
<h3 class="fn"><a name="7e4841"></a>QDomNamedNodeMap::QDomNamedNodeMap()</h3>
<p>Constructs an empty map.
<h3 class="fn"><a name="22f579"></a>QDomNamedNodeMap::QDomNamedNodeMap(constQDomNamedNodeMap&<a href="n.html">n</a>)</h3>
<p>Copy constructor.
<h3 class="fn"><a name="a74b95"></a>QDomNamedNodeMap::~QDomNamedNodeMap()</h3>
<p>Destructor.
<h3 class="fn">bool<a name="5e814e"></a>QDomNamedNodeMap::contains(const<a href="qstring.html">QString</a>&name)const</h3>
<p>Returns TRUE if the map contains a node with the name <em>name,</em> otherwise
FALSE.
<h3 class="fn"><a href="qdomnode.html">QDomNode</a><a name="a12877"></a>QDomNamedNodeMap::item(intindex)const</h3>
<p>Retrieves the node at position <em>index.</em>
<p>This can be used to iterate over the map.
<p>See also <a href="#0e8228">length</a>().
<h3 class="fn">uint<a name="0e8228"></a>QDomNamedNodeMap::length()const</h3>
<p>Returns the number of nodes in the map.
<p>See also <a href="#a12877">item</a>().
<h3 class="fn"><a href="qdomnode.html">QDomNode</a><a name="00bb5c"></a>QDomNamedNodeMap::namedItem(const<a href="qstring.html">QString</a>&name)const</h3>
<p>Returns the node associated with they key <em>name.</em>
<p>If the map does not contain such a node, then a null node is returned.
<p>See also <a href="#5a2b5f">setNamedItem</a>().
<h3 class="fn">bool<a name="9b2732"></a>QDomNamedNodeMap::operator!=(constQDomNamedNodeMap&<a href="n.html">n</a>)const</h3>
<p>Returns TRUE if the maps are not equal, FALSE otherwise.
<h3 class="fn">QDomNamedNodeMap&<a name="1b8424"></a>QDomNamedNodeMap::operator=(constQDomNamedNodeMap&<a href="n.html">n</a>)</h3>
<p>Assignement operator.
<h3 class="fn">bool<a name="5d079f"></a>QDomNamedNodeMap::operator==(constQDomNamedNodeMap&<a href="n.html">n</a>)const</h3>
<p>Returns TRUE if the maps are equal, FALSE otherwise.
<h3 class="fn"><a href="qdomnode.html">QDomNode</a><a name="761de5"></a>QDomNamedNodeMap::removeNamedItem(const<a href="qstring.html">QString</a>&name)</h3>
<p>Removes the node with the name <em>name</em> from the map.
<p>The function returns the removed node or a null node
if the map did not contain a node with the name <em>name.</em>
<p>See also <a href="#5a2b5f">setNamedItem</a>().
<h3 class="fn"><a href="qdomnode.html">QDomNode</a><a name="5a2b5f"></a>QDomNamedNodeMap::setNamedItem(const<a href="qdomnode.html">QDomNode</a>&newNode)</h3>
<p>Inserts the node <em>newNode</em> in the map. The kye for the map is the name of <em>newNode</em> as returned by <a href="qdomnode.html#70cc89">QDomNode::nodeName</a>().
<p>The function returns the newly inserted node.
<p>See also <a href="#761de5">removeNamedItem</a>().
<hr><p>
Search the documentation, FAQ, qt-interest archive and more (uses
<a href="http://www.trolltech.com">www.trolltech.com</a>):<br>
<form method=post action="http://www.trolltech.com/search.cgi">
<input type=hidden name="version" value="2.3.2"><nobr>
<input size="50" name="search"><input type=submit value="Search">
</nobr></form><hr><p>
This file is part of the <a href="index.html">Qt toolkit</a>,
copyright © 1995-2001
<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 2001 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a>
<td align="right"><div align="right">Qt version 2.3.2</div>
</table></div></address></body></html>
|