Documentation for eae5a72561

This commit is contained in:
github-actions
2022-09-13 16:11:32 +00:00
parent 45787b7c7c
commit ecd8ec0856
411 changed files with 5554 additions and 2573 deletions

View File

@@ -0,0 +1,316 @@
<!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::BloomFilter&lt; T &gt; Class Template 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">&#160;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&amp;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&amp;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&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('dc/dd4/classdata__structures_1_1_bloom_filter.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> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="../../de/d36/classdata__structures_1_1_bloom_filter-members.html">List of all members</a> </div>
<div class="headertitle"><div class="title">data_structures::BloomFilter&lt; T &gt; Class Template Reference</div></div>
</div><!--header-->
<div class="contents">
<p>Bloom filter template class.
<a href="../../dc/dd4/classdata__structures_1_1_bloom_filter.html#details">More...</a></p>
<div class="dynheader">
Collaboration diagram for data_structures::BloomFilter&lt; T &gt;:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d8/d41/classdata__structures_1_1_bloom_filter__coll__graph.svg" width="460" height="330"><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:a6910d29951b57ab56e7a3db405aa1f1a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/dd4/classdata__structures_1_1_bloom_filter.html#a6910d29951b57ab56e7a3db405aa1f1a">BloomFilter</a> (<a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a>, <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/initializer_list.html">std::initializer_list</a>&lt; <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a>&lt; <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a>(T)&gt; &gt;)</td></tr>
<tr class="memdesc:a6910d29951b57ab56e7a3db405aa1f1a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor for Bloom filter. <a href="../../dc/dd4/classdata__structures_1_1_bloom_filter.html#a6910d29951b57ab56e7a3db405aa1f1a">More...</a><br /></td></tr>
<tr class="separator:a6910d29951b57ab56e7a3db405aa1f1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a67bed8ef62fcb1f33b6c72df47dcf840"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/dd4/classdata__structures_1_1_bloom_filter.html#a67bed8ef62fcb1f33b6c72df47dcf840">add</a> (T)</td></tr>
<tr class="memdesc:a67bed8ef62fcb1f33b6c72df47dcf840"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add function for Bloom filter. <a href="../../dc/dd4/classdata__structures_1_1_bloom_filter.html#a67bed8ef62fcb1f33b6c72df47dcf840">More...</a><br /></td></tr>
<tr class="separator:a67bed8ef62fcb1f33b6c72df47dcf840"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a576db259488dbfb67624a9652a5ab08b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/dd4/classdata__structures_1_1_bloom_filter.html#a576db259488dbfb67624a9652a5ab08b">contains</a> (T)</td></tr>
<tr class="memdesc:a576db259488dbfb67624a9652a5ab08b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check element function for Bloom filter. <a href="../../dc/dd4/classdata__structures_1_1_bloom_filter.html#a576db259488dbfb67624a9652a5ab08b">More...</a><br /></td></tr>
<tr class="separator:a576db259488dbfb67624a9652a5ab08b"><td class="memSeparator" colspan="2">&#160;</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:a90268d7901e2c1ab5f8bf8b24a30e119"><td class="memItemLeft" align="right" valign="top"><a id="a90268d7901e2c1ab5f8bf8b24a30e119" name="a90268d7901e2c1ab5f8bf8b24a30e119"></a>
<a class="el" href="../../d9/dae/classdata__structures_1_1_bitset.html">Bitset</a>&#160;</td><td class="memItemRight" valign="bottom"><b>set</b></td></tr>
<tr class="memdesc:a90268d7901e2c1ab5f8bf8b24a30e119"><td class="mdescLeft">&#160;</td><td class="mdescRight">inner bitset for elements <br /></td></tr>
<tr class="separator:a90268d7901e2c1ab5f8bf8b24a30e119"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65ca6742d3be88d4aca4f080068a7a80"><td class="memItemLeft" align="right" valign="top"><a id="a65ca6742d3be88d4aca4f080068a7a80" name="a65ca6742d3be88d4aca4f080068a7a80"></a>
<a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt; <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a>&lt; <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a>(T)&gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>hashFunks</b></td></tr>
<tr class="memdesc:a65ca6742d3be88d4aca4f080068a7a80"><td class="mdescLeft">&#160;</td><td class="mdescRight">hash functions for T type <br /></td></tr>
<tr class="separator:a65ca6742d3be88d4aca4f080068a7a80"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;typename T&gt;<br />
class data_structures::BloomFilter&lt; T &gt;</div><p >Bloom filter template class. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">T</td><td>type of elements that we need to filter </td></tr>
</table>
</dd>
</dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a6910d29951b57ab56e7a3db405aa1f1a" name="a6910d29951b57ab56e7a3db405aa1f1a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6910d29951b57ab56e7a3db405aa1f1a">&#9670;&#160;</a></span>BloomFilter()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="../../dc/dd4/classdata__structures_1_1_bloom_filter.html">data_structures::BloomFilter</a>&lt; T &gt;::BloomFilter </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>&#160;</td>
<td class="paramname"><em>size</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/initializer_list.html">std::initializer_list</a>&lt; <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a>&lt; <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a>(T)&gt; &gt;&#160;</td>
<td class="paramname"><em>funks</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructor for Bloom filter. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">T</td><td>type of elements that we need to filter </td></tr>
</table>
</dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">size</td><td>initial size of Bloom filter </td></tr>
<tr><td class="paramname">funks</td><td>hash functions for T type </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>none </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 124</span> : <a class="code hl_variable" href="../../dc/dd4/classdata__structures_1_1_bloom_filter.html#a90268d7901e2c1ab5f8bf8b24a30e119">set</a>(size), <a class="code hl_variable" href="../../dc/dd4/classdata__structures_1_1_bloom_filter.html#a65ca6742d3be88d4aca4f080068a7a80">hashFunks</a>(funks) {}</div>
<div class="ttc" id="aclassdata__structures_1_1_bloom_filter_html_a65ca6742d3be88d4aca4f080068a7a80"><div class="ttname"><a href="../../dc/dd4/classdata__structures_1_1_bloom_filter.html#a65ca6742d3be88d4aca4f080068a7a80">data_structures::BloomFilter::hashFunks</a></div><div class="ttdeci">std::vector&lt; std::function&lt; std::size_t(T)&gt; &gt; hashFunks</div><div class="ttdoc">hash functions for T type</div><div class="ttdef"><b>Definition:</b> bloom_filter.cpp:103</div></div>
<div class="ttc" id="aclassdata__structures_1_1_bloom_filter_html_a90268d7901e2c1ab5f8bf8b24a30e119"><div class="ttname"><a href="../../dc/dd4/classdata__structures_1_1_bloom_filter.html#a90268d7901e2c1ab5f8bf8b24a30e119">data_structures::BloomFilter::set</a></div><div class="ttdeci">Bitset set</div><div class="ttdoc">inner bitset for elements</div><div class="ttdef"><b>Definition:</b> bloom_filter.cpp:101</div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a67bed8ef62fcb1f33b6c72df47dcf840" name="a67bed8ef62fcb1f33b6c72df47dcf840"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a67bed8ef62fcb1f33b6c72df47dcf840">&#9670;&#160;</a></span>add()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="../../dc/dd4/classdata__structures_1_1_bloom_filter.html">data_structures::BloomFilter</a>&lt; T &gt;::add </td>
<td>(</td>
<td class="paramtype">T&#160;</td>
<td class="paramname"><em>x</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Add function for Bloom filter. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">T</td><td>type of elements that we need to filter </td></tr>
</table>
</dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">x</td><td>element to add to filter </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"> 134</span> {</div>
<div class="line"><span class="lineno"> 135</span> <span class="keywordflow">for</span> (<a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> i = 0; i &lt; <a class="code hl_variable" href="../../dc/dd4/classdata__structures_1_1_bloom_filter.html#a65ca6742d3be88d4aca4f080068a7a80">hashFunks</a>.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector/size.html">size</a>(); i++) {</div>
<div class="line"><span class="lineno"> 136</span> <a class="code hl_variable" href="../../dc/dd4/classdata__structures_1_1_bloom_filter.html#a90268d7901e2c1ab5f8bf8b24a30e119">set</a>.<a class="code hl_function" href="../../d9/dae/classdata__structures_1_1_bitset.html#a17dbe1b1d559302312e8091f82f7499c">add</a>(<a class="code hl_variable" href="../../dc/dd4/classdata__structures_1_1_bloom_filter.html#a65ca6742d3be88d4aca4f080068a7a80">hashFunks</a>[i](x) % (<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>) * <a class="code hl_variable" href="../../dc/dd4/classdata__structures_1_1_bloom_filter.html#a90268d7901e2c1ab5f8bf8b24a30e119">set</a>.<a class="code hl_function" href="../../d9/dae/classdata__structures_1_1_bitset.html#a2f1f44d6a12b0de4aaf242872b1c7b54">size</a>()));</div>
<div class="line"><span class="lineno"> 137</span> }</div>
<div class="line"><span class="lineno"> 138</span>}</div>
<div class="ttc" id="aclassdata__structures_1_1_bitset_html_a17dbe1b1d559302312e8091f82f7499c"><div class="ttname"><a href="../../d9/dae/classdata__structures_1_1_bitset.html#a17dbe1b1d559302312e8091f82f7499c">data_structures::Bitset::add</a></div><div class="ttdeci">void add(std::size_t)</div><div class="ttdoc">Turn bit on position x to 1s.</div><div class="ttdef"><b>Definition:</b> bloom_filter.cpp:71</div></div>
<div class="ttc" id="aclassdata__structures_1_1_bitset_html_a2f1f44d6a12b0de4aaf242872b1c7b54"><div class="ttname"><a href="../../d9/dae/classdata__structures_1_1_bitset.html#a2f1f44d6a12b0de4aaf242872b1c7b54">data_structures::Bitset::size</a></div><div class="ttdeci">std::size_t size()</div><div class="ttdoc">Utility function to return the size of the inner array.</div><div class="ttdef"><b>Definition:</b> bloom_filter.cpp:57</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="../../dc/dd4/classdata__structures_1_1_bloom_filter_a67bed8ef62fcb1f33b6c72df47dcf840_cgraph.svg" width="631" 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="a576db259488dbfb67624a9652a5ab08b" name="a576db259488dbfb67624a9652a5ab08b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a576db259488dbfb67624a9652a5ab08b">&#9670;&#160;</a></span>contains()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="../../dc/dd4/classdata__structures_1_1_bloom_filter.html">data_structures::BloomFilter</a>&lt; T &gt;::contains </td>
<td>(</td>
<td class="paramtype">T&#160;</td>
<td class="paramname"><em>x</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Check element function for Bloom filter. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">T</td><td>type of elements that we need to filter </td></tr>
</table>
</dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">x</td><td>element to check in filter </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the element probably appears in the filter </dd>
<dd>
false if the element certainly does not appear in the filter </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 149</span> {</div>
<div class="line"><span class="lineno"> 150</span> <span class="keywordflow">for</span> (<a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> i = 0; i &lt; <a class="code hl_variable" href="../../dc/dd4/classdata__structures_1_1_bloom_filter.html#a65ca6742d3be88d4aca4f080068a7a80">hashFunks</a>.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector/size.html">size</a>(); i++) {</div>
<div class="line"><span class="lineno"> 151</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="../../dc/dd4/classdata__structures_1_1_bloom_filter.html#a90268d7901e2c1ab5f8bf8b24a30e119">set</a>.<a class="code hl_function" href="../../d9/dae/classdata__structures_1_1_bitset.html#a9ef54c7c3f6494b36ead3ae2e5cf43ac">contains</a>(<a class="code hl_variable" href="../../dc/dd4/classdata__structures_1_1_bloom_filter.html#a65ca6742d3be88d4aca4f080068a7a80">hashFunks</a>[i](x) %</div>
<div class="line"><span class="lineno"> 152</span> (<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>) * <a class="code hl_variable" href="../../dc/dd4/classdata__structures_1_1_bloom_filter.html#a90268d7901e2c1ab5f8bf8b24a30e119">set</a>.<a class="code hl_function" href="../../d9/dae/classdata__structures_1_1_bitset.html#a2f1f44d6a12b0de4aaf242872b1c7b54">size</a>())) == <span class="keyword">false</span>) {</div>
<div class="line"><span class="lineno"> 153</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><span class="lineno"> 154</span> }</div>
<div class="line"><span class="lineno"> 155</span> }</div>
<div class="line"><span class="lineno"> 156</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><span class="lineno"> 157</span>}</div>
<div class="ttc" id="aclassdata__structures_1_1_bitset_html_a9ef54c7c3f6494b36ead3ae2e5cf43ac"><div class="ttname"><a href="../../d9/dae/classdata__structures_1_1_bitset.html#a9ef54c7c3f6494b36ead3ae2e5cf43ac">data_structures::Bitset::contains</a></div><div class="ttdeci">bool contains(std::size_t)</div><div class="ttdoc">Doest bitset contains element x.</div><div class="ttdef"><b>Definition:</b> bloom_filter.cpp:86</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="../../dc/dd4/classdata__structures_1_1_bloom_filter_a576db259488dbfb67624a9652a5ab08b_cgraph.svg" width="564" height="115"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</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="../../dc/dd4/classdata__structures_1_1_bloom_filter.html">BloomFilter</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>

View File

@@ -0,0 +1,8 @@
var classdata__structures_1_1_bloom_filter =
[
[ "BloomFilter", "dc/dd4/classdata__structures_1_1_bloom_filter.html#a6910d29951b57ab56e7a3db405aa1f1a", null ],
[ "add", "dc/dd4/classdata__structures_1_1_bloom_filter.html#a67bed8ef62fcb1f33b6c72df47dcf840", null ],
[ "contains", "dc/dd4/classdata__structures_1_1_bloom_filter.html#a576db259488dbfb67624a9652a5ab08b", null ],
[ "hashFunks", "dc/dd4/classdata__structures_1_1_bloom_filter.html#a65ca6742d3be88d4aca4f080068a7a80", null ],
[ "set", "dc/dd4/classdata__structures_1_1_bloom_filter.html#a90268d7901e2c1ab5f8bf8b24a30e119", null ]
];

View File

@@ -0,0 +1,6 @@
<map id="data_structures::BloomFilter::contains" name="data_structures::BloomFilter::contains">
<area shape="rect" id="node1" title="Check element function for Bloom filter." alt="" coords="5,37,192,77"/>
<area shape="rect" id="node2" href="$d9/dae/classdata__structures_1_1_bitset.html#a9ef54c7c3f6494b36ead3ae2e5cf43ac" title="Doest bitset contains element x." alt="" coords="240,5,395,45"/>
<area shape="rect" id="node4" href="$d9/dae/classdata__structures_1_1_bitset.html#a2f1f44d6a12b0de4aaf242872b1c7b54" title="Utility function to return the size of the inner array." alt="" coords="240,69,395,109"/>
<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="443,45,559,70"/>
</map>

View File

@@ -0,0 +1 @@
8a0df2d5ec250d528d27e4fec6d4ebeb

View File

@@ -0,0 +1,75 @@
<?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::BloomFilter::contains Pages: 1 -->
<svg width="423pt" height="86pt"
viewBox="0.00 0.00 423.00 86.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 82)">
<title>data_structures::BloomFilter::contains</title>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="Check element function for Bloom filter.">
<polygon fill="#999999" stroke="#666666" points="140,-54 0,-54 0,-24 140,-24 140,-54"/>
<text text-anchor="start" x="8" y="-42" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::BloomFilter</text>
<text text-anchor="middle" x="70" y="-31" 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 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="292,-78 176,-78 176,-48 292,-48 292,-78"/>
<text text-anchor="start" x="184" y="-66" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Bitset</text>
<text text-anchor="middle" x="234" y="-55" font-family="Helvetica,sans-Serif" font-size="10.00">::contains</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="#63b8ff" d="M140.17,-49.25C148.61,-50.5 157.22,-51.77 165.63,-53.02"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="165.36,-56.52 175.77,-54.52 166.39,-49.59 165.36,-56.52"/>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a xlink:href="../../d9/dae/classdata__structures_1_1_bitset.html#a2f1f44d6a12b0de4aaf242872b1c7b54" target="_top" xlink:title="Utility function to return the size of the inner array.">
<polygon fill="white" stroke="#666666" points="292,-30 176,-30 176,0 292,0 292,-30"/>
<text text-anchor="start" x="184" y="-18" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Bitset</text>
<text text-anchor="middle" x="234" y="-7" font-family="Helvetica,sans-Serif" font-size="10.00">::size</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<g id="edge3" class="edge">
<title>Node1&#45;&gt;Node4</title>
<path fill="none" stroke="#63b8ff" d="M140.17,-28.75C148.61,-27.5 157.22,-26.23 165.63,-24.98"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="166.39,-28.41 175.77,-23.48 165.36,-21.48 166.39,-28.41"/>
</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="415,-48.5 328,-48.5 328,-29.5 415,-29.5 415,-48.5"/>
<text text-anchor="middle" x="371.5" y="-36.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::size</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2" class="edge">
<title>Node2&#45;&gt;Node3</title>
<path fill="none" stroke="#63b8ff" d="M292.07,-52.89C300.61,-51.38 309.37,-49.83 317.81,-48.33"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="318.67,-51.73 327.91,-46.54 317.45,-44.84 318.67,-51.73"/>
</g>
<!-- Node4&#45;&gt;Node3 -->
<g id="edge4" class="edge">
<title>Node4&#45;&gt;Node3</title>
<path fill="none" stroke="#63b8ff" d="M292.07,-25.11C300.61,-26.62 309.37,-28.17 317.81,-29.67"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="317.45,-33.16 327.91,-31.46 318.67,-26.27 317.45,-33.16"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@@ -0,0 +1,7 @@
<map id="data_structures::BloomFilter::add" name="data_structures::BloomFilter::add">
<area shape="rect" id="node1" title="Add function for Bloom filter." alt="" coords="5,35,220,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="268,5,451,31"/>
<area shape="rect" id="node5" href="$d9/dae/classdata__structures_1_1_bitset.html#a2f1f44d6a12b0de4aaf242872b1c7b54" title="Utility function to return the size of the inner array." alt="" coords="282,55,437,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="499,5,625,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="504,59,620,84"/>
</map>

View File

@@ -0,0 +1 @@
ccd654291d24ec9b82103c6169a9084b

View File

@@ -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: data_structures::BloomFilter::add Pages: 1 -->
<svg width="473pt" height="76pt"
viewBox="0.00 0.00 473.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>data_structures::BloomFilter::add</title>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="Add function for Bloom filter.">
<polygon fill="#999999" stroke="#666666" points="161,-45.5 0,-45.5 0,-26.5 161,-26.5 161,-45.5"/>
<text text-anchor="middle" x="80.5" y="-33.5" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::BloomFilter::add</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="334,-67.5 197,-67.5 197,-48.5 334,-48.5 334,-67.5"/>
<text text-anchor="middle" x="265.5" y="-55.5" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Bitset::add</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="#63b8ff" d="M160.7,-45.52C169.38,-46.56 178.21,-47.63 186.87,-48.67"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="186.59,-52.16 196.94,-49.88 187.43,-45.21 186.59,-52.16"/>
</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#a2f1f44d6a12b0de4aaf242872b1c7b54" target="_top" xlink:title="Utility function to return the size of the inner array.">
<polygon fill="white" stroke="#666666" points="323.5,-30 207.5,-30 207.5,0 323.5,0 323.5,-30"/>
<text text-anchor="start" x="215.5" y="-18" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Bitset</text>
<text text-anchor="middle" x="265.5" y="-7" font-family="Helvetica,sans-Serif" font-size="10.00">::size</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node5 -->
<g id="edge4" class="edge">
<title>Node1&#45;&gt;Node5</title>
<path fill="none" stroke="#63b8ff" d="M161.23,-26.85C173.23,-25.47 185.5,-24.07 197.2,-22.72"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="197.77,-26.18 207.31,-21.56 196.98,-19.23 197.77,-26.18"/>
</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="465,-67.5 370,-67.5 370,-48.5 465,-48.5 465,-67.5"/>
<text text-anchor="middle" x="417.5" y="-55.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::resize</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2" class="edge">
<title>Node2&#45;&gt;Node3</title>
<path fill="none" stroke="#63b8ff" d="M334.04,-58C342.66,-58 351.42,-58 359.85,-58"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="359.94,-61.5 369.94,-58 359.93,-54.5 359.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="461,-27.5 374,-27.5 374,-8.5 461,-8.5 461,-27.5"/>
<text text-anchor="middle" x="417.5" y="-15.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::size</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node4 -->
<g id="edge3" class="edge">
<title>Node2&#45;&gt;Node4</title>
<path fill="none" stroke="#63b8ff" d="M302.43,-48.42C323.02,-42.93 349.07,-35.98 371.07,-30.11"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="372.1,-33.46 380.86,-27.5 370.3,-26.7 372.1,-33.46"/>
</g>
<!-- Node5&#45;&gt;Node4 -->
<g id="edge5" class="edge">
<title>Node5&#45;&gt;Node4</title>
<path fill="none" stroke="#63b8ff" d="M323.64,-16.14C336.83,-16.41 350.81,-16.69 363.81,-16.95"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="363.92,-20.45 373.99,-17.15 364.06,-13.45 363.92,-20.45"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.3 KiB