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 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>FoHashTable</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
<link rel="start" href="index.html" title="xmlroff Reference Manual">
<link rel="up" href="utility-objects.html" title="Utility Objects">
<link rel="prev" href="utility-objects.html" title="Utility Objects">
<link rel="next" href="xmlroff-FoImage.html" title="FoImage">
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="chapter" href="users.html" title="Users' Guide">
<link rel="chapter" href="developers.html" title="Developers' Guide">
<link rel="chapter" href="object-hierarchy.html" title="Object Hierarchy">
<link rel="chapter" href="object.html" title="FoObject is wonderful">
<link rel="chapter" href="node.html" title="FoNode is wonderful">
<link rel="chapter" href="interfaces.html" title="Interfaces are truly wonderful">
<link rel="chapter" href="formatting-objects.html" title="Formatting Objects are truly wonderful">
<link rel="chapter" href="properties.html" title="Properties">
<link rel="chapter" href="areas.html" title="Area Objects">
<link rel="chapter" href="datatypes.html" title="Datatype Objects">
<link rel="chapter" href="context.html" title="Property Context Object">
<link rel="chapter" href="other-objects.html" title="Other Objects">
<link rel="chapter" href="utility-objects.html" title="Utility Objects">
<link rel="chapter" href="utility-modules.html" title="Utility Modules">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="utility-objects.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="utility-objects.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">xmlroff Reference Manual</th>
<td><a accesskey="n" href="xmlroff-FoImage.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#FoHashTable.synopsis" class="shortcut">Top</a>
|
<a href="#FoHashTable.description" class="shortcut">Description</a>
|
<a href="#FoHashTable.object-hierarchy" class="shortcut">Object Hierarchy</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="FoHashTable"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="FoHashTable.top_of_page"></a>FoHashTable</span></h2>
<p>FoHashTable</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="FoHashTable.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
<a class="link" href="FoHashTable.html#FoHashTable-struct" title="FoHashTable">FoHashTable</a>;
<a class="link" href="FoHashTable.html#FoHashTableClass" title="FoHashTableClass">FoHashTableClass</a>;
#define <a class="link" href="FoHashTable.html#FO-HASH-TABLE-ERROR:CAPS" title="FO_HASH_TABLE_ERROR">FO_HASH_TABLE_ERROR</a>
<a
href="../glib/glib-Quarks.html#GQuark"
>GQuark</a> <a class="link" href="FoHashTable.html#fo-hash-table-error-quark" title="fo_hash_table_error_quark ()">fo_hash_table_error_quark</a> (void);
<a class="link" href="FoHashTable.html" title="FoHashTable">FoHashTable</a>* <a class="link" href="FoHashTable.html#fo-hash-table-new" title="fo_hash_table_new ()">fo_hash_table_new</a> (void);
void <a class="link" href="FoHashTable.html#fo-hash-table-insert" title="fo_hash_table_insert ()">fo_hash_table_insert</a> (<a class="link" href="FoHashTable.html" title="FoHashTable">FoHashTable</a> *fo_hash_table,
<a class="link" href="FoObject.html" title="FoObject">FoObject</a> *key,
<a class="link" href="FoObject.html" title="FoObject">FoObject</a> *value,
<a
href="../glib/glib-Error-Reporting.html#GError"
>GError</a> **error);
void <a class="link" href="FoHashTable.html#fo-hash-table-replace" title="fo_hash_table_replace ()">fo_hash_table_replace</a> (<a class="link" href="FoHashTable.html" title="FoHashTable">FoHashTable</a> *fo_hash_table,
<a class="link" href="FoObject.html" title="FoObject">FoObject</a> *key,
<a class="link" href="FoObject.html" title="FoObject">FoObject</a> *value,
<a
href="../glib/glib-Error-Reporting.html#GError"
>GError</a> **error);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="FoHashTable.html#fo-hash-table-remove" title="fo_hash_table_remove ()">fo_hash_table_remove</a> (<a class="link" href="FoHashTable.html" title="FoHashTable">FoHashTable</a> *fo_hash_table,
<a class="link" href="FoObject.html" title="FoObject">FoObject</a> *key,
<a
href="../glib/glib-Error-Reporting.html#GError"
>GError</a> **error);
<a class="link" href="FoObject.html" title="FoObject">FoObject</a>* <a class="link" href="FoHashTable.html#fo-hash-table-lookup" title="fo_hash_table_lookup ()">fo_hash_table_lookup</a> (<a class="link" href="FoHashTable.html" title="FoHashTable">FoHashTable</a> *fo_hash_table,
<a class="link" href="FoObject.html" title="FoObject">FoObject</a> *key,
<a
href="../glib/glib-Error-Reporting.html#GError"
>GError</a> **error);
<a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> <a class="link" href="FoHashTable.html#fo-hash-table-size" title="fo_hash_table_size ()">fo_hash_table_size</a> (<a class="link" href="FoHashTable.html" title="FoHashTable">FoHashTable</a> *fo_hash_table);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="FoHashTable.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
<a
href="../gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
+----<a class="link" href="FoObject.html" title="FoObject">FoObject</a>
+----FoHashTable
</pre>
</div>
<div class="refsect1" lang="en">
<a name="FoHashTable.description"></a><h2>Description</h2>
<p>
</p>
</div>
<div class="refsect1" lang="en">
<a name="FoHashTable.details"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="FoHashTable-struct"></a><h3>FoHashTable</h3>
<pre class="programlisting">typedef struct _FoHashTable FoHashTable;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="FoHashTableClass"></a><h3>FoHashTableClass</h3>
<pre class="programlisting">typedef struct _FoHashTableClass FoHashTableClass;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="FO-HASH-TABLE-ERROR:CAPS"></a><h3>FO_HASH_TABLE_ERROR</h3>
<pre class="programlisting">#define FO_HASH_TABLE_ERROR fo_hash_table_error_quark ()
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="fo-hash-table-error-quark"></a><h3>fo_hash_table_error_quark ()</h3>
<pre class="programlisting"><a
href="../glib/glib-Quarks.html#GQuark"
>GQuark</a> fo_hash_table_error_quark (void);</pre>
<p>
Get the error quark for <a class="link" href="FoHashTable.html" title="FoHashTable"><span class="type">FoHashTable</span></a>.
</p>
<p>
If the quark does not yet exist, create it.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> Quark associated with <a class="link" href="FoHashTable.html" title="FoHashTable"><span class="type">FoHashTable</span></a> errors.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="fo-hash-table-new"></a><h3>fo_hash_table_new ()</h3>
<pre class="programlisting"><a class="link" href="FoHashTable.html" title="FoHashTable">FoHashTable</a>* fo_hash_table_new (void);</pre>
<p>
Creates a new <a class="link" href="FoHashTable.html" title="FoHashTable"><span class="type">FoHashTable</span></a> initialized to default value.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the new <a class="link" href="FoHashTable.html" title="FoHashTable"><span class="type">FoHashTable</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="fo-hash-table-insert"></a><h3>fo_hash_table_insert ()</h3>
<pre class="programlisting">void fo_hash_table_insert (<a class="link" href="FoHashTable.html" title="FoHashTable">FoHashTable</a> *fo_hash_table,
<a class="link" href="FoObject.html" title="FoObject">FoObject</a> *key,
<a class="link" href="FoObject.html" title="FoObject">FoObject</a> *value,
<a
href="../glib/glib-Error-Reporting.html#GError"
>GError</a> **error);</pre>
<p>
Inserts <em class="parameter"><code>value</code></em> as the value corresponding to <em class="parameter"><code>key</code></em> in
<em class="parameter"><code>fo_hash_table</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fo_hash_table</code></em> :</span></p></td>
<td> <a class="link" href="FoHashTable.html" title="FoHashTable"><span class="type">FoHashTable</span></a> in which to insert.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
<td> Key at which to insert.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td> Value to insert.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td> <a
href="../glib/glib-Error-Reporting.html#GError"
><span class="type">GError</span></a> with information about error that occurred.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="fo-hash-table-replace"></a><h3>fo_hash_table_replace ()</h3>
<pre class="programlisting">void fo_hash_table_replace (<a class="link" href="FoHashTable.html" title="FoHashTable">FoHashTable</a> *fo_hash_table,
<a class="link" href="FoObject.html" title="FoObject">FoObject</a> *key,
<a class="link" href="FoObject.html" title="FoObject">FoObject</a> *value,
<a
href="../glib/glib-Error-Reporting.html#GError"
>GError</a> **error);</pre>
<p>
Replaces the key-value pair in <em class="parameter"><code>fo_hash_table</code></em> that has a key
matching <em class="parameter"><code>key</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fo_hash_table</code></em> :</span></p></td>
<td> <a class="link" href="FoHashTable.html" title="FoHashTable"><span class="type">FoHashTable</span></a> in which to replace.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
<td> Key of key-value pair to replace.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td> New value.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td> <a
href="../glib/glib-Error-Reporting.html#GError"
><span class="type">GError</span></a> with information about error that occurred.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="fo-hash-table-remove"></a><h3>fo_hash_table_remove ()</h3>
<pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> fo_hash_table_remove (<a class="link" href="FoHashTable.html" title="FoHashTable">FoHashTable</a> *fo_hash_table,
<a class="link" href="FoObject.html" title="FoObject">FoObject</a> *key,
<a
href="../glib/glib-Error-Reporting.html#GError"
>GError</a> **error);</pre>
<p>
Removes the key-value pair with key matching <em class="parameter"><code>key</code></em> from
<em class="parameter"><code>fo_hash_table</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fo_hash_table</code></em> :</span></p></td>
<td> <a class="link" href="FoHashTable.html" title="FoHashTable"><span class="type">FoHashTable</span></a> from which to remove a key-value pair.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
<td> Key of pair to remove.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td> <a
href="../glib/glib-Error-Reporting.html#GError"
><span class="type">GError</span></a> with information about error that occurred.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> is successful.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="fo-hash-table-lookup"></a><h3>fo_hash_table_lookup ()</h3>
<pre class="programlisting"><a class="link" href="FoObject.html" title="FoObject">FoObject</a>* fo_hash_table_lookup (<a class="link" href="FoHashTable.html" title="FoHashTable">FoHashTable</a> *fo_hash_table,
<a class="link" href="FoObject.html" title="FoObject">FoObject</a> *key,
<a
href="../glib/glib-Error-Reporting.html#GError"
>GError</a> **error);</pre>
<p>
Gets the value associated with <em class="parameter"><code>key</code></em> in <em class="parameter"><code>fo_hash_table</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fo_hash_table</code></em> :</span></p></td>
<td> <a class="link" href="FoHashTable.html" title="FoHashTable"><span class="type">FoHashTable</span></a> in which to look.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
<td> Key value against which to compare.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td> <a
href="../glib/glib-Error-Reporting.html#GError"
><span class="type">GError</span></a> with information about error that occurred.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> The value, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if no matching key.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="fo-hash-table-size"></a><h3>fo_hash_table_size ()</h3>
<pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> fo_hash_table_size (<a class="link" href="FoHashTable.html" title="FoHashTable">FoHashTable</a> *fo_hash_table);</pre>
<p>
Gets the number of key-value pairs in <em class="parameter"><code>fo_hash_table</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fo_hash_table</code></em> :</span></p></td>
<td> <a class="link" href="FoHashTable.html" title="FoHashTable"><span class="type">FoHashTable</span></a> for which to get size.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> Number of key-value pairs.
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.10</div>
</body>
</html>
|