📄 group__g__hash.html
字号:
<p>References <a class="el" href="ocilib_8h-source.html#l01046">OCI_Variant::p_void</a>.</p><p>Referenced by <a class="el" href="group__g__threads.html#gf0e4d19a364f990075f2718b80a05bd5">OCI_ThreadKeyCreate()</a>.</p></div></div><p><a class="anchor" name="g4e73684e448211f34361420ba2fc7ddf"></a><!-- doxytag: member="ocilib.h::OCI_HashAddString" ref="g4e73684e448211f34361420ba2fc7ddf" args="(OCI_HashTable *table, const mtext *key, const mtext *value)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT boolean OCI_API OCI_HashAddString </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_o_c_i___hash_table.html">OCI_HashTable</a> * </td> <td class="paramname"> <em>table</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const mtext * </td> <td class="paramname"> <em>key</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const mtext * </td> <td class="paramname"> <em>value</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Add a pair string key / string value to the hash table. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>table</em> </td><td>- Table handle </td></tr> <tr><td valign="top"></td><td valign="top"><em>key</em> </td><td>- String key </td></tr> <tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>- string value</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>TRUE on success otherwise FALSE </dd></dl><p>Definition at line <a class="el" href="hash_8c-source.html#l00348">348</a> of file <a class="el" href="hash_8c-source.html">hash.c</a>.</p><p>References <a class="el" href="ocilib_8h-source.html#l01050">OCI_Variant::p_mtext</a>.</p></div></div><p><a class="anchor" name="ga4375677fb934961a73a1f5d0de6eadd"></a><!-- doxytag: member="ocilib.h::OCI_HashCreate" ref="ga4375677fb934961a73a1f5d0de6eadd" args="(unsigned int size, unsigned int type)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT <a class="el" href="struct_o_c_i___hash_table.html">OCI_HashTable</a>* OCI_API OCI_HashCreate </td> <td>(</td> <td class="paramtype">unsigned int </td> <td class="paramname"> <em>size</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned int </td> <td class="paramname"> <em>type</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Create a hash table. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>size</em> </td><td>- size of the hash table </td></tr> <tr><td valign="top"></td><td valign="top"><em>type</em> </td><td>- type of the hash table</td></tr> </table></dl><dl class="note" compact><dt><b>Note:</b></dt><dd>Parameter can be one of the following values :</dd></dl><ul><li>OCI_HASH_STRING : string values</li><li>OCI_HASH_INTEGER : integer values</li><li>OCI_HASH_POINTER : pointer values</li></ul><p><dl class="return" compact><dt><b>Returns:</b></dt><dd>Hash handle on success or NULL on failure </dd></dl><p>Definition at line <a class="el" href="hash_8c-source.html#l00072">72</a> of file <a class="el" href="hash_8c-source.html">hash.c</a>.</p><p>References <a class="el" href="ocilib__types_8h-source.html#l00690">OCI_HashTable::count</a>, <a class="el" href="ocilib__types_8h-source.html#l00688">OCI_HashTable::items</a>, <a class="el" href="group__g__hash.html#g9d85500c527e1cb75697abd663add2f1">OCI_HashFree()</a>, <a class="el" href="ocilib__types_8h-source.html#l00689">OCI_HashTable::size</a>, and <a class="el" href="ocilib__types_8h-source.html#l00691">OCI_HashTable::type</a>.</p><p>Referenced by <a class="el" href="group__g__threads.html#gf0e4d19a364f990075f2718b80a05bd5">OCI_ThreadKeyCreate()</a>.</p></div></div><p><a class="anchor" name="g9d85500c527e1cb75697abd663add2f1"></a><!-- doxytag: member="ocilib.h::OCI_HashFree" ref="g9d85500c527e1cb75697abd663add2f1" args="(OCI_HashTable *table)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT boolean OCI_API OCI_HashFree </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_o_c_i___hash_table.html">OCI_HashTable</a> * </td> <td class="paramname"> <em>table</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Destroy a hash table. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>table</em> </td><td>- Table handle</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>TRUE on success otherwise FALSE </dd></dl><p>Definition at line <a class="el" href="hash_8c-source.html#l00109">109</a> of file <a class="el" href="hash_8c-source.html">hash.c</a>.</p><p>References <a class="el" href="ocilib__types_8h-source.html#l00688">OCI_HashTable::items</a>, <a class="el" href="ocilib_8h-source.html#l01091">OCI_HashEntry::key</a>, <a class="el" href="ocilib_8h-source.html#l01079">OCI_HashValue::next</a>, <a class="el" href="ocilib_8h-source.html#l01093">OCI_HashEntry::next</a>, <a class="el" href="ocilib_8h-source.html#l01050">OCI_Variant::p_mtext</a>, <a class="el" href="ocilib__types_8h-source.html#l00689">OCI_HashTable::size</a>, <a class="el" href="ocilib__types_8h-source.html#l00691">OCI_HashTable::type</a>, <a class="el" href="ocilib_8h-source.html#l01078">OCI_HashValue::value</a>, and <a class="el" href="ocilib_8h-source.html#l01092">OCI_HashEntry::values</a>.</p><p>Referenced by <a class="el" href="group__g__hash.html#ga4375677fb934961a73a1f5d0de6eadd">OCI_HashCreate()</a>.</p></div></div><p><a class="anchor" name="gac21d1abb64dd64e797b1fe8e8638675"></a><!-- doxytag: member="ocilib.h::OCI_HashGetEntry" ref="gac21d1abb64dd64e797b1fe8e8638675" args="(OCI_HashTable *table, unsigned int index)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT <a class="el" href="struct_o_c_i___hash_entry.html">OCI_HashEntry</a>* OCI_API OCI_HashGetEntry </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_o_c_i___hash_table.html">OCI_HashTable</a> * </td> <td class="paramname"> <em>table</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned int </td> <td class="paramname"> <em>index</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Return the entry slot of the hash table internal list at the given position. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>table</em> </td><td>- Table handle </td></tr> <tr><td valign="top"></td><td valign="top"><em>index</em> </td><td>- index</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>Slot handle otherwise NULL </dd></dl><p>Definition at line <a class="el" href="hash_8c-source.html#l00211">211</a> of file <a class="el" href="hash_8c-source.html">hash.c</a>.</p><p>References <a class="el" href="ocilib__types_8h-source.html#l00688">OCI_HashTable::items</a>, and <a class="el" href="ocilib__types_8h-source.html#l00689">OCI_HashTable::size</a>.</p></div></div><p><a class="anchor" name="g66c44e17f92225a26b274df4c5794fc2"></a><!-- doxytag: member="ocilib.h::OCI_HashGetInt" ref="g66c44e17f92225a26b274df4c5794fc2" args="(OCI_HashTable *table, const mtext *key)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT int OCI_API OCI_HashGetInt </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_o_c_i___hash_table.html">OCI_HashTable</a> * </td> <td class="paramname"> <em>table</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const mtext * </td> <td class="paramname"> <em>key</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Return the integer value associated to the given key. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>table</em> </td><td>- Table handle </td></tr> <tr><td valign="top"></td><td valign="top"><em>key</em> </td><td>- String key</td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>Stored integer associated with the key otherwise 0 </dd></dl><p>Definition at line <a class="el" href="hash_8c-source.html#l00249">249</a> of file <a class="el" href="hash_8c-source.html">hash.c</a>.</p><p>References <a class="el" href="ocilib_8h-source.html#l01042">OCI_Variant::num</a>, <a class="el" href="group__g__hash.html#g459349a19b3780933d87a9a1257d4f7b">OCI_HashGetValue()</a>, <a class="el" href="ocilib__types_8h-source.html#l00691">OCI_HashTable::type</a>, and <a class="el" href="ocilib_8h-source.html#l01078">OCI_HashValue::value</a>.</p></div></div><p><a class="anchor" name="g4b5fe71fbbb41265efa5645e4dd5838a"></a><!-- doxytag: member="ocilib.h::OCI_HashGetPointer" ref="g4b5fe71fbbb41265efa5645e4dd5838a" args="(OCI_HashTable *table, const mtext *key)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">OCI_EXPORT void* OCI_API OCI_HashGetPointer </td> <td>(</td> <td class="paramtype"><a class="el" href="struct_o_c_i___hash_table.html">OCI_HashTable</a> * </td> <td class="paramname"> <em>table</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const mtext * </td> <td class="paramname"> <em>key</em></td><td> </td> </tr> <tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -