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 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156
|
<!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 - QGDict 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>QGDict Class Reference</h1><br clear="all">
<p>
The QGDict class is an internal class for implementing <a href="qdict.html">QDict</a> template classes.
<a href="#details">More...</a>
<p>
<code>#include <<a href="qgdict-h.html">qgdict.h</a>></code>
<p>
Inherits <a href="qcollection.html">QCollection</a>.
<p>Inherited by <a href="qasciidict.html">QAsciiDict</a>, <a href="qdict.html">QDict</a>, <a href="qintdict.html">QIntDict</a> and <a href="qptrdict.html">QPtrDict</a>.
<p><a href="qgdict-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<li><div class="fn">virtualuint<b>count</b>()const(internal)</div>
<li><div class="fn">uint<b>size</b>()const(internal)</div>
<li><div class="fn">QCollection::Item<b>look_string</b>(constQString&key, QCollection::Item, int)(internal)</div>
<li><div class="fn">QCollection::Item<b>look_ascii</b>(constchar*key, QCollection::Item, int)(internal)</div>
<li><div class="fn">QCollection::Item<b>look_int</b>(longkey, QCollection::Item, int)(internal)</div>
<li><div class="fn">QCollection::Item<b>look_ptr</b>(void*key, QCollection::Item, int)(internal)</div>
<li><div class="fn">QDataStream&<b>read</b>(QDataStream&)(internal)</div>
<li><div class="fn">QDataStream&<b>write</b>(QDataStream&)const(internal)</div>
</ul>
<h2>Protected Members</h2>
<ul>
<li><div class="fn">enum<b>KeyType</b>{StringKey, AsciiKey, IntKey, PtrKey}</div>
<li><div class="fn"><b>QGDict</b>(uintlen, KeyTypekt, boolcs, boolck)(internal)</div>
<li><div class="fn"><b>QGDict</b>(constQGDict&)(internal)</div>
<li><div class="fn"><b>~QGDict</b>()(internal)</div>
<li><div class="fn">QGDict&<b>operator=</b>(constQGDict&)(internal)</div>
<li><div class="fn">bool<b>remove_string</b>(constQString&key, QCollection::Itemitem=0)(internal)</div>
<li><div class="fn">bool<b>remove_ascii</b>(constchar*key, QCollection::Itemitem=0)(internal)</div>
<li><div class="fn">bool<b>remove_int</b>(longkey, QCollection::Itemitem=0)(internal)</div>
<li><div class="fn">bool<b>remove_ptr</b>(void*key, QCollection::Itemitem=0)(internal)</div>
<li><div class="fn">QCollection::Item<b>take_string</b>(constQString&key)(internal)</div>
<li><div class="fn">QCollection::Item<b>take_ascii</b>(constchar*key)(internal)</div>
<li><div class="fn">QCollection::Item<b>take_int</b>(longkey)(internal)</div>
<li><div class="fn">QCollection::Item<b>take_ptr</b>(void*key)(internal)</div>
<li><div class="fn">virtualvoid<b>clear</b>()(internal)</div>
<li><div class="fn">void<b>resize</b>(uint)(internal)</div>
<li><div class="fn">int<b>hashKeyString</b>(constQString&)(internal)</div>
<li><div class="fn">int<b>hashKeyAscii</b>(constchar*)(internal)</div>
<li><div class="fn">void<b>statistics</b>()const(internal)</div>
<li><div class="fn">virtualQDataStream&<a href="#cccce4"><b>read</b></a>(QDataStream&, QCollection::Item&)</div>
<li><div class="fn">virtualQDataStream&<a href="#aebcdf"><b>write</b></a>(QDataStream&, QCollection::Item)const</div>
</ul>
<hr><h2><a name="details"></a>Detailed Description</h2>
The QGDict class is an internal class for implementing <a href="qdict.html">QDict</a> template classes.
<p>
QGDict is a strictly internal class that acts as a base class for the
<a href="collection.html">collection classes</a> QDict and <a href="qintdict.html">QIntDict</a>.
<p>QGDict has some virtual functions that can be reimplemented to customize
the subclasses.
<ul>
<li> <a href="#04d566">read</a>() reads a collection/dictionary item from a <a href="qdatastream.html">QDataStream</a>.
<li> <a href="#708300">write</a>() writes a collection/dictionary item to a QDataStream.
</ul>
Normally, you do not have to reimplement any of these functions.
<hr><h2>Member Function Documentation</h2>
<h3 class="fn"><a href="qdatastream.html">QDataStream</a>&<a name="cccce4"></a>QGDict::read(<a href="qdatastream.html">QDataStream</a>&s, <a href="qcollection.html#Item">QCollection::Item</a>&item) <code>[virtualprotected]</code></h3>
<p>Reads a collection/dictionary item from the stream <em>s</em> and returns a
reference to the stream.
<p>The default implementation sets <em>item</em> to 0.
<p>See also <a href="#708300">write</a>().
<h3 class="fn"><a href="qdatastream.html">QDataStream</a>&<a name="aebcdf"></a>QGDict::write(<a href="qdatastream.html">QDataStream</a>&s, <a href="qcollection.html#Item">QCollection::Item</a>)const <code>[virtualprotected]</code></h3>
<p>Writes a collection/dictionary item to the stream <em>s</em> and returns a
reference to the stream.
<p>See also <a href="#04d566">read</a>().
<h3 class="fn"><a name="c6e172"></a>QGDict::QGDict(constQGDict&dict) <code>[protected]</code></h3>
<p>For internal use only.
<h3 class="fn"><a name="ce8cdc"></a>QGDict::QGDict(uintlen, KeyTypekt, boolcaseSensitive, boolcopyKeys) <code>[protected]</code></h3>
<p>For internal use only.
<h3 class="fn"><a name="16e886"></a>QGDict::~QGDict() <code>[protected]</code></h3>
<p>For internal use only.
<h3 class="fn">void<a name="28324d"></a>QGDict::clear() <code>[virtualprotected]</code></h3>
<p>For internal use only.
<p>Reimplemented from <a href="qcollection.html#10eb2d">QCollection.</a>
<h3 class="fn">uint<a name="1bce1f"></a>QGDict::count()const <code>[virtual]</code></h3>
<p>For internal use only.
<p>Reimplemented from <a href="qcollection.html#649c42">QCollection.</a>
<h3 class="fn">int<a name="a04173"></a>QGDict::hashKeyAscii(constchar*key) <code>[protected]</code></h3>
<p>For internal use only.
<h3 class="fn">int<a name="b2a2e0"></a>QGDict::hashKeyString(const<a href="qstring.html">QString</a>&key) <code>[protected]</code></h3>
<p>For internal use only.
<h3 class="fn">QCollection::Item<a name="00fd58"></a>QGDict::look_ascii(constchar*key, QCollection::Itemd, intop)</h3>
<p>For internal use only.
<h3 class="fn">QCollection::Item<a name="bc9919"></a>QGDict::look_int(longkey, QCollection::Itemd, intop)</h3>
<p>For internal use only.
<h3 class="fn">QCollection::Item<a name="63cfe8"></a>QGDict::look_ptr(void*key, QCollection::Itemd, intop)</h3>
<p>For internal use only.
<h3 class="fn">QCollection::Item<a name="42f3bb"></a>QGDict::look_string(constQString&key, QCollection::Itemd, intop)</h3>
<p>For internal use only.
<h3 class="fn">QGDict&<a name="08f810"></a>QGDict::operator=(constQGDict&dict) <code>[protected]</code></h3>
<p>For internal use only.
<h3 class="fn"><a href="qdatastream.html">QDataStream</a>&<a name="04d566"></a>QGDict::read(<a href="qdatastream.html">QDataStream</a>&s)</h3>
<p>For internal use only.
<h3 class="fn">bool<a name="612a6d"></a>QGDict::remove_ascii(constchar*key, <a href="qcollection.html#Item">QCollection::Item</a>item=0) <code>[protected]</code></h3>
<p>For internal use only.
<h3 class="fn">bool<a name="da8865"></a>QGDict::remove_int(longkey, <a href="qcollection.html#Item">QCollection::Item</a>item=0) <code>[protected]</code></h3>
<p>For internal use only.
<h3 class="fn">bool<a name="eb961c"></a>QGDict::remove_ptr(void*key, <a href="qcollection.html#Item">QCollection::Item</a>item=0) <code>[protected]</code></h3>
<p>For internal use only.
<h3 class="fn">bool<a name="c4ff89"></a>QGDict::remove_string(const<a href="qstring.html">QString</a>&key, <a href="qcollection.html#Item">QCollection::Item</a>item=0) <code>[protected]</code></h3>
<p>For internal use only.
<h3 class="fn">void<a name="bd5f20"></a>QGDict::resize(uintnewsize) <code>[protected]</code></h3>
<p>For internal use only.
<h3 class="fn">uint<a name="f92c0a"></a>QGDict::size()const</h3>
<p>For internal use only.
<h3 class="fn">void<a name="322ebe"></a>QGDict::statistics()const <code>[protected]</code></h3>
<p>For internal use only.
<h3 class="fn">QCollection::Item<a name="b7a0e6"></a>QGDict::take_ascii(constchar*key) <code>[protected]</code></h3>
<p>For internal use only.
<h3 class="fn">QCollection::Item<a name="6dae1f"></a>QGDict::take_int(longkey) <code>[protected]</code></h3>
<p>For internal use only.
<h3 class="fn">QCollection::Item<a name="8d20e5"></a>QGDict::take_ptr(void*key) <code>[protected]</code></h3>
<p>For internal use only.
<h3 class="fn">QCollection::Item<a name="5376df"></a>QGDict::take_string(constQString&key) <code>[protected]</code></h3>
<p>For internal use only.
<h3 class="fn"><a href="qdatastream.html">QDataStream</a>&<a name="708300"></a>QGDict::write(<a href="qdatastream.html">QDataStream</a>&s)const</h3>
<p>For internal use only.
<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.1"><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-2000
<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 2000 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a>
<td align="right"><div align="right">Qt version 2.3.1</div>
</table></div></address></body></html>
|