Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > 8e6051afcdb111a0317a58fb64c2abf5 > files > 5630

qt4-doc-4.6.3-0.2mdv2010.2.i586.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- qxmlnamepool.cpp -->
<head>
  <title>Qt 4.6: QXmlNamePool Class Reference</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<a name="//apple_ref/cpp/cl//QXmlNamePool"></a>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">All&nbsp;Functions</font></a>&nbsp;&middot; <a href="overviews.html"><font color="#004faf">Overviews</font></a></td></tr></table><h1 class="title">QXmlNamePool Class Reference<br /><span class="small-subtitle">[<a href="qtxmlpatterns.html">QtXmlPatterns</a> module]</span>
</h1>
<p>The QXmlNamePool class is a table of shared strings referenced by instances of <a href="qxmlname.html">QXmlName</a>. <a href="#details">More...</a></p>
<pre> #include &lt;QXmlNamePool&gt;</pre><p><b>This class is not part of the Qt GUI Framework Edition.</b></p>
<p><b>Note:</b> All functions in this class are <a href="threads-reentrancy.html#reentrant">reentrant</a>.</p>
<p>This class was introduced in Qt 4.4.</p>
<ul>
<li><a href="qxmlnamepool-members.html">List of all members, including inherited members</a></li>
</ul>
<hr />
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qxmlnamepool.html#QXmlNamePool">QXmlNamePool</a></b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qxmlnamepool.html#QXmlNamePool-2">QXmlNamePool</a></b> ( const QXmlNamePool &amp; <i>other</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qxmlnamepool.html#dtor.QXmlNamePool">~QXmlNamePool</a></b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QXmlNamePool &amp; </td><td class="memItemRight" valign="bottom"><b><a href="qxmlnamepool.html#operator-eq">operator=</a></b> ( const QXmlNamePool &amp; <i>other</i> )</td></tr>
</table>
<a name="details"></a>
<hr />
<h2>Detailed Description</h2>
<p>The QXmlNamePool class is a table of shared strings referenced by instances of <a href="qxmlname.html">QXmlName</a>.</p>
<p>QXmlNamePool is used to optimize operations on instances of <a href="qxmlname.html">QXmlName</a>. An instance of <a href="qxmlname.html">QXmlName</a> represents an XML name in a way that allows the XML name to be compared and passed around efficiently. The efficiency is achieved by storing the strings comprising the XML names in an instance of QXmlNamePool, where they are mapped to binary identifiers, which are then packed into a key which is stored in the <a href="qxmlname.html">QXmlName</a>.</p>
<p>This means that each instance of <a href="qxmlname.html">QXmlName</a> is tied to the name pool it was created with, and that name pool should be kept in scope and used to create all instances of <a href="qxmlname.html">QXmlName</a> that might be compared. Note also that the name pool is required if you must reconstitute the <a href="qxmlname.html">QXmlName</a> as text, or if you must access any of its component strings, so although instances of <a href="qxmlname.html">QXmlName</a> can be compared without reference to a name pool, the name pool must be kept in scope if the name's strings must be accessed later.</p>
<p>See also <a href="qxmlname.html">QXmlName</a> and <a href="qxmlquery.html#namePool">QXmlQuery::namePool</a>().</p>
<hr />
<h2>Member Function Documentation</h2>
<a name="//apple_ref/cpp/instm/QXmlNamePool/QXmlNamePool"></a>
<h3 class="fn"><a name="QXmlNamePool"></a>QXmlNamePool::QXmlNamePool ()</h3>
<p>Constructs an empty name pool.</p>
<h3 class="fn"><a name="QXmlNamePool-2"></a>QXmlNamePool::QXmlNamePool ( const QXmlNamePool &amp; <i>other</i> )</h3>
<p>Constructs a copy of the <i>other</i> name pool.</p>
<a name="//apple_ref/cpp/instm/QXmlNamePool/~QXmlNamePool"></a>
<h3 class="fn"><a name="dtor.QXmlNamePool"></a>QXmlNamePool::~QXmlNamePool ()</h3>
<p>Destroys the name pool. Instances of <a href="qxmlname.html">QXmlName</a> constructed with this name pool can still be compared after this destructor is called, but their text strings cannot be accessed.</p>
<a name="//apple_ref/cpp/instm/QXmlNamePool/operator="></a>
<h3 class="fn"><a name="operator-eq"></a>QXmlNamePool &amp; QXmlNamePool::operator= ( const QXmlNamePool &amp; <i>other</i> )</h3>
<p>Assigns the <i>other</i> name pool to this one.</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="40%" align="left">Copyright &copy; 2010 Nokia Corporation and/or its subsidiary(-ies)</td>
<td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="40%" align="right"><div align="right">Qt 4.6.3</div></td>
</tr></table></div></address></body>
</html>