Documentation for eae5a72561
374
d9/dab/bloom__filter_8cpp.html
Normal file
@@ -0,0 +1,374 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.5"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C++: data_structures/bloom_filter.cpp File Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Algorithms_in_C++<span id="projectnumber"> 1.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">Set of algorithms implemented in C++.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.5 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d9/dab/bloom__filter_8cpp.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<div id="MSearchResults">
|
||||
<div class="SRPage">
|
||||
<div id="SRIndex">
|
||||
<div id="SRResults"></div>
|
||||
<div class="SRStatus" id="Loading">Loading...</div>
|
||||
<div class="SRStatus" id="Searching">Searching...</div>
|
||||
<div class="SRStatus" id="NoMatches">No Matches</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#nested-classes">Classes</a> |
|
||||
<a href="#namespaces">Namespaces</a> |
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle"><div class="title">bloom_filter.cpp File Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p><a href="https://en.wikipedia.org/wiki/Bloom_filter" target="_blank">Bloom Filter</a> generic implementation in C++
|
||||
<a href="#details">More...</a></p>
|
||||
<div class="textblock"><code>#include <cassert></code><br />
|
||||
<code>#include <functional></code><br />
|
||||
<code>#include <initializer_list></code><br />
|
||||
<code>#include <string></code><br />
|
||||
<code>#include <vector></code><br />
|
||||
<code>#include <iostream></code><br />
|
||||
</div><div class="textblock"><div class="dynheader">
|
||||
Include dependency graph for bloom_filter.cpp:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../df/d2d/bloom__filter_8cpp__incl.svg" width="559" height="124"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
|
||||
Classes</h2></td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dae/classdata__structures_1_1_bitset.html">data_structures::Bitset</a></td></tr>
|
||||
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Simple bitset implementation for bloom filter. <a href="../../d9/dae/classdata__structures_1_1_bitset.html#details">More...</a><br /></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/dd4/classdata__structures_1_1_bloom_filter.html">data_structures::BloomFilter< T ></a></td></tr>
|
||||
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Bloom filter template class. <a href="../../dc/dd4/classdata__structures_1_1_bloom_filter.html#details">More...</a><br /></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:d5/d3c/namespacedata__structures"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d3c/namespacedata__structures.html">data_structures</a></td></tr>
|
||||
<tr class="memdesc:d5/d3c/namespacedata__structures"><td class="mdescLeft"> </td><td class="mdescRight">for IO operations <br /></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:a271c753baf6dc5ac6f19fa03c5873eb4"><td class="memItemLeft" align="right" valign="top">static <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d3c/namespacedata__structures.html#a271c753baf6dc5ac6f19fa03c5873eb4">data_structures::hashDJB2</a> (<a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &s)</td></tr>
|
||||
<tr class="memdesc:a271c753baf6dc5ac6f19fa03c5873eb4"><td class="mdescLeft"> </td><td class="mdescRight"><a href="http://www.cse.yorku.ca/~oz/hash.html" target="_blank">Function djb2</a> to get hash for the given string. <a href="../../d5/d3c/namespacedata__structures.html#a271c753baf6dc5ac6f19fa03c5873eb4">More...</a><br /></td></tr>
|
||||
<tr class="separator:a271c753baf6dc5ac6f19fa03c5873eb4"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a35eb2bc3edbb52f9c5f0b1e51046ef15"><td class="memItemLeft" align="right" valign="top">static <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d3c/namespacedata__structures.html#a35eb2bc3edbb52f9c5f0b1e51046ef15">data_structures::hashStr</a> (<a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &s)</td></tr>
|
||||
<tr class="memdesc:a35eb2bc3edbb52f9c5f0b1e51046ef15"><td class="mdescLeft"> </td><td class="mdescRight"><a href="https://stackoverflow.com/questions/8317508/hash-function-for-a-string" target="_blank">Hash function</a>, to get hash for the given string. <a href="../../d5/d3c/namespacedata__structures.html#a35eb2bc3edbb52f9c5f0b1e51046ef15">More...</a><br /></td></tr>
|
||||
<tr class="separator:a35eb2bc3edbb52f9c5f0b1e51046ef15"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aa6deb9d4a0f63ea97aef3dce4c6c6677"><td class="memItemLeft" align="right" valign="top"><a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d3c/namespacedata__structures.html#aa6deb9d4a0f63ea97aef3dce4c6c6677">data_structures::hashInt_1</a> (int x)</td></tr>
|
||||
<tr class="memdesc:aa6deb9d4a0f63ea97aef3dce4c6c6677"><td class="mdescLeft"> </td><td class="mdescRight"><a href="https://stackoverflow.com/questions/664014/what-integer-hash-function-are-good-that-accepts-an-integer-hash-key" target="_blank">Hash function for test</a> <a href="../../d5/d3c/namespacedata__structures.html#aa6deb9d4a0f63ea97aef3dce4c6c6677">More...</a><br /></td></tr>
|
||||
<tr class="separator:aa6deb9d4a0f63ea97aef3dce4c6c6677"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a9ed236419034917c5270c1dccd220b5c"><td class="memItemLeft" align="right" valign="top"><a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d3c/namespacedata__structures.html#a9ed236419034917c5270c1dccd220b5c">data_structures::hashInt_2</a> (int x)</td></tr>
|
||||
<tr class="memdesc:a9ed236419034917c5270c1dccd220b5c"><td class="mdescLeft"> </td><td class="mdescRight"><a href="https://stackoverflow.com/questions/664014/what-integer-hash-function-are-good-that-accepts-an-integer-hash-key" target="_blank">Hash function for test</a> <a href="../../d5/d3c/namespacedata__structures.html#a9ed236419034917c5270c1dccd220b5c">More...</a><br /></td></tr>
|
||||
<tr class="separator:a9ed236419034917c5270c1dccd220b5c"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a71f57bf262fe55db928b19dc124cc0d8"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dab/bloom__filter_8cpp.html#a71f57bf262fe55db928b19dc124cc0d8">test_bloom_filter_string</a> ()</td></tr>
|
||||
<tr class="memdesc:a71f57bf262fe55db928b19dc124cc0d8"><td class="mdescLeft"> </td><td class="mdescRight">Test for bloom filter with string as generic type. <a href="../../d9/dab/bloom__filter_8cpp.html#a71f57bf262fe55db928b19dc124cc0d8">More...</a><br /></td></tr>
|
||||
<tr class="separator:a71f57bf262fe55db928b19dc124cc0d8"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a30edc0d2bb59c185baec81d69d20ed3b"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dab/bloom__filter_8cpp.html#a30edc0d2bb59c185baec81d69d20ed3b">test_bloom_filter_int</a> ()</td></tr>
|
||||
<tr class="memdesc:a30edc0d2bb59c185baec81d69d20ed3b"><td class="mdescLeft"> </td><td class="mdescRight">Test for bloom filter with int as generic type. <a href="../../d9/dab/bloom__filter_8cpp.html#a30edc0d2bb59c185baec81d69d20ed3b">More...</a><br /></td></tr>
|
||||
<tr class="separator:a30edc0d2bb59c185baec81d69d20ed3b"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a6e509afe40db07681f676ad8da4fb905"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dab/bloom__filter_8cpp.html#a6e509afe40db07681f676ad8da4fb905">test_bitset</a> ()</td></tr>
|
||||
<tr class="memdesc:a6e509afe40db07681f676ad8da4fb905"><td class="mdescLeft"> </td><td class="mdescRight">Test for bitset. <a href="../../d9/dab/bloom__filter_8cpp.html#a6e509afe40db07681f676ad8da4fb905">More...</a><br /></td></tr>
|
||||
<tr class="separator:a6e509afe40db07681f676ad8da4fb905"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dab/bloom__filter_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a> ()</td></tr>
|
||||
<tr class="memdesc:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="mdescLeft"> </td><td class="mdescRight">Main function. <a href="../../d9/dab/bloom__filter_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">More...</a><br /></td></tr>
|
||||
<tr class="separator:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p ><a href="https://en.wikipedia.org/wiki/Bloom_filter" target="_blank">Bloom Filter</a> generic implementation in C++ </p>
|
||||
<p >A Bloom filter is a space-efficient probabilistic data structure, a query returns either "possibly in set" or "definitely not in set".</p>
|
||||
<p >More generally, fewer than 10 bits per element are required for a 1% false positive probability, independent of the size or number of elements in the set.</p>
|
||||
<p >It helps us to not make an "expensive operations", like disk IO - we can use bloom filter to check incoming request, and with a good probability get an answer of bloom filter, that we don't need to make our "expensive
|
||||
operation"</p>
|
||||
<p ><a href="https://stackoverflow.com/a/30247022" target="_blank">Very good use case example</a></p>
|
||||
<p >Basic bloom filter doesn't support deleting of elements, so we don't need to implement deletion in bloom filter and bitset in our case. </p><dl class="section author"><dt>Author</dt><dd><a href="https://github.com/DanArmor" target="_blank">DanArmor</a> </dd></dl>
|
||||
</div><h2 class="groupheader">Function Documentation</h2>
|
||||
<a id="ae66f6b31b5ad750f1fe042a706a4e3d4" name="ae66f6b31b5ad750f1fe042a706a4e3d4"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ae66f6b31b5ad750f1fe042a706a4e3d4">◆ </a></span>main()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">int main </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">void </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Main function. </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>0 on exit </dd></dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 282</span> {</div>
|
||||
<div class="line"><span class="lineno"> 283</span> <span class="comment">// run self-test implementations</span></div>
|
||||
<div class="line"><span class="lineno"> 284</span> </div>
|
||||
<div class="line"><span class="lineno"> 285</span> <a class="code hl_function" href="../../d9/dab/bloom__filter_8cpp.html#a6e509afe40db07681f676ad8da4fb905">test_bitset</a>(); <span class="comment">// run test for bitset, because bloom filter is depending on it</span></div>
|
||||
<div class="line"><span class="lineno"> 286</span> <a class="code hl_function" href="../../d9/dab/bloom__filter_8cpp.html#a71f57bf262fe55db928b19dc124cc0d8">test_bloom_filter_string</a>();</div>
|
||||
<div class="line"><span class="lineno"> 287</span> <a class="code hl_function" href="../../d9/dab/bloom__filter_8cpp.html#a30edc0d2bb59c185baec81d69d20ed3b">test_bloom_filter_int</a>();</div>
|
||||
<div class="line"><span class="lineno"> 288</span> </div>
|
||||
<div class="line"><span class="lineno"> 289</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"All tests have successfully passed!\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 290</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><span class="lineno"> 291</span>}</div>
|
||||
<div class="ttc" id="abasic_ostream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a></div></div>
|
||||
<div class="ttc" id="abloom__filter_8cpp_html_a30edc0d2bb59c185baec81d69d20ed3b"><div class="ttname"><a href="../../d9/dab/bloom__filter_8cpp.html#a30edc0d2bb59c185baec81d69d20ed3b">test_bloom_filter_int</a></div><div class="ttdeci">static void test_bloom_filter_int()</div><div class="ttdoc">Test for bloom filter with int as generic type.</div><div class="ttdef"><b>Definition:</b> bloom_filter.cpp:246</div></div>
|
||||
<div class="ttc" id="abloom__filter_8cpp_html_a6e509afe40db07681f676ad8da4fb905"><div class="ttname"><a href="../../d9/dab/bloom__filter_8cpp.html#a6e509afe40db07681f676ad8da4fb905">test_bitset</a></div><div class="ttdeci">static void test_bitset()</div><div class="ttdoc">Test for bitset.</div><div class="ttdef"><b>Definition:</b> bloom_filter.cpp:267</div></div>
|
||||
<div class="ttc" id="abloom__filter_8cpp_html_a71f57bf262fe55db928b19dc124cc0d8"><div class="ttname"><a href="../../d9/dab/bloom__filter_8cpp.html#a71f57bf262fe55db928b19dc124cc0d8">test_bloom_filter_string</a></div><div class="ttdeci">static void test_bloom_filter_string()</div><div class="ttdoc">Test for bloom filter with string as generic type.</div><div class="ttdef"><b>Definition:</b> bloom_filter.cpp:226</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../d9/dab/bloom__filter_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg" width="100%" height="524"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a6e509afe40db07681f676ad8da4fb905" name="a6e509afe40db07681f676ad8da4fb905"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a6e509afe40db07681f676ad8da4fb905">◆ </a></span>test_bitset()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">static void test_bitset </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Test for bitset. </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 267</span> {</div>
|
||||
<div class="line"><span class="lineno"> 268</span> <a class="code hl_class" href="../../d9/dae/classdata__structures_1_1_bitset.html">data_structures::Bitset</a> set(2);</div>
|
||||
<div class="line"><span class="lineno"> 269</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<std::size_t></a> toCheck{0, 1, 5, 8, 63, 64, 67, 127};</div>
|
||||
<div class="line"><span class="lineno"> 270</span> <span class="keywordflow">for</span> (<span class="keyword">auto</span> x : toCheck) {</div>
|
||||
<div class="line"><span class="lineno"> 271</span> set.add(x);</div>
|
||||
<div class="line"><span class="lineno"> 272</span> assert(set.contains(x));</div>
|
||||
<div class="line"><span class="lineno"> 273</span> }</div>
|
||||
<div class="line"><span class="lineno"> 274</span> assert(set.contains(128) == <span class="keyword">false</span>);</div>
|
||||
<div class="line"><span class="lineno"> 275</span> assert(set.contains(256) == <span class="keyword">false</span>);</div>
|
||||
<div class="line"><span class="lineno"> 276</span>}</div>
|
||||
<div class="ttc" id="aclassdata__structures_1_1_bitset_html"><div class="ttname"><a href="../../d9/dae/classdata__structures_1_1_bitset.html">data_structures::Bitset</a></div><div class="ttdoc">Simple bitset implementation for bloom filter.</div><div class="ttdef"><b>Definition:</b> bloom_filter.cpp:40</div></div>
|
||||
<div class="ttc" id="avector_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a></div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d9/dab/bloom__filter_8cpp_a6e509afe40db07681f676ad8da4fb905_cgraph.svg" width="499" height="102"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a30edc0d2bb59c185baec81d69d20ed3b" name="a30edc0d2bb59c185baec81d69d20ed3b"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a30edc0d2bb59c185baec81d69d20ed3b">◆ </a></span>test_bloom_filter_int()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">static void test_bloom_filter_int </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Test for bloom filter with int as generic type. </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 246</span> {</div>
|
||||
<div class="line"><span class="lineno"> 247</span> <a class="code hl_class" href="../../dc/dd4/classdata__structures_1_1_bloom_filter.html">data_structures::BloomFilter<int></a> filter(</div>
|
||||
<div class="line"><span class="lineno"> 248</span> 20, {<a class="code hl_function" href="../../d5/d3c/namespacedata__structures.html#aa6deb9d4a0f63ea97aef3dce4c6c6677">data_structures::hashInt_1</a>, <a class="code hl_function" href="../../d5/d3c/namespacedata__structures.html#a9ed236419034917c5270c1dccd220b5c">data_structures::hashInt_2</a>});</div>
|
||||
<div class="line"><span class="lineno"> 249</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<int></a> toCheck{100, 200, 300, 50};</div>
|
||||
<div class="line"><span class="lineno"> 250</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<int></a> toFalse{1, 2, 3, 4, 5, 6, 7, 8};</div>
|
||||
<div class="line"><span class="lineno"> 251</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x : toCheck) {</div>
|
||||
<div class="line"><span class="lineno"> 252</span> filter.add(x);</div>
|
||||
<div class="line"><span class="lineno"> 253</span> }</div>
|
||||
<div class="line"><span class="lineno"> 254</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x : toFalse) {</div>
|
||||
<div class="line"><span class="lineno"> 255</span> assert(filter.contains(x) == <span class="keyword">false</span>);</div>
|
||||
<div class="line"><span class="lineno"> 256</span> }</div>
|
||||
<div class="line"><span class="lineno"> 257</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x : toCheck) {</div>
|
||||
<div class="line"><span class="lineno"> 258</span> assert(filter.contains(x));</div>
|
||||
<div class="line"><span class="lineno"> 259</span> }</div>
|
||||
<div class="line"><span class="lineno"> 260</span>}</div>
|
||||
<div class="ttc" id="aclassdata__structures_1_1_bloom_filter_html"><div class="ttname"><a href="../../dc/dd4/classdata__structures_1_1_bloom_filter.html">data_structures::BloomFilter</a></div><div class="ttdoc">Bloom filter template class.</div><div class="ttdef"><b>Definition:</b> bloom_filter.cpp:99</div></div>
|
||||
<div class="ttc" id="anamespacedata__structures_html_a9ed236419034917c5270c1dccd220b5c"><div class="ttname"><a href="../../d5/d3c/namespacedata__structures.html#a9ed236419034917c5270c1dccd220b5c">data_structures::hashInt_2</a></div><div class="ttdeci">std::size_t hashInt_2(int x)</div><div class="ttdoc">Hash function for test</div><div class="ttdef"><b>Definition:</b> bloom_filter.cpp:213</div></div>
|
||||
<div class="ttc" id="anamespacedata__structures_html_aa6deb9d4a0f63ea97aef3dce4c6c6677"><div class="ttname"><a href="../../d5/d3c/namespacedata__structures.html#aa6deb9d4a0f63ea97aef3dce4c6c6677">data_structures::hashInt_1</a></div><div class="ttdeci">std::size_t hashInt_1(int x)</div><div class="ttdoc">Hash function for test</div><div class="ttdef"><b>Definition:</b> bloom_filter.cpp:199</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d9/dab/bloom__filter_8cpp_a30edc0d2bb59c185baec81d69d20ed3b_cgraph.svg" width="375" height="86"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a71f57bf262fe55db928b19dc124cc0d8" name="a71f57bf262fe55db928b19dc124cc0d8"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a71f57bf262fe55db928b19dc124cc0d8">◆ </a></span>test_bloom_filter_string()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">static void test_bloom_filter_string </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Test for bloom filter with string as generic type. </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 226</span> {</div>
|
||||
<div class="line"><span class="lineno"> 227</span> <a class="code hl_class" href="../../dc/dd4/classdata__structures_1_1_bloom_filter.html">data_structures::BloomFilter<std::string></a> filter(</div>
|
||||
<div class="line"><span class="lineno"> 228</span> 10, {<a class="code hl_function" href="../../d5/d3c/namespacedata__structures.html#a271c753baf6dc5ac6f19fa03c5873eb4">data_structures::hashDJB2</a>, <a class="code hl_function" href="../../d5/d3c/namespacedata__structures.html#a35eb2bc3edbb52f9c5f0b1e51046ef15">data_structures::hashStr</a>});</div>
|
||||
<div class="line"><span class="lineno"> 229</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<std::string></a> toCheck{<span class="stringliteral">"hello"</span>, <span class="stringliteral">"world"</span>, <span class="stringliteral">"!"</span>};</div>
|
||||
<div class="line"><span class="lineno"> 230</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<std::string></a> toFalse{<span class="stringliteral">"false"</span>, <span class="stringliteral">"world2"</span>, <span class="stringliteral">"!!!"</span>};</div>
|
||||
<div class="line"><span class="lineno"> 231</span> <span class="keywordflow">for</span> (<span class="keyword">auto</span>& x : toCheck) {</div>
|
||||
<div class="line"><span class="lineno"> 232</span> filter.add(x);</div>
|
||||
<div class="line"><span class="lineno"> 233</span> }</div>
|
||||
<div class="line"><span class="lineno"> 234</span> <span class="keywordflow">for</span> (<span class="keyword">auto</span>& x : toFalse) {</div>
|
||||
<div class="line"><span class="lineno"> 235</span> assert(filter.contains(x) == <span class="keyword">false</span>);</div>
|
||||
<div class="line"><span class="lineno"> 236</span> }</div>
|
||||
<div class="line"><span class="lineno"> 237</span> <span class="keywordflow">for</span> (<span class="keyword">auto</span>& x : toCheck) {</div>
|
||||
<div class="line"><span class="lineno"> 238</span> assert(filter.contains(x));</div>
|
||||
<div class="line"><span class="lineno"> 239</span> }</div>
|
||||
<div class="line"><span class="lineno"> 240</span>}</div>
|
||||
<div class="ttc" id="anamespacedata__structures_html_a271c753baf6dc5ac6f19fa03c5873eb4"><div class="ttname"><a href="../../d5/d3c/namespacedata__structures.html#a271c753baf6dc5ac6f19fa03c5873eb4">data_structures::hashDJB2</a></div><div class="ttdeci">static std::size_t hashDJB2(std::string const &s)</div><div class="ttdoc">Function djb2 to get hash for the given string.</div><div class="ttdef"><b>Definition:</b> bloom_filter.cpp:166</div></div>
|
||||
<div class="ttc" id="anamespacedata__structures_html_a35eb2bc3edbb52f9c5f0b1e51046ef15"><div class="ttname"><a href="../../d5/d3c/namespacedata__structures.html#a35eb2bc3edbb52f9c5f0b1e51046ef15">data_structures::hashStr</a></div><div class="ttdeci">static std::size_t hashStr(std::string const &s)</div><div class="ttdoc">Hash function, to get hash for the given string.</div><div class="ttdef"><b>Definition:</b> bloom_filter.cpp:182</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d9/dab/bloom__filter_8cpp_a71f57bf262fe55db928b19dc124cc0d8_cgraph.svg" width="398" height="86"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_2e746e9d06bf2d8ff842208bcc6ebcfc.html">data_structures</a></li><li class="navelem"><a class="el" href="../../d9/dab/bloom__filter_8cpp.html">bloom_filter.cpp</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
13
d9/dab/bloom__filter_8cpp.js
Normal file
@@ -0,0 +1,13 @@
|
||||
var bloom__filter_8cpp =
|
||||
[
|
||||
[ "data_structures::Bitset", "d9/dae/classdata__structures_1_1_bitset.html", "d9/dae/classdata__structures_1_1_bitset" ],
|
||||
[ "data_structures::BloomFilter< T >", "dc/dd4/classdata__structures_1_1_bloom_filter.html", "dc/dd4/classdata__structures_1_1_bloom_filter" ],
|
||||
[ "hashDJB2", "d9/dab/bloom__filter_8cpp.html#a271c753baf6dc5ac6f19fa03c5873eb4", null ],
|
||||
[ "hashInt_1", "d9/dab/bloom__filter_8cpp.html#aa6deb9d4a0f63ea97aef3dce4c6c6677", null ],
|
||||
[ "hashInt_2", "d9/dab/bloom__filter_8cpp.html#a9ed236419034917c5270c1dccd220b5c", null ],
|
||||
[ "hashStr", "d9/dab/bloom__filter_8cpp.html#a35eb2bc3edbb52f9c5f0b1e51046ef15", null ],
|
||||
[ "main", "d9/dab/bloom__filter_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4", null ],
|
||||
[ "test_bitset", "d9/dab/bloom__filter_8cpp.html#a6e509afe40db07681f676ad8da4fb905", null ],
|
||||
[ "test_bloom_filter_int", "d9/dab/bloom__filter_8cpp.html#a30edc0d2bb59c185baec81d69d20ed3b", null ],
|
||||
[ "test_bloom_filter_string", "d9/dab/bloom__filter_8cpp.html#a71f57bf262fe55db928b19dc124cc0d8", null ]
|
||||
];
|
||||
@@ -0,0 +1,5 @@
|
||||
<map id="test_bloom_filter_int" name="test_bloom_filter_int">
|
||||
<area shape="rect" id="node1" title="Test for bloom filter with int as generic type." alt="" coords="5,31,144,56"/>
|
||||
<area shape="rect" id="node2" href="$d5/d3c/namespacedata__structures.html#aa6deb9d4a0f63ea97aef3dce4c6c6677" title="Hash function for test" alt="" coords="192,5,369,31"/>
|
||||
<area shape="rect" id="node3" href="$d5/d3c/namespacedata__structures.html#a9ed236419034917c5270c1dccd220b5c" title="Hash function for test" alt="" coords="192,55,369,80"/>
|
||||
</map>
|
||||
@@ -0,0 +1 @@
|
||||
bed91951e6db06f739b6aa90d0ca0501
|
||||
@@ -0,0 +1,51 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 5.0.1 (20220820.1526)
|
||||
-->
|
||||
<!-- Title: test_bloom_filter_int Pages: 1 -->
|
||||
<svg width="281pt" height="64pt"
|
||||
viewBox="0.00 0.00 281.00 64.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 60)">
|
||||
<title>test_bloom_filter_int</title>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Test for bloom filter with int as generic type.">
|
||||
<polygon fill="#999999" stroke="#666666" points="104,-37 0,-37 0,-18 104,-18 104,-37"/>
|
||||
<text text-anchor="middle" x="52" y="-25" font-family="Helvetica,sans-Serif" font-size="10.00">test_bloom_filter_int</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../d5/d3c/namespacedata__structures.html#aa6deb9d4a0f63ea97aef3dce4c6c6677" target="_top" xlink:title="Hash function for test">
|
||||
<polygon fill="white" stroke="#666666" points="273,-56 140,-56 140,-37 273,-37 273,-56"/>
|
||||
<text text-anchor="middle" x="206.5" y="-44" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::hashInt_1</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M104.2,-33.88C112.41,-34.9 121.06,-35.98 129.7,-37.06"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="129.45,-40.55 139.81,-38.32 130.32,-33.61 129.45,-40.55"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:href="../../d5/d3c/namespacedata__structures.html#a9ed236419034917c5270c1dccd220b5c" target="_top" xlink:title="Hash function for test">
|
||||
<polygon fill="white" stroke="#666666" points="273,-19 140,-19 140,0 273,0 273,-19"/>
|
||||
<text text-anchor="middle" x="206.5" y="-7" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::hashInt_2</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M104.2,-21.46C112.41,-20.49 121.06,-19.47 129.7,-18.45"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="130.29,-21.9 139.81,-17.25 129.46,-14.95 130.29,-21.9"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.4 KiB |
@@ -0,0 +1,7 @@
|
||||
<map id="test_bitset" name="test_bitset">
|
||||
<area shape="rect" id="node1" title="Test for bitset." alt="" coords="5,35,88,60"/>
|
||||
<area shape="rect" id="node2" href="$d9/dae/classdata__structures_1_1_bitset.html#a17dbe1b1d559302312e8091f82f7499c" title="Turn bit on position x to 1s." alt="" coords="136,5,319,31"/>
|
||||
<area shape="rect" id="node5" href="$d9/dae/classdata__structures_1_1_bitset.html#a9ef54c7c3f6494b36ead3ae2e5cf43ac" title="Doest bitset contains element x." alt="" coords="150,55,305,95"/>
|
||||
<area shape="rect" id="node3" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/resize.html#" title=" " alt="" coords="367,5,493,31"/>
|
||||
<area shape="rect" id="node4" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/size.html#" title=" " alt="" coords="372,59,488,84"/>
|
||||
</map>
|
||||
@@ -0,0 +1 @@
|
||||
5a1a4084004983ad2f122060090a62cc
|
||||
@@ -0,0 +1,88 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 5.0.1 (20220820.1526)
|
||||
-->
|
||||
<!-- Title: test_bitset Pages: 1 -->
|
||||
<svg width="374pt" height="76pt"
|
||||
viewBox="0.00 0.00 374.00 75.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 71.5)">
|
||||
<title>test_bitset</title>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Test for bitset.">
|
||||
<polygon fill="#999999" stroke="#666666" points="62,-45.5 0,-45.5 0,-26.5 62,-26.5 62,-45.5"/>
|
||||
<text text-anchor="middle" x="31" y="-33.5" font-family="Helvetica,sans-Serif" font-size="10.00">test_bitset</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../d9/dae/classdata__structures_1_1_bitset.html#a17dbe1b1d559302312e8091f82f7499c" target="_top" xlink:title="Turn bit on position x to 1s.">
|
||||
<polygon fill="white" stroke="#666666" points="235,-67.5 98,-67.5 98,-48.5 235,-48.5 235,-67.5"/>
|
||||
<text text-anchor="middle" x="166.5" y="-55.5" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Bitset::add</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M62.29,-40.99C72.92,-42.74 85.32,-44.79 97.76,-46.84"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="97.28,-50.31 107.72,-48.48 98.42,-43.4 97.28,-50.31"/>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="node5" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_node5"><a xlink:href="../../d9/dae/classdata__structures_1_1_bitset.html#a9ef54c7c3f6494b36ead3ae2e5cf43ac" target="_top" xlink:title="Doest bitset contains element x.">
|
||||
<polygon fill="white" stroke="#666666" points="224.5,-30 108.5,-30 108.5,0 224.5,0 224.5,-30"/>
|
||||
<text text-anchor="start" x="116.5" y="-18" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Bitset</text>
|
||||
<text text-anchor="middle" x="166.5" y="-7" font-family="Helvetica,sans-Serif" font-size="10.00">::contains</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node5 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>Node1->Node5</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M62.29,-31.23C73.04,-29.54 85.6,-27.57 98.19,-25.59"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="98.92,-29.02 108.26,-24 97.83,-22.1 98.92,-29.02"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/resize.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="366,-67.5 271,-67.5 271,-48.5 366,-48.5 366,-67.5"/>
|
||||
<text text-anchor="middle" x="318.5" y="-55.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::resize</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M235.04,-58C243.66,-58 252.42,-58 260.85,-58"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="260.94,-61.5 270.94,-58 260.93,-54.5 260.94,-61.5"/>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="node4" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_node4"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="362,-27.5 275,-27.5 275,-8.5 362,-8.5 362,-27.5"/>
|
||||
<text text-anchor="middle" x="318.5" y="-15.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node4 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>Node2->Node4</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M203.43,-48.42C224.02,-42.93 250.07,-35.98 272.07,-30.11"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="273.1,-33.46 281.86,-27.5 271.3,-26.7 273.1,-33.46"/>
|
||||
</g>
|
||||
<!-- Node5->Node4 -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>Node5->Node4</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M224.64,-16.14C237.83,-16.41 251.81,-16.69 264.81,-16.95"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="264.92,-20.45 274.99,-17.15 265.06,-13.45 264.92,-20.45"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.2 KiB |
@@ -0,0 +1,5 @@
|
||||
<map id="test_bloom_filter_string" name="test_bloom_filter_string">
|
||||
<area shape="rect" id="node1" title="Test for bloom filter with string as generic type." alt="" coords="5,31,163,56"/>
|
||||
<area shape="rect" id="node2" href="$d5/d3c/namespacedata__structures.html#a271c753baf6dc5ac6f19fa03c5873eb4" title="Function djb2 to get hash for the given string." alt="" coords="211,5,392,31"/>
|
||||
<area shape="rect" id="node3" href="$d5/d3c/namespacedata__structures.html#a35eb2bc3edbb52f9c5f0b1e51046ef15" title="Hash function, to get hash for the given string." alt="" coords="219,55,384,80"/>
|
||||
</map>
|
||||
@@ -0,0 +1 @@
|
||||
4858aacbc8747d0684b5d4ae13683785
|
||||
@@ -0,0 +1,51 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 5.0.1 (20220820.1526)
|
||||
-->
|
||||
<!-- Title: test_bloom_filter_string Pages: 1 -->
|
||||
<svg width="298pt" height="64pt"
|
||||
viewBox="0.00 0.00 298.00 64.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 60)">
|
||||
<title>test_bloom_filter_string</title>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Test for bloom filter with string as generic type.">
|
||||
<polygon fill="#999999" stroke="#666666" points="118,-37 0,-37 0,-18 118,-18 118,-37"/>
|
||||
<text text-anchor="middle" x="59" y="-25" font-family="Helvetica,sans-Serif" font-size="10.00">test_bloom_filter_string</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../d5/d3c/namespacedata__structures.html#a271c753baf6dc5ac6f19fa03c5873eb4" target="_top" xlink:title="Function djb2 to get hash for the given string.">
|
||||
<polygon fill="white" stroke="#666666" points="290,-56 154,-56 154,-37 290,-37 290,-56"/>
|
||||
<text text-anchor="middle" x="222" y="-44" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::hashDJB2</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M118.12,-34.36C126.48,-35.34 135.18,-36.37 143.83,-37.39"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="143.59,-40.89 153.93,-38.59 144.41,-33.94 143.59,-40.89"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:href="../../d5/d3c/namespacedata__structures.html#a35eb2bc3edbb52f9c5f0b1e51046ef15" target="_top" xlink:title="Hash function, to get hash for the given string.">
|
||||
<polygon fill="white" stroke="#666666" points="284,-19 160,-19 160,0 284,0 284,-19"/>
|
||||
<text text-anchor="middle" x="222" y="-7" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::hashStr</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M118.12,-21C128.43,-19.85 139.27,-18.64 149.89,-17.45"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="150.43,-20.91 159.97,-16.32 149.65,-13.96 150.43,-20.91"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.4 KiB |
@@ -0,0 +1,14 @@
|
||||
<map id="main" name="main">
|
||||
<area shape="rect" id="node1" title="Main function." alt="" coords="5,144,56,169"/>
|
||||
<area shape="rect" id="node2" href="$d9/dab/bloom__filter_8cpp.html#a6e509afe40db07681f676ad8da4fb905" title="Test for bitset." alt="" coords="141,63,224,88"/>
|
||||
<area shape="rect" id="node7" href="$d9/dab/bloom__filter_8cpp.html#a30edc0d2bb59c185baec81d69d20ed3b" title="Test for bloom filter with int as generic type." alt="" coords="113,144,252,169"/>
|
||||
<area shape="rect" id="node10" href="$d9/dab/bloom__filter_8cpp.html#a71f57bf262fe55db928b19dc124cc0d8" title="Test for bloom filter with string as generic type." alt="" coords="104,219,261,244"/>
|
||||
<area shape="rect" id="node3" href="$d9/dae/classdata__structures_1_1_bitset.html#a17dbe1b1d559302312e8091f82f7499c" title="Turn bit on position x to 1s." alt="" coords="309,5,492,31"/>
|
||||
<area shape="rect" id="node6" href="$d9/dae/classdata__structures_1_1_bitset.html#a9ef54c7c3f6494b36ead3ae2e5cf43ac" title="Doest bitset contains element x." alt="" coords="323,55,478,95"/>
|
||||
<area shape="rect" id="node4" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/resize.html#" title=" " alt="" coords="540,5,667,31"/>
|
||||
<area shape="rect" id="node5" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/size.html#" title=" " alt="" coords="545,59,661,84"/>
|
||||
<area shape="rect" id="node8" href="$d5/d3c/namespacedata__structures.html#aa6deb9d4a0f63ea97aef3dce4c6c6677" title="Hash function for test" alt="" coords="312,120,489,145"/>
|
||||
<area shape="rect" id="node9" href="$d5/d3c/namespacedata__structures.html#a9ed236419034917c5270c1dccd220b5c" title="Hash function for test" alt="" coords="312,169,489,195"/>
|
||||
<area shape="rect" id="node11" href="$d5/d3c/namespacedata__structures.html#a271c753baf6dc5ac6f19fa03c5873eb4" title="Function djb2 to get hash for the given string." alt="" coords="310,219,491,244"/>
|
||||
<area shape="rect" id="node12" href="$d5/d3c/namespacedata__structures.html#a35eb2bc3edbb52f9c5f0b1e51046ef15" title="Hash function, to get hash for the given string." alt="" coords="318,268,483,293"/>
|
||||
</map>
|
||||
@@ -0,0 +1 @@
|
||||
74fded87a705c33bff5d0f1b39cddba2
|
||||
@@ -0,0 +1,281 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 5.0.1 (20220820.1526)
|
||||
-->
|
||||
<!-- Title: main Pages: 1 -->
|
||||
<!--zoomable 224 -->
|
||||
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
|
||||
<style type="text/css"><![CDATA[
|
||||
.edge:hover path { stroke: red; }
|
||||
.edge:hover polygon { stroke: red; fill: red; }
|
||||
]]></style>
|
||||
<script type="text/javascript"><![CDATA[
|
||||
var edges = document.getElementsByTagName('g');
|
||||
if (edges && edges.length) {
|
||||
for (var i=0;i<edges.length;i++) {
|
||||
if (edges[i].id.substr(0,4)=='edge') {
|
||||
edges[i].setAttribute('class','edge');
|
||||
}
|
||||
}
|
||||
}
|
||||
]]></script>
|
||||
<defs>
|
||||
<circle id="rim" cx="0" cy="0" r="7"/>
|
||||
<circle id="rim2" cx="0" cy="0" r="3.5"/>
|
||||
<g id="zoomPlus">
|
||||
<use xlink:href="#rim" fill="#404040">
|
||||
<set attributeName="fill" to="#808080" begin="zoomplus.mouseover" end="zoomplus.mouseout"/>
|
||||
</use>
|
||||
<path d="M-4,0h8M0,-4v8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
|
||||
</g>
|
||||
<g id="zoomMin">
|
||||
<use xlink:href="#rim" fill="#404040">
|
||||
<set attributeName="fill" to="#808080" begin="zoomminus.mouseover" end="zoomminus.mouseout"/>
|
||||
</use>
|
||||
<path d="M-4,0h8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
|
||||
</g>
|
||||
<g id="dirArrow">
|
||||
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="resetDef">
|
||||
<use xlink:href="#rim2" fill="#404040">
|
||||
<set attributeName="fill" to="#808080" begin="reset.mouseover" end="reset.mouseout"/>
|
||||
</use>
|
||||
</g>
|
||||
</defs>
|
||||
|
||||
<script type="text/javascript">
|
||||
var viewWidth = 504;
|
||||
var viewHeight = 224;
|
||||
var sectionId = 'dynsection-1';
|
||||
</script>
|
||||
<script xlink:href="../../svgpan.js"/>
|
||||
<svg id="graph" class="graph">
|
||||
<g id="viewport">
|
||||
<title>main</title>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Main function.">
|
||||
<polygon fill="#999999" stroke="#666666" points="38,-112 0,-112 0,-93 38,-93 38,-112"/>
|
||||
<text text-anchor="middle" x="19" y="-100" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../d9/dab/bloom__filter_8cpp.html#a6e509afe40db07681f676ad8da4fb905" target="_top" xlink:title="Test for bitset.">
|
||||
<polygon fill="white" stroke="#666666" points="164,-173 102,-173 102,-154 164,-154 164,-173"/>
|
||||
<text text-anchor="middle" x="133" y="-161" font-family="Helvetica,sans-Serif" font-size="10.00">test_bitset</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M37.5,-112.03C55.64,-121.91 84.23,-137.48 105.21,-148.91"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="103.8,-152.12 114.25,-153.83 107.15,-145.98 103.8,-152.12"/>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="node7" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_node7"><a xlink:href="../../d9/dab/bloom__filter_8cpp.html#a30edc0d2bb59c185baec81d69d20ed3b" target="_top" xlink:title="Test for bloom filter with int as generic type.">
|
||||
<polygon fill="white" stroke="#666666" points="185,-112 81,-112 81,-93 185,-93 185,-112"/>
|
||||
<text text-anchor="middle" x="133" y="-100" font-family="Helvetica,sans-Serif" font-size="10.00">test_bloom_filter_int</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node7 -->
|
||||
<g id="edge7" class="edge">
|
||||
<title>Node1->Node7</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M38.49,-102.5C47.43,-102.5 58.73,-102.5 70.36,-102.5"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="70.6,-106 80.6,-102.5 70.6,-99 70.6,-106"/>
|
||||
</g>
|
||||
<!-- Node10 -->
|
||||
<g id="node10" class="node">
|
||||
<title>Node10</title>
|
||||
<g id="a_node10"><a xlink:href="../../d9/dab/bloom__filter_8cpp.html#a71f57bf262fe55db928b19dc124cc0d8" target="_top" xlink:title="Test for bloom filter with string as generic type.">
|
||||
<polygon fill="white" stroke="#666666" points="192,-56 74,-56 74,-37 192,-37 192,-56"/>
|
||||
<text text-anchor="middle" x="133" y="-44" font-family="Helvetica,sans-Serif" font-size="10.00">test_bloom_filter_string</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node10 -->
|
||||
<g id="edge10" class="edge">
|
||||
<title>Node1->Node10</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M38.49,-93.25C56.19,-84.4 83.15,-70.93 103.57,-60.71"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="105.35,-63.74 112.73,-56.14 102.22,-57.48 105.35,-63.74"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:href="../../d9/dae/classdata__structures_1_1_bitset.html#a17dbe1b1d559302312e8091f82f7499c" target="_top" xlink:title="Turn bit on position x to 1s.">
|
||||
<polygon fill="white" stroke="#666666" points="365,-216 228,-216 228,-197 365,-197 365,-216"/>
|
||||
<text text-anchor="middle" x="296.5" y="-204" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Bitset::add</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M164.38,-171.59C188.46,-178 222.51,-187.07 249.87,-194.35"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="249.06,-197.76 259.62,-196.95 250.86,-190.99 249.06,-197.76"/>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="node6" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_node6"><a xlink:href="../../d9/dae/classdata__structures_1_1_bitset.html#a9ef54c7c3f6494b36ead3ae2e5cf43ac" target="_top" xlink:title="Doest bitset contains element x.">
|
||||
<polygon fill="white" stroke="#666666" points="354.5,-178.5 238.5,-178.5 238.5,-148.5 354.5,-148.5 354.5,-178.5"/>
|
||||
<text text-anchor="start" x="246.5" y="-166.5" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Bitset</text>
|
||||
<text text-anchor="middle" x="296.5" y="-155.5" font-family="Helvetica,sans-Serif" font-size="10.00">::contains</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node6 -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>Node2->Node6</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M164.38,-163.5C182.44,-163.5 206.11,-163.5 228.36,-163.5"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="228.45,-167 238.45,-163.5 228.45,-160 228.45,-167"/>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="node4" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_node4"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/resize.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="496,-216 401,-216 401,-197 496,-197 496,-216"/>
|
||||
<text text-anchor="middle" x="448.5" y="-204" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::resize</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node4 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M365.04,-206.5C373.66,-206.5 382.42,-206.5 390.85,-206.5"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="390.94,-210 400.94,-206.5 390.93,-203 390.94,-210"/>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="node5" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_node5"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="492,-176 405,-176 405,-157 492,-157 492,-176"/>
|
||||
<text text-anchor="middle" x="448.5" y="-164" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node5 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>Node3->Node5</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M333.43,-196.92C354.02,-191.43 380.07,-184.48 402.07,-178.61"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="403.1,-181.96 411.86,-176 401.3,-175.2 403.1,-181.96"/>
|
||||
</g>
|
||||
<!-- Node6->Node5 -->
|
||||
<g id="edge6" class="edge">
|
||||
<title>Node6->Node5</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M354.64,-164.64C367.83,-164.91 381.81,-165.19 394.81,-165.45"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="394.92,-168.95 404.99,-165.65 395.06,-161.95 394.92,-168.95"/>
|
||||
</g>
|
||||
<!-- Node8 -->
|
||||
<g id="node8" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_node8"><a xlink:href="../../d5/d3c/namespacedata__structures.html#aa6deb9d4a0f63ea97aef3dce4c6c6677" target="_top" xlink:title="Hash function for test">
|
||||
<polygon fill="white" stroke="#666666" points="363,-130 230,-130 230,-111 363,-111 363,-130"/>
|
||||
<text text-anchor="middle" x="296.5" y="-118" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::hashInt_1</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7->Node8 -->
|
||||
<g id="edge8" class="edge">
|
||||
<title>Node7->Node8</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M185.1,-108.2C196.11,-109.42 207.97,-110.74 219.69,-112.05"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="219.6,-115.56 229.93,-113.19 220.38,-108.61 219.6,-115.56"/>
|
||||
</g>
|
||||
<!-- Node9 -->
|
||||
<g id="node9" class="node">
|
||||
<title>Node9</title>
|
||||
<g id="a_node9"><a xlink:href="../../d5/d3c/namespacedata__structures.html#a9ed236419034917c5270c1dccd220b5c" target="_top" xlink:title="Hash function for test">
|
||||
<polygon fill="white" stroke="#666666" points="363,-93 230,-93 230,-74 363,-74 363,-93"/>
|
||||
<text text-anchor="middle" x="296.5" y="-81" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::hashInt_2</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7->Node9 -->
|
||||
<g id="edge9" class="edge">
|
||||
<title>Node7->Node9</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M185.1,-96.49C196.11,-95.19 207.97,-93.8 219.69,-92.42"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="220.41,-95.86 229.93,-91.21 219.59,-88.91 220.41,-95.86"/>
|
||||
</g>
|
||||
<!-- Node11 -->
|
||||
<g id="node11" class="node">
|
||||
<title>Node11</title>
|
||||
<g id="a_node11"><a xlink:href="../../d5/d3c/namespacedata__structures.html#a271c753baf6dc5ac6f19fa03c5873eb4" target="_top" xlink:title="Function djb2 to get hash for the given string.">
|
||||
<polygon fill="white" stroke="#666666" points="364.5,-56 228.5,-56 228.5,-37 364.5,-37 364.5,-56"/>
|
||||
<text text-anchor="middle" x="296.5" y="-44" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::hashDJB2</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10->Node11 -->
|
||||
<g id="edge11" class="edge">
|
||||
<title>Node10->Node11</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M192.31,-46.5C200.68,-46.5 209.41,-46.5 218.09,-46.5"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="218.22,-50 228.22,-46.5 218.22,-43 218.22,-50"/>
|
||||
</g>
|
||||
<!-- Node12 -->
|
||||
<g id="node12" class="node">
|
||||
<title>Node12</title>
|
||||
<g id="a_node12"><a xlink:href="../../d5/d3c/namespacedata__structures.html#a35eb2bc3edbb52f9c5f0b1e51046ef15" target="_top" xlink:title="Hash function, to get hash for the given string.">
|
||||
<polygon fill="white" stroke="#666666" points="358.5,-19 234.5,-19 234.5,0 358.5,0 358.5,-19"/>
|
||||
<text text-anchor="middle" x="296.5" y="-7" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::hashStr</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10->Node12 -->
|
||||
<g id="edge12" class="edge">
|
||||
<title>Node10->Node12</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M175.59,-36.97C196.42,-32.2 221.84,-26.38 243.9,-21.32"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="244.8,-24.71 253.77,-19.06 243.24,-17.88 244.8,-24.71"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
<g id="navigator" transform="translate(0 0)" fill="#404254">
|
||||
<rect fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width=".5" x="0" y="0" width="60" height="60"/>
|
||||
<use id="zoomplus" xlink:href="#zoomPlus" x="17" y="9" onmousedown="handleZoom(evt,'in')"/>
|
||||
<use id="zoomminus" xlink:href="#zoomMin" x="42" y="9" onmousedown="handleZoom(evt,'out')"/>
|
||||
<use id="reset" xlink:href="#resetDef" x="30" y="36" onmousedown="handleReset()"/>
|
||||
<g id="arrowUp" xlink:href="#dirArrow" transform="translate(30 24)" onmousedown="handlePan(0,-1)">
|
||||
<use xlink:href="#rim" fill="#404040">
|
||||
<set attributeName="fill" to="#808080" begin="arrowUp.mouseover" end="arrowUp.mouseout"/>
|
||||
</use>
|
||||
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="arrowRight" xlink:href="#dirArrow" transform="rotate(90) translate(36 -43)" onmousedown="handlePan(1,0)">
|
||||
<use xlink:href="#rim" fill="#404040">
|
||||
<set attributeName="fill" to="#808080" begin="arrowRight.mouseover" end="arrowRight.mouseout"/>
|
||||
</use>
|
||||
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="arrowDown" xlink:href="#dirArrow" transform="rotate(180) translate(-30 -48)" onmousedown="handlePan(0,1)">
|
||||
<use xlink:href="#rim" fill="#404040">
|
||||
<set attributeName="fill" to="#808080" begin="arrowDown.mouseover" end="arrowDown.mouseout"/>
|
||||
</use>
|
||||
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="arrowLeft" xlink:href="#dirArrow" transform="rotate(270) translate(-36 17)" onmousedown="handlePan(-1,0)">
|
||||
<use xlink:href="#rim" fill="#404040">
|
||||
<set attributeName="fill" to="#808080" begin="arrowLeft.mouseover" end="arrowLeft.mouseout"/>
|
||||
</use>
|
||||
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
</g>
|
||||
<svg viewBox="0 0 15 15" width="100%" height="30px" preserveAspectRatio="xMaxYMin meet">
|
||||
<g id="arrow_out" transform="scale(0.3 0.3)">
|
||||
<a xlink:href="bloom__filter_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph_org.svg" target="_base">
|
||||
<rect id="button" ry="5" rx="5" y="6" x="6" height="38" width="38"
|
||||
fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width="1.0"/>
|
||||
<path id="arrow"
|
||||
d="M 11.500037,31.436501 C 11.940474,20.09759 22.043105,11.32322 32.158766,21.979434 L 37.068811,17.246167 C 37.068811,17.246167 37.088388,32 37.088388,32 L 22.160133,31.978069 C 22.160133,31.978069 26.997745,27.140456 26.997745,27.140456 C 18.528582,18.264221 13.291696,25.230495 11.500037,31.436501 z"
|
||||
style="fill:#404040;"/>
|
||||
</a>
|
||||
</g>
|
||||
</svg>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 14 KiB |
@@ -0,0 +1,193 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 5.0.1 (20220820.1526)
|
||||
-->
|
||||
<!-- Title: main Pages: 1 -->
|
||||
<svg width="504pt" height="224pt"
|
||||
viewBox="0.00 0.00 504.00 224.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 220)">
|
||||
<title>main</title>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Main function.">
|
||||
<polygon fill="#999999" stroke="#666666" points="38,-112 0,-112 0,-93 38,-93 38,-112"/>
|
||||
<text text-anchor="middle" x="19" y="-100" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../d9/dab/bloom__filter_8cpp.html#a6e509afe40db07681f676ad8da4fb905" target="_top" xlink:title="Test for bitset.">
|
||||
<polygon fill="white" stroke="#666666" points="164,-173 102,-173 102,-154 164,-154 164,-173"/>
|
||||
<text text-anchor="middle" x="133" y="-161" font-family="Helvetica,sans-Serif" font-size="10.00">test_bitset</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M37.5,-112.03C55.64,-121.91 84.23,-137.48 105.21,-148.91"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="103.8,-152.12 114.25,-153.83 107.15,-145.98 103.8,-152.12"/>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="node7" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_node7"><a xlink:href="../../d9/dab/bloom__filter_8cpp.html#a30edc0d2bb59c185baec81d69d20ed3b" target="_top" xlink:title="Test for bloom filter with int as generic type.">
|
||||
<polygon fill="white" stroke="#666666" points="185,-112 81,-112 81,-93 185,-93 185,-112"/>
|
||||
<text text-anchor="middle" x="133" y="-100" font-family="Helvetica,sans-Serif" font-size="10.00">test_bloom_filter_int</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node7 -->
|
||||
<g id="edge7" class="edge">
|
||||
<title>Node1->Node7</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M38.49,-102.5C47.43,-102.5 58.73,-102.5 70.36,-102.5"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="70.6,-106 80.6,-102.5 70.6,-99 70.6,-106"/>
|
||||
</g>
|
||||
<!-- Node10 -->
|
||||
<g id="node10" class="node">
|
||||
<title>Node10</title>
|
||||
<g id="a_node10"><a xlink:href="../../d9/dab/bloom__filter_8cpp.html#a71f57bf262fe55db928b19dc124cc0d8" target="_top" xlink:title="Test for bloom filter with string as generic type.">
|
||||
<polygon fill="white" stroke="#666666" points="192,-56 74,-56 74,-37 192,-37 192,-56"/>
|
||||
<text text-anchor="middle" x="133" y="-44" font-family="Helvetica,sans-Serif" font-size="10.00">test_bloom_filter_string</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node10 -->
|
||||
<g id="edge10" class="edge">
|
||||
<title>Node1->Node10</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M38.49,-93.25C56.19,-84.4 83.15,-70.93 103.57,-60.71"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="105.35,-63.74 112.73,-56.14 102.22,-57.48 105.35,-63.74"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:href="../../d9/dae/classdata__structures_1_1_bitset.html#a17dbe1b1d559302312e8091f82f7499c" target="_top" xlink:title="Turn bit on position x to 1s.">
|
||||
<polygon fill="white" stroke="#666666" points="365,-216 228,-216 228,-197 365,-197 365,-216"/>
|
||||
<text text-anchor="middle" x="296.5" y="-204" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Bitset::add</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M164.38,-171.59C188.46,-178 222.51,-187.07 249.87,-194.35"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="249.06,-197.76 259.62,-196.95 250.86,-190.99 249.06,-197.76"/>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="node6" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_node6"><a xlink:href="../../d9/dae/classdata__structures_1_1_bitset.html#a9ef54c7c3f6494b36ead3ae2e5cf43ac" target="_top" xlink:title="Doest bitset contains element x.">
|
||||
<polygon fill="white" stroke="#666666" points="354.5,-178.5 238.5,-178.5 238.5,-148.5 354.5,-148.5 354.5,-178.5"/>
|
||||
<text text-anchor="start" x="246.5" y="-166.5" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Bitset</text>
|
||||
<text text-anchor="middle" x="296.5" y="-155.5" font-family="Helvetica,sans-Serif" font-size="10.00">::contains</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node6 -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>Node2->Node6</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M164.38,-163.5C182.44,-163.5 206.11,-163.5 228.36,-163.5"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="228.45,-167 238.45,-163.5 228.45,-160 228.45,-167"/>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="node4" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_node4"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/resize.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="496,-216 401,-216 401,-197 496,-197 496,-216"/>
|
||||
<text text-anchor="middle" x="448.5" y="-204" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::resize</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node4 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M365.04,-206.5C373.66,-206.5 382.42,-206.5 390.85,-206.5"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="390.94,-210 400.94,-206.5 390.93,-203 390.94,-210"/>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="node5" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_node5"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="492,-176 405,-176 405,-157 492,-157 492,-176"/>
|
||||
<text text-anchor="middle" x="448.5" y="-164" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node5 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>Node3->Node5</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M333.43,-196.92C354.02,-191.43 380.07,-184.48 402.07,-178.61"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="403.1,-181.96 411.86,-176 401.3,-175.2 403.1,-181.96"/>
|
||||
</g>
|
||||
<!-- Node6->Node5 -->
|
||||
<g id="edge6" class="edge">
|
||||
<title>Node6->Node5</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M354.64,-164.64C367.83,-164.91 381.81,-165.19 394.81,-165.45"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="394.92,-168.95 404.99,-165.65 395.06,-161.95 394.92,-168.95"/>
|
||||
</g>
|
||||
<!-- Node8 -->
|
||||
<g id="node8" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_node8"><a xlink:href="../../d5/d3c/namespacedata__structures.html#aa6deb9d4a0f63ea97aef3dce4c6c6677" target="_top" xlink:title="Hash function for test">
|
||||
<polygon fill="white" stroke="#666666" points="363,-130 230,-130 230,-111 363,-111 363,-130"/>
|
||||
<text text-anchor="middle" x="296.5" y="-118" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::hashInt_1</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7->Node8 -->
|
||||
<g id="edge8" class="edge">
|
||||
<title>Node7->Node8</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M185.1,-108.2C196.11,-109.42 207.97,-110.74 219.69,-112.05"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="219.6,-115.56 229.93,-113.19 220.38,-108.61 219.6,-115.56"/>
|
||||
</g>
|
||||
<!-- Node9 -->
|
||||
<g id="node9" class="node">
|
||||
<title>Node9</title>
|
||||
<g id="a_node9"><a xlink:href="../../d5/d3c/namespacedata__structures.html#a9ed236419034917c5270c1dccd220b5c" target="_top" xlink:title="Hash function for test">
|
||||
<polygon fill="white" stroke="#666666" points="363,-93 230,-93 230,-74 363,-74 363,-93"/>
|
||||
<text text-anchor="middle" x="296.5" y="-81" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::hashInt_2</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7->Node9 -->
|
||||
<g id="edge9" class="edge">
|
||||
<title>Node7->Node9</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M185.1,-96.49C196.11,-95.19 207.97,-93.8 219.69,-92.42"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="220.41,-95.86 229.93,-91.21 219.59,-88.91 220.41,-95.86"/>
|
||||
</g>
|
||||
<!-- Node11 -->
|
||||
<g id="node11" class="node">
|
||||
<title>Node11</title>
|
||||
<g id="a_node11"><a xlink:href="../../d5/d3c/namespacedata__structures.html#a271c753baf6dc5ac6f19fa03c5873eb4" target="_top" xlink:title="Function djb2 to get hash for the given string.">
|
||||
<polygon fill="white" stroke="#666666" points="364.5,-56 228.5,-56 228.5,-37 364.5,-37 364.5,-56"/>
|
||||
<text text-anchor="middle" x="296.5" y="-44" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::hashDJB2</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10->Node11 -->
|
||||
<g id="edge11" class="edge">
|
||||
<title>Node10->Node11</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M192.31,-46.5C200.68,-46.5 209.41,-46.5 218.09,-46.5"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="218.22,-50 228.22,-46.5 218.22,-43 218.22,-50"/>
|
||||
</g>
|
||||
<!-- Node12 -->
|
||||
<g id="node12" class="node">
|
||||
<title>Node12</title>
|
||||
<g id="a_node12"><a xlink:href="../../d5/d3c/namespacedata__structures.html#a35eb2bc3edbb52f9c5f0b1e51046ef15" target="_top" xlink:title="Hash function, to get hash for the given string.">
|
||||
<polygon fill="white" stroke="#666666" points="358.5,-19 234.5,-19 234.5,0 358.5,0 358.5,-19"/>
|
||||
<text text-anchor="middle" x="296.5" y="-7" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::hashStr</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10->Node12 -->
|
||||
<g id="edge12" class="edge">
|
||||
<title>Node10->Node12</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M175.59,-36.97C196.42,-32.2 221.84,-26.38 243.9,-21.32"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="244.8,-24.71 253.77,-19.06 243.24,-17.88 244.8,-24.71"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 9.5 KiB |
337
d9/dae/classdata__structures_1_1_bitset.html
Normal file
@@ -0,0 +1,337 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.5"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C++: data_structures::Bitset Class Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Algorithms_in_C++<span id="projectnumber"> 1.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">Set of algorithms implemented in C++.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.5 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d9/dae/classdata__structures_1_1_bitset.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<div id="MSearchResults">
|
||||
<div class="SRPage">
|
||||
<div id="SRIndex">
|
||||
<div id="SRResults"></div>
|
||||
<div class="SRStatus" id="Loading">Loading...</div>
|
||||
<div class="SRStatus" id="Searching">Searching...</div>
|
||||
<div class="SRStatus" id="NoMatches">No Matches</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#pub-methods">Public Member Functions</a> |
|
||||
<a href="#pri-attribs">Private Attributes</a> |
|
||||
<a href="#pri-static-attribs">Static Private Attributes</a> |
|
||||
<a href="../../d6/df8/classdata__structures_1_1_bitset-members.html">List of all members</a> </div>
|
||||
<div class="headertitle"><div class="title">data_structures::Bitset Class Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>Simple bitset implementation for bloom filter.
|
||||
<a href="../../d9/dae/classdata__structures_1_1_bitset.html#details">More...</a></p>
|
||||
<div class="dynheader">
|
||||
Collaboration diagram for data_structures::Bitset:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d4/d9a/classdata__structures_1_1_bitset__coll__graph.svg" width="291" height="212"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
<center><span class="legend">[<a target="top" href="../../graph_legend.html">legend</a>]</span></center></div>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
|
||||
Public Member Functions</h2></td></tr>
|
||||
<tr class="memitem:a15b05aabb28f9b1896b0a61e8ef60130"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dae/classdata__structures_1_1_bitset.html#a15b05aabb28f9b1896b0a61e8ef60130">Bitset</a> (<a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a>)</td></tr>
|
||||
<tr class="memdesc:a15b05aabb28f9b1896b0a61e8ef60130"><td class="mdescLeft"> </td><td class="mdescRight">BitSet class constructor. <a href="../../d9/dae/classdata__structures_1_1_bitset.html#a15b05aabb28f9b1896b0a61e8ef60130">More...</a><br /></td></tr>
|
||||
<tr class="separator:a15b05aabb28f9b1896b0a61e8ef60130"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a2f1f44d6a12b0de4aaf242872b1c7b54"><td class="memItemLeft" align="right" valign="top"><a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dae/classdata__structures_1_1_bitset.html#a2f1f44d6a12b0de4aaf242872b1c7b54">size</a> ()</td></tr>
|
||||
<tr class="memdesc:a2f1f44d6a12b0de4aaf242872b1c7b54"><td class="mdescLeft"> </td><td class="mdescRight">Utility function to return the size of the inner array. <a href="../../d9/dae/classdata__structures_1_1_bitset.html#a2f1f44d6a12b0de4aaf242872b1c7b54">More...</a><br /></td></tr>
|
||||
<tr class="separator:a2f1f44d6a12b0de4aaf242872b1c7b54"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a17dbe1b1d559302312e8091f82f7499c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dae/classdata__structures_1_1_bitset.html#a17dbe1b1d559302312e8091f82f7499c">add</a> (<a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a>)</td></tr>
|
||||
<tr class="memdesc:a17dbe1b1d559302312e8091f82f7499c"><td class="mdescLeft"> </td><td class="mdescRight">Turn bit on position x to 1s. <a href="../../d9/dae/classdata__structures_1_1_bitset.html#a17dbe1b1d559302312e8091f82f7499c">More...</a><br /></td></tr>
|
||||
<tr class="separator:a17dbe1b1d559302312e8091f82f7499c"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a9ef54c7c3f6494b36ead3ae2e5cf43ac"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dae/classdata__structures_1_1_bitset.html#a9ef54c7c3f6494b36ead3ae2e5cf43ac">contains</a> (<a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a>)</td></tr>
|
||||
<tr class="memdesc:a9ef54c7c3f6494b36ead3ae2e5cf43ac"><td class="mdescLeft"> </td><td class="mdescRight">Doest bitset contains element x. <a href="../../d9/dae/classdata__structures_1_1_bitset.html#a9ef54c7c3f6494b36ead3ae2e5cf43ac">More...</a><br /></td></tr>
|
||||
<tr class="separator:a9ef54c7c3f6494b36ead3ae2e5cf43ac"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
|
||||
Private Attributes</h2></td></tr>
|
||||
<tr class="memitem:ae86688cf99b77342deedb75149573e73"><td class="memItemLeft" align="right" valign="top"><a id="ae86688cf99b77342deedb75149573e73" name="ae86688cf99b77342deedb75149573e73"></a>
|
||||
<a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>< <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> > </td><td class="memItemRight" valign="bottom"><b>data</b></td></tr>
|
||||
<tr class="memdesc:ae86688cf99b77342deedb75149573e73"><td class="mdescLeft"> </td><td class="mdescRight">short info of this variable <br /></td></tr>
|
||||
<tr class="separator:ae86688cf99b77342deedb75149573e73"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-static-attribs" name="pri-static-attribs"></a>
|
||||
Static Private Attributes</h2></td></tr>
|
||||
<tr class="memitem:ad7f7d479079a95bcc9175465395fa23f"><td class="memItemLeft" align="right" valign="top">static const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/dae/classdata__structures_1_1_bitset.html#ad7f7d479079a95bcc9175465395fa23f">blockSize</a></td></tr>
|
||||
<tr class="separator:ad7f7d479079a95bcc9175465395fa23f"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p >Simple bitset implementation for bloom filter. </p>
|
||||
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
||||
<a id="a15b05aabb28f9b1896b0a61e8ef60130" name="a15b05aabb28f9b1896b0a61e8ef60130"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a15b05aabb28f9b1896b0a61e8ef60130">◆ </a></span>Bitset()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">data_structures::Bitset::Bitset </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> </td>
|
||||
<td class="paramname"><em>initSize</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">explicit</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>BitSet class constructor. </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">initSize</td><td>amount of blocks, each contain sizeof(std::size_t) bits </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 63</span>: <a class="code hl_variable" href="../../d9/dae/classdata__structures_1_1_bitset.html#ae86688cf99b77342deedb75149573e73">data</a>(initSize) {}</div>
|
||||
<div class="ttc" id="aclassdata__structures_1_1_bitset_html_ae86688cf99b77342deedb75149573e73"><div class="ttname"><a href="../../d9/dae/classdata__structures_1_1_bitset.html#ae86688cf99b77342deedb75149573e73">data_structures::Bitset::data</a></div><div class="ttdeci">std::vector< std::size_t > data</div><div class="ttdoc">short info of this variable</div><div class="ttdef"><b>Definition:</b> bloom_filter.cpp:42</div></div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Member Function Documentation</h2>
|
||||
<a id="a17dbe1b1d559302312e8091f82f7499c" name="a17dbe1b1d559302312e8091f82f7499c"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a17dbe1b1d559302312e8091f82f7499c">◆ </a></span>add()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void data_structures::Bitset::add </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> </td>
|
||||
<td class="paramname"><em>x</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Turn bit on position x to 1s. </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">x</td><td>position to turn bit on </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 71</span> {</div>
|
||||
<div class="line"><span class="lineno"> 72</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> blockIndex = x / <a class="code hl_variable" href="../../d9/dae/classdata__structures_1_1_bitset.html#ad7f7d479079a95bcc9175465395fa23f">blockSize</a>;</div>
|
||||
<div class="line"><span class="lineno"> 73</span> <span class="keywordflow">if</span> (blockIndex >= <a class="code hl_variable" href="../../d9/dae/classdata__structures_1_1_bitset.html#ae86688cf99b77342deedb75149573e73">data</a>.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector/size.html">size</a>()) {</div>
|
||||
<div class="line"><span class="lineno"> 74</span> <a class="code hl_variable" href="../../d9/dae/classdata__structures_1_1_bitset.html#ae86688cf99b77342deedb75149573e73">data</a>.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector/resize.html">resize</a>(blockIndex + 1);</div>
|
||||
<div class="line"><span class="lineno"> 75</span> }</div>
|
||||
<div class="line"><span class="lineno"> 76</span> <a class="code hl_variable" href="../../d9/dae/classdata__structures_1_1_bitset.html#ae86688cf99b77342deedb75149573e73">data</a>[blockIndex] |= 1 << (x % <a class="code hl_variable" href="../../d9/dae/classdata__structures_1_1_bitset.html#ad7f7d479079a95bcc9175465395fa23f">blockSize</a>);</div>
|
||||
<div class="line"><span class="lineno"> 77</span>}</div>
|
||||
<div class="ttc" id="aclassdata__structures_1_1_bitset_html_ad7f7d479079a95bcc9175465395fa23f"><div class="ttname"><a href="../../d9/dae/classdata__structures_1_1_bitset.html#ad7f7d479079a95bcc9175465395fa23f">data_structures::Bitset::blockSize</a></div><div class="ttdeci">static const std::size_t blockSize</div><div class="ttdef"><b>Definition:</b> bloom_filter.cpp:43</div></div>
|
||||
<div class="ttc" id="aresize_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/resize.html">std::vector::resize</a></div><div class="ttdeci">T resize(T... args)</div></div>
|
||||
<div class="ttc" id="asize_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/size.html">std::vector::size</a></div><div class="ttdeci">T size(T... args)</div></div>
|
||||
<div class="ttc" id="asize_t_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d9/dae/classdata__structures_1_1_bitset_a17dbe1b1d559302312e8091f82f7499c_cgraph.svg" width="368" height="86"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a9ef54c7c3f6494b36ead3ae2e5cf43ac" name="a9ef54c7c3f6494b36ead3ae2e5cf43ac"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a9ef54c7c3f6494b36ead3ae2e5cf43ac">◆ </a></span>contains()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">bool data_structures::Bitset::contains </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> </td>
|
||||
<td class="paramname"><em>x</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Doest bitset contains element x. </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">x</td><td>position in bitset to check </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>true if bit position x is 1 </dd>
|
||||
<dd>
|
||||
false if bit position x is 0 </dd></dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 86</span> {</div>
|
||||
<div class="line"><span class="lineno"> 87</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> blockIndex = x / <a class="code hl_variable" href="../../d9/dae/classdata__structures_1_1_bitset.html#ad7f7d479079a95bcc9175465395fa23f">blockSize</a>;</div>
|
||||
<div class="line"><span class="lineno"> 88</span> <span class="keywordflow">if</span> (blockIndex >= <a class="code hl_variable" href="../../d9/dae/classdata__structures_1_1_bitset.html#ae86688cf99b77342deedb75149573e73">data</a>.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector/size.html">size</a>()) {</div>
|
||||
<div class="line"><span class="lineno"> 89</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
||||
<div class="line"><span class="lineno"> 90</span> }</div>
|
||||
<div class="line"><span class="lineno"> 91</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="../../d9/dae/classdata__structures_1_1_bitset.html#ae86688cf99b77342deedb75149573e73">data</a>[blockIndex] & (1 << (x % <a class="code hl_variable" href="../../d9/dae/classdata__structures_1_1_bitset.html#ad7f7d479079a95bcc9175465395fa23f">blockSize</a>));</div>
|
||||
<div class="line"><span class="lineno"> 92</span>}</div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d9/dae/classdata__structures_1_1_bitset_a9ef54c7c3f6494b36ead3ae2e5cf43ac_cgraph.svg" width="330" height="51"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a2f1f44d6a12b0de4aaf242872b1c7b54" name="a2f1f44d6a12b0de4aaf242872b1c7b54"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a2f1f44d6a12b0de4aaf242872b1c7b54">◆ </a></span>size()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> data_structures::Bitset::size </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Utility function to return the size of the inner array. </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the size of inner array </dd></dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 57</span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="../../d9/dae/classdata__structures_1_1_bitset.html#ae86688cf99b77342deedb75149573e73">data</a>.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector/size.html">size</a>(); }</div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d9/dae/classdata__structures_1_1_bitset_a2f1f44d6a12b0de4aaf242872b1c7b54_cgraph.svg" width="330" height="51"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Member Data Documentation</h2>
|
||||
<a id="ad7f7d479079a95bcc9175465395fa23f" name="ad7f7d479079a95bcc9175465395fa23f"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ad7f7d479079a95bcc9175465395fa23f">◆ </a></span>blockSize</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> data_structures::Bitset::blockSize</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<b>Initial value:</b><div class="fragment"><div class="line">=</div>
|
||||
<div class="line"> <span class="keyword">sizeof</span>(<a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a>)</div>
|
||||
</div><!-- fragment --><p >size of integer type, that we are using in our bitset </p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr/>The documentation for this class was generated from the following file:<ul>
|
||||
<li>data_structures/<a class="el" href="../../d9/dab/bloom__filter_8cpp.html">bloom_filter.cpp</a></li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../d5/d3c/namespacedata__structures.html">data_structures</a></li><li class="navelem"><a class="el" href="../../d9/dae/classdata__structures_1_1_bitset.html">Bitset</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
9
d9/dae/classdata__structures_1_1_bitset.js
Normal file
@@ -0,0 +1,9 @@
|
||||
var classdata__structures_1_1_bitset =
|
||||
[
|
||||
[ "Bitset", "d9/dae/classdata__structures_1_1_bitset.html#a15b05aabb28f9b1896b0a61e8ef60130", null ],
|
||||
[ "add", "d9/dae/classdata__structures_1_1_bitset.html#a17dbe1b1d559302312e8091f82f7499c", null ],
|
||||
[ "contains", "d9/dae/classdata__structures_1_1_bitset.html#a9ef54c7c3f6494b36ead3ae2e5cf43ac", null ],
|
||||
[ "size", "d9/dae/classdata__structures_1_1_bitset.html#a2f1f44d6a12b0de4aaf242872b1c7b54", null ],
|
||||
[ "blockSize", "d9/dae/classdata__structures_1_1_bitset.html#ad7f7d479079a95bcc9175465395fa23f", null ],
|
||||
[ "data", "d9/dae/classdata__structures_1_1_bitset.html#ae86688cf99b77342deedb75149573e73", null ]
|
||||
];
|
||||
@@ -0,0 +1,5 @@
|
||||
<map id="data_structures::Bitset::add" name="data_structures::Bitset::add">
|
||||
<area shape="rect" id="node1" title="Turn bit on position x to 1s." alt="" coords="5,31,188,56"/>
|
||||
<area shape="rect" id="node2" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/resize.html#" title=" " alt="" coords="236,5,363,31"/>
|
||||
<area shape="rect" id="node3" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/size.html#" title=" " alt="" coords="241,55,357,80"/>
|
||||
</map>
|
||||
@@ -0,0 +1 @@
|
||||
2287823e877971efa86e2d19411fef98
|
||||
@@ -0,0 +1,51 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 5.0.1 (20220820.1526)
|
||||
-->
|
||||
<!-- Title: data_structures::Bitset::add Pages: 1 -->
|
||||
<svg width="276pt" height="64pt"
|
||||
viewBox="0.00 0.00 276.00 64.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 60)">
|
||||
<title>data_structures::Bitset::add</title>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Turn bit on position x to 1s.">
|
||||
<polygon fill="#999999" stroke="#666666" points="137,-37 0,-37 0,-18 137,-18 137,-37"/>
|
||||
<text text-anchor="middle" x="68.5" y="-25" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Bitset::add</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/resize.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="268,-56 173,-56 173,-37 268,-37 268,-56"/>
|
||||
<text text-anchor="middle" x="220.5" y="-44" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::resize</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M137.04,-36.06C145.66,-37.15 154.42,-38.26 162.85,-39.32"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="162.57,-42.82 172.94,-40.6 163.45,-35.87 162.57,-42.82"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="264,-19 177,-19 177,0 264,0 264,-19"/>
|
||||
<text text-anchor="middle" x="220.5" y="-7" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M137.04,-19.4C146.98,-18.2 157.09,-16.99 166.67,-15.84"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="167.32,-19.29 176.83,-14.62 166.48,-12.34 167.32,-19.29"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.3 KiB |
@@ -0,0 +1,4 @@
|
||||
<map id="data_structures::Bitset::size" name="data_structures::Bitset::size">
|
||||
<area shape="rect" id="node1" title="Utility function to return the size of the inner array." alt="" coords="5,5,160,45"/>
|
||||
<area shape="rect" id="node2" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/size.html#" title=" " alt="" coords="208,13,324,38"/>
|
||||
</map>
|
||||
@@ -0,0 +1 @@
|
||||
fe347ff0a552de7d15cf1f8de2097a5f
|
||||
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 5.0.1 (20220820.1526)
|
||||
-->
|
||||
<!-- Title: data_structures::Bitset::size Pages: 1 -->
|
||||
<svg width="247pt" height="38pt"
|
||||
viewBox="0.00 0.00 247.00 38.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 34)">
|
||||
<title>data_structures::Bitset::size</title>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Utility function to return the size of the inner array.">
|
||||
<polygon fill="#999999" stroke="#666666" points="116,-30 0,-30 0,0 116,0 116,-30"/>
|
||||
<text text-anchor="start" x="8" y="-18" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Bitset</text>
|
||||
<text text-anchor="middle" x="58" y="-7" font-family="Helvetica,sans-Serif" font-size="10.00">::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="239,-24.5 152,-24.5 152,-5.5 239,-5.5 239,-24.5"/>
|
||||
<text text-anchor="middle" x="195.5" y="-12.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M116.07,-15C124.61,-15 133.37,-15 141.81,-15"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="141.91,-18.5 151.91,-15 141.91,-11.5 141.91,-18.5"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,4 @@
|
||||
<map id="data_structures::Bitset::contains" name="data_structures::Bitset::contains">
|
||||
<area shape="rect" id="node1" title="Doest bitset contains element x." alt="" coords="5,5,160,45"/>
|
||||
<area shape="rect" id="node2" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/size.html#" title=" " alt="" coords="208,13,324,38"/>
|
||||
</map>
|
||||
@@ -0,0 +1 @@
|
||||
9e978aa043f4f385230d8f08fd17b4a9
|
||||
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 5.0.1 (20220820.1526)
|
||||
-->
|
||||
<!-- Title: data_structures::Bitset::contains Pages: 1 -->
|
||||
<svg width="247pt" height="38pt"
|
||||
viewBox="0.00 0.00 247.00 38.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 34)">
|
||||
<title>data_structures::Bitset::contains</title>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Doest bitset contains element x.">
|
||||
<polygon fill="#999999" stroke="#666666" points="116,-30 0,-30 0,0 116,0 116,-30"/>
|
||||
<text text-anchor="start" x="8" y="-18" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Bitset</text>
|
||||
<text text-anchor="middle" x="58" y="-7" font-family="Helvetica,sans-Serif" font-size="10.00">::contains</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="239,-24.5 152,-24.5 152,-5.5 239,-5.5 239,-24.5"/>
|
||||
<text text-anchor="middle" x="195.5" y="-12.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M116.07,-15C124.61,-15 133.37,-15 141.81,-15"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="141.91,-18.5 151.91,-15 141.91,-11.5 141.91,-18.5"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |