You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>So, regardless of which container you use, you can simply put elements into a list with <code>container->put(container, ...)</code> or you can call them using direct API like qtreetbl_pub(container, ...).</p>
150
150
<p>An examples below illustrates how it looks like.</p>
151
151
<divclass="fragment"><divclass="line"><spanclass="comment">// create a hash-table.</span></div>
<divclass="ttc" id="aqhashtbl_8c_html_a7a2314dcb8381b4599e8050becad2268"><divclass="ttname"><ahref="qhashtbl_8c.html#a7a2314dcb8381b4599e8050becad2268">qhashtbl</a></div><divclass="ttdeci">qhashtbl_t * qhashtbl(size_t range, int options)</div><divclass="ttdoc">Initialize hash table.</div><divclass="ttdef"><b>Definition:</b><ahref="qhashtbl_8c_source.html#l00127">qhashtbl.c:127</a></div></div>
168
168
</div><!-- fragment --><p>Here is an identical implementation with a Linked-List-Table container. You may notice that there aren't any code changes at all, except for 1 line in the table creation. This is why qLibc encapsulates corresponding function pointers inside of the container object.</p>
169
169
<divclass="fragment"><divclass="line"><spanclass="comment">// create a linked-list-table. THE ONLY LINE YOU NEED TO CHANGE.</span></div>
<divclass="line"><spanclass="keywordflow">for</span> more details as well as other forms of the FNV hash.</div>
273
273
</div><!-- fragment -->
274
-
<pclass="definition">Definition at line <aclass="el" href="qhash_8c_source.html#l00187">187</a> of file <aclass="el" href="qhash_8c_source.html">qhash.c</a>.</p>
274
+
<pclass="definition">Definition at line <aclass="el" href="qhash_8c_source.html#l00192">192</a> of file <aclass="el" href="qhash_8c_source.html">qhash.c</a>.</p>
<pclass="definition">Definition at line <aclass="el" href="qhash_8c_source.html#l00218">218</a> of file <aclass="el" href="qhash_8c_source.html">qhash.c</a>.</p>
316
+
<pclass="definition">Definition at line <aclass="el" href="qhash_8c_source.html#l00223">223</a> of file <aclass="el" href="qhash_8c_source.html">qhash.c</a>.</p>
<divclass="line">Seungyoung Kim has ported its implementation into C language</div>
361
361
<divclass="line">in 2012 and published it as a part of qLibc component.</div>
362
362
</div><!-- fragment -->
363
-
<pclass="definition">Definition at line <aclass="el" href="qhash_8c_source.html#l00258">258</a> of file <aclass="el" href="qhash_8c_source.html">qhash.c</a>.</p>
363
+
<pclass="definition">Definition at line <aclass="el" href="qhash_8c_source.html#l00263">263</a> of file <aclass="el" href="qhash_8c_source.html">qhash.c</a>.</p>
<pclass="definition">Definition at line <aclass="el" href="qhash_8c_source.html#l00330">330</a> of file <aclass="el" href="qhash_8c_source.html">qhash.c</a>.</p>
419
+
<pclass="definition">Definition at line <aclass="el" href="qhash_8c_source.html#l00335">335</a> of file <aclass="el" href="qhash_8c_source.html">qhash.c</a>.</p>
0 commit comments