Documentation for 53a6c16730

This commit is contained in:
github-actions
2022-01-16 16:05:19 +00:00
parent 778f1be9e5
commit 2cab28c905
3620 changed files with 52045 additions and 41188 deletions

View File

@@ -3,7 +3,7 @@
<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.2"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Algorithms_in_C++: others/lru_cache.cpp File Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
@@ -30,8 +30,8 @@ MathJax.Hub.Config({
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<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>
@@ -41,7 +41,7 @@ MathJax.Hub.Config({
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.2 -->
<!-- Generated by Doxygen 1.9.3 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
@@ -207,10 +207,10 @@ template&lt;typename T &gt; </div>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
<div class="fragment"><div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> {</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> <span class="comment">// It&#39;s just to avoid writing cout and endl</span></div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;[TESTS] : ---&gt; &quot;</span> &lt;&lt; msg &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span>}</div>
<div class="fragment"><div class="line"><span class="lineno"> 148</span> {</div>
<div class="line"><span class="lineno"> 149</span> <span class="comment">// It&#39;s just to avoid writing cout and endl</span></div>
<div class="line"><span class="lineno"> 150</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;[TESTS] : ---&gt; &quot;</span> &lt;&lt; msg &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><span class="lineno"> 151</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="aendl_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a></div><div class="ttdeci">T endl(T... args)</div></div>
</div><!-- fragment --><div class="dynheader">
@@ -240,30 +240,30 @@ Here is the call graph for this function:</div>
<p>Main function. </p>
<dl class="section return"><dt>Returns</dt><dd>0 on exit </dd></dl>
<div class="fragment"><div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span> {</div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span> <a class="code hl_function" href="../../d3/db3/lru__cache_8cpp.html#a6a3be6d8871b1f5dc03688da8f3ee9e6">lru_tests::run_tests</a>();</div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"> 253</span> </div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span> <span class="comment">// Usage</span></div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span> <a class="code hl_class" href="../../d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html">others::lru_cache::LRUCache</a> cache(4);</div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span> cache.refer(1);</div>
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span> cache.refer(2);</div>
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"> 258</span> cache.refer(3);</div>
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"> 259</span> cache.refer(4);</div>
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"> 260</span> cache.refer(5);</div>
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"> 261</span> cache.refer(5);</div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"> 262</span> </div>
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"> 263</span> cache.display();</div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"> 264</span> </div>
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno"> 265</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Hits: &quot;</span> &lt;&lt; cache.getHits()</div>
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno"> 266</span> &lt;&lt; <span class="stringliteral">&quot; Miss: &quot;</span> &lt;&lt; cache.getPageFault() &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"> 267</span> <span class="keywordflow">return</span> 0;</div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno"> 268</span>}</div>
<div class="fragment"><div class="line"><span class="lineno"> 251</span> {</div>
<div class="line"><span class="lineno"> 252</span> <a class="code hl_function" href="../../d3/db3/lru__cache_8cpp.html#a6a3be6d8871b1f5dc03688da8f3ee9e6">lru_tests::run_tests</a>();</div>
<div class="line"><span class="lineno"> 253</span> </div>
<div class="line"><span class="lineno"> 254</span> <span class="comment">// Usage</span></div>
<div class="line"><span class="lineno"> 255</span> <a class="code hl_class" href="../../d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html">others::lru_cache::LRUCache</a> cache(4);</div>
<div class="line"><span class="lineno"> 256</span> cache.refer(1);</div>
<div class="line"><span class="lineno"> 257</span> cache.refer(2);</div>
<div class="line"><span class="lineno"> 258</span> cache.refer(3);</div>
<div class="line"><span class="lineno"> 259</span> cache.refer(4);</div>
<div class="line"><span class="lineno"> 260</span> cache.refer(5);</div>
<div class="line"><span class="lineno"> 261</span> cache.refer(5);</div>
<div class="line"><span class="lineno"> 262</span> </div>
<div class="line"><span class="lineno"> 263</span> cache.display();</div>
<div class="line"><span class="lineno"> 264</span> </div>
<div class="line"><span class="lineno"> 265</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Hits: &quot;</span> &lt;&lt; cache.getHits()</div>
<div class="line"><span class="lineno"> 266</span> &lt;&lt; <span class="stringliteral">&quot; Miss: &quot;</span> &lt;&lt; cache.getPageFault() &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><span class="lineno"> 267</span> <span class="keywordflow">return</span> 0;</div>
<div class="line"><span class="lineno"> 268</span>}</div>
<div class="ttc" id="aclassothers_1_1lru__cache_1_1_l_r_u_cache_html"><div class="ttname"><a href="../../d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html">others::lru_cache::LRUCache</a></div><div class="ttdoc">LRU cache class.</div><div class="ttdef"><b>Definition:</b> lru_cache.cpp:67</div></div>
<div class="ttc" id="alru__cache_8cpp_html_a6a3be6d8871b1f5dc03688da8f3ee9e6"><div class="ttname"><a href="../../d3/db3/lru__cache_8cpp.html#a6a3be6d8871b1f5dc03688da8f3ee9e6">lru_tests::run_tests</a></div><div class="ttdeci">static void run_tests()</div><div class="ttdoc">A function to invoke all test cases.</div><div class="ttdef"><b>Definition:</b> lru_cache.cpp:238</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="../../d3/db3/lru__cache_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg" width="402" height="300"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d3/db3/lru__cache_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg" width="496" height="534"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
@@ -294,13 +294,13 @@ Here is the call graph for this function:</div>
<p>A function to invoke all test cases. </p>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
<div class="fragment"><div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> {</div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> <a class="code hl_function" href="../../d3/db3/lru__cache_8cpp.html#a6401e8f2d41d8cc9cd0e52ab381608d4">test_1</a>();</div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span> <a class="code hl_function" href="../../d3/db3/lru__cache_8cpp.html#a4b02e288a407876a8d6024f98a2a25ec">test_2</a>();</div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"> 241</span> <a class="code hl_function" href="../../d3/db3/lru__cache_8cpp.html#a01ec21fc91ddafd964ae2035ba7892c0">test_3</a>();</div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"> 242</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"> 243</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(<span class="stringliteral">&quot;TESTS COMPLETED!&quot;</span>);</div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span>}</div>
<div class="fragment"><div class="line"><span class="lineno"> 238</span> {</div>
<div class="line"><span class="lineno"> 239</span> <a class="code hl_function" href="../../d3/db3/lru__cache_8cpp.html#a6401e8f2d41d8cc9cd0e52ab381608d4">test_1</a>();</div>
<div class="line"><span class="lineno"> 240</span> <a class="code hl_function" href="../../d3/db3/lru__cache_8cpp.html#a4b02e288a407876a8d6024f98a2a25ec">test_2</a>();</div>
<div class="line"><span class="lineno"> 241</span> <a class="code hl_function" href="../../d3/db3/lru__cache_8cpp.html#a01ec21fc91ddafd964ae2035ba7892c0">test_3</a>();</div>
<div class="line"><span class="lineno"> 242</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><span class="lineno"> 243</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(<span class="stringliteral">&quot;TESTS COMPLETED!&quot;</span>);</div>
<div class="line"><span class="lineno"> 244</span>}</div>
<div class="ttc" id="alog_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/numeric/math/log.html">std::log</a></div><div class="ttdeci">T log(T... args)</div></div>
<div class="ttc" id="alru__cache_8cpp_html_a01ec21fc91ddafd964ae2035ba7892c0"><div class="ttname"><a href="../../d3/db3/lru__cache_8cpp.html#a01ec21fc91ddafd964ae2035ba7892c0">lru_tests::test_3</a></div><div class="ttdeci">static void test_3()</div><div class="ttdoc">A simple test case The assert statement will check expected hist and miss to resultant hits and miss.</div><div class="ttdef"><b>Definition:</b> lru_cache.cpp:213</div></div>
<div class="ttc" id="alru__cache_8cpp_html_a4b02e288a407876a8d6024f98a2a25ec"><div class="ttname"><a href="../../d3/db3/lru__cache_8cpp.html#a4b02e288a407876a8d6024f98a2a25ec">lru_tests::test_2</a></div><div class="ttdeci">static void test_2()</div><div class="ttdoc">A test case contains hits more than cache size The assert statement will check expected hist and miss...</div><div class="ttdef"><b>Definition:</b> lru_cache.cpp:186</div></div>
@@ -308,7 +308,7 @@ Here is the call graph for this function:</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="../../d3/db3/lru__cache_8cpp_a6a3be6d8871b1f5dc03688da8f3ee9e6_cgraph.svg" width="530" height="211"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../d3/db3/lru__cache_8cpp_a6a3be6d8871b1f5dc03688da8f3ee9e6_cgraph.svg" width="100%" height="600"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
@@ -339,30 +339,30 @@ Here is the call graph for this function:</div>
<p>A simple test case The assert statement will check expected hist and miss to resultant hits and miss. </p>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
<div class="fragment"><div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> {</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> uint64_t expected_hits = 2;</div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> uint64_t expected_pageFault = 4;</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> </div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(<span class="stringliteral">&quot;Running Test-1...&quot;</span>);</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> </div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> <a class="code hl_class" href="../../d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html">others::lru_cache::LRUCache</a> cache(4);</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> cache.refer(1);</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> cache.refer(2);</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> cache.refer(5);</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> cache.refer(1);</div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> cache.refer(4);</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> cache.refer(5);</div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> </div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(<span class="stringliteral">&quot;Checking assert statement...&quot;</span>);</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> assert(cache.getHits() == expected_hits &amp;&amp;</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> cache.getPageFault() == expected_pageFault);</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(<span class="stringliteral">&quot;Assert successful!&quot;</span>);</div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(<span class="stringliteral">&quot;Test-1 complete!&quot;</span>);</div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span>}</div>
<div class="fragment"><div class="line"><span class="lineno"> 159</span> {</div>
<div class="line"><span class="lineno"> 160</span> uint64_t expected_hits = 2;</div>
<div class="line"><span class="lineno"> 161</span> uint64_t expected_pageFault = 4;</div>
<div class="line"><span class="lineno"> 162</span> </div>
<div class="line"><span class="lineno"> 163</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(<span class="stringliteral">&quot;Running Test-1...&quot;</span>);</div>
<div class="line"><span class="lineno"> 164</span> </div>
<div class="line"><span class="lineno"> 165</span> <a class="code hl_class" href="../../d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html">others::lru_cache::LRUCache</a> cache(4);</div>
<div class="line"><span class="lineno"> 166</span> cache.refer(1);</div>
<div class="line"><span class="lineno"> 167</span> cache.refer(2);</div>
<div class="line"><span class="lineno"> 168</span> cache.refer(5);</div>
<div class="line"><span class="lineno"> 169</span> cache.refer(1);</div>
<div class="line"><span class="lineno"> 170</span> cache.refer(4);</div>
<div class="line"><span class="lineno"> 171</span> cache.refer(5);</div>
<div class="line"><span class="lineno"> 172</span> </div>
<div class="line"><span class="lineno"> 173</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(<span class="stringliteral">&quot;Checking assert statement...&quot;</span>);</div>
<div class="line"><span class="lineno"> 174</span> assert(cache.getHits() == expected_hits &amp;&amp;</div>
<div class="line"><span class="lineno"> 175</span> cache.getPageFault() == expected_pageFault);</div>
<div class="line"><span class="lineno"> 176</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(<span class="stringliteral">&quot;Assert successful!&quot;</span>);</div>
<div class="line"><span class="lineno"> 177</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(<span class="stringliteral">&quot;Test-1 complete!&quot;</span>);</div>
<div class="line"><span class="lineno"> 178</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="../../d3/db3/lru__cache_8cpp_a6401e8f2d41d8cc9cd0e52ab381608d4_cgraph.svg" width="347" height="183"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d3/db3/lru__cache_8cpp_a6401e8f2d41d8cc9cd0e52ab381608d4_cgraph.svg" width="562" height="475"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
@@ -393,30 +393,30 @@ Here is the call graph for this function:</div>
<p>A test case contains hits more than cache size The assert statement will check expected hist and miss to resultant hits and miss. </p>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
<div class="fragment"><div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> {</div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> uint64_t expected_hits = 4;</div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> uint64_t expected_pageFault = 2;</div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> </div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(<span class="stringliteral">&quot;Running Test-2...&quot;</span>);</div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> </div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> <a class="code hl_class" href="../../d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html">others::lru_cache::LRUCache</a> cache(4);</div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> cache.refer(1);</div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> cache.refer(1);</div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> cache.refer(1);</div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> cache.refer(1);</div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> cache.refer(1);</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> cache.refer(5);</div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> </div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(<span class="stringliteral">&quot;Checking assert statement...&quot;</span>);</div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span> assert(cache.getHits() == expected_hits &amp;&amp;</div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> cache.getPageFault() == expected_pageFault);</div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(<span class="stringliteral">&quot;Assert successful!&quot;</span>);</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(<span class="stringliteral">&quot;Test-2 complete!&quot;</span>);</div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span>}</div>
<div class="fragment"><div class="line"><span class="lineno"> 186</span> {</div>
<div class="line"><span class="lineno"> 187</span> uint64_t expected_hits = 4;</div>
<div class="line"><span class="lineno"> 188</span> uint64_t expected_pageFault = 2;</div>
<div class="line"><span class="lineno"> 189</span> </div>
<div class="line"><span class="lineno"> 190</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(<span class="stringliteral">&quot;Running Test-2...&quot;</span>);</div>
<div class="line"><span class="lineno"> 191</span> </div>
<div class="line"><span class="lineno"> 192</span> <a class="code hl_class" href="../../d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html">others::lru_cache::LRUCache</a> cache(4);</div>
<div class="line"><span class="lineno"> 193</span> cache.refer(1);</div>
<div class="line"><span class="lineno"> 194</span> cache.refer(1);</div>
<div class="line"><span class="lineno"> 195</span> cache.refer(1);</div>
<div class="line"><span class="lineno"> 196</span> cache.refer(1);</div>
<div class="line"><span class="lineno"> 197</span> cache.refer(1);</div>
<div class="line"><span class="lineno"> 198</span> cache.refer(5);</div>
<div class="line"><span class="lineno"> 199</span> </div>
<div class="line"><span class="lineno"> 200</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(<span class="stringliteral">&quot;Checking assert statement...&quot;</span>);</div>
<div class="line"><span class="lineno"> 201</span> assert(cache.getHits() == expected_hits &amp;&amp;</div>
<div class="line"><span class="lineno"> 202</span> cache.getPageFault() == expected_pageFault);</div>
<div class="line"><span class="lineno"> 203</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(<span class="stringliteral">&quot;Assert successful!&quot;</span>);</div>
<div class="line"><span class="lineno"> 204</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(<span class="stringliteral">&quot;Test-2 complete!&quot;</span>);</div>
<div class="line"><span class="lineno"> 205</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="../../d3/db3/lru__cache_8cpp_a4b02e288a407876a8d6024f98a2a25ec_cgraph.svg" width="347" height="183"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d3/db3/lru__cache_8cpp_a4b02e288a407876a8d6024f98a2a25ec_cgraph.svg" width="562" height="475"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
@@ -447,30 +447,30 @@ Here is the call graph for this function:</div>
<p>A simple test case The assert statement will check expected hist and miss to resultant hits and miss. </p>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
<div class="fragment"><div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span> {</div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> uint64_t expected_hits = 1;</div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span> uint64_t expected_pageFault = 5;</div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> </div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(<span class="stringliteral">&quot;Running Test-3...&quot;</span>);</div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> </div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> <a class="code hl_class" href="../../d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html">others::lru_cache::LRUCache</a> cache(4);</div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> cache.refer(1);</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> cache.refer(2);</div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> cache.refer(3);</div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span> cache.refer(4);</div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span> cache.refer(5);</div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> cache.refer(5);</div>
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span> </div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(<span class="stringliteral">&quot;Checking assert statement...&quot;</span>);</div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> assert(cache.getHits() == expected_hits &amp;&amp;</div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span> cache.getPageFault() == expected_pageFault);</div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(<span class="stringliteral">&quot;Assert successful!&quot;</span>);</div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(<span class="stringliteral">&quot;Test-3 complete!&quot;</span>);</div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"> 232</span>}</div>
<div class="fragment"><div class="line"><span class="lineno"> 213</span> {</div>
<div class="line"><span class="lineno"> 214</span> uint64_t expected_hits = 1;</div>
<div class="line"><span class="lineno"> 215</span> uint64_t expected_pageFault = 5;</div>
<div class="line"><span class="lineno"> 216</span> </div>
<div class="line"><span class="lineno"> 217</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(<span class="stringliteral">&quot;Running Test-3...&quot;</span>);</div>
<div class="line"><span class="lineno"> 218</span> </div>
<div class="line"><span class="lineno"> 219</span> <a class="code hl_class" href="../../d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html">others::lru_cache::LRUCache</a> cache(4);</div>
<div class="line"><span class="lineno"> 220</span> cache.refer(1);</div>
<div class="line"><span class="lineno"> 221</span> cache.refer(2);</div>
<div class="line"><span class="lineno"> 222</span> cache.refer(3);</div>
<div class="line"><span class="lineno"> 223</span> cache.refer(4);</div>
<div class="line"><span class="lineno"> 224</span> cache.refer(5);</div>
<div class="line"><span class="lineno"> 225</span> cache.refer(5);</div>
<div class="line"><span class="lineno"> 226</span> </div>
<div class="line"><span class="lineno"> 227</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(<span class="stringliteral">&quot;Checking assert statement...&quot;</span>);</div>
<div class="line"><span class="lineno"> 228</span> assert(cache.getHits() == expected_hits &amp;&amp;</div>
<div class="line"><span class="lineno"> 229</span> cache.getPageFault() == expected_pageFault);</div>
<div class="line"><span class="lineno"> 230</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(<span class="stringliteral">&quot;Assert successful!&quot;</span>);</div>
<div class="line"><span class="lineno"> 231</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(<span class="stringliteral">&quot;Test-3 complete!&quot;</span>);</div>
<div class="line"><span class="lineno"> 232</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="../../d3/db3/lru__cache_8cpp_a01ec21fc91ddafd964ae2035ba7892c0_cgraph.svg" width="347" height="183"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d3/db3/lru__cache_8cpp_a01ec21fc91ddafd964ae2035ba7892c0_cgraph.svg" width="562" height="475"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
@@ -482,7 +482,7 @@ Here is the call graph for this function:</div>
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="../../dir_9510827d0b234b3cc54b29892f217477.html">others</a></li><li class="navelem"><a class="el" href="../../d3/db3/lru__cache_8cpp.html">lru_cache.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.2 </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.3 </li>
</ul>
</div>
</body>

View File

@@ -1,6 +1,15 @@
<map id="lru_tests::test_3" name="lru_tests::test_3">
<area shape="rect" id="node1" title="A simple test case The assert statement will check expected hist and miss to resultant hits and miss." alt="" coords="5,78,121,105"/>
<area shape="rect" id="node2" href="$d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#aa24a141455b9fbcbec22392c28d04933" title="A function to get page hits." alt="" coords="187,5,324,47"/>
<area shape="rect" id="node3" href="$d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a78be932dac71c90f485a67d4fda877e2" title="A function to get page fault." alt="" coords="169,71,341,112"/>
<area shape="rect" id="node4" href="$d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a7dbf04bf7e1472c48639694f0b110602" title="Refer to a page, or request a page from memory." alt="" coords="190,136,321,177"/>
<area shape="rect" id="node1" title="A simple test case The assert statement will check expected hist and miss to resultant hits and miss." alt="" coords="5,159,121,185"/>
<area shape="rect" id="node2" href="$d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#aa24a141455b9fbcbec22392c28d04933" title="A function to get page hits." alt="" coords="187,86,324,127"/>
<area shape="rect" id="node3" href="$d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a78be932dac71c90f485a67d4fda877e2" title="A function to get page fault." alt="" coords="169,151,341,193"/>
<area shape="rect" id="node4" href="$d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a7dbf04bf7e1472c48639694f0b110602" title="Refer to a page, or request a page from memory." alt="" coords="190,217,321,258"/>
<area shape="rect" id="node5" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/back#" title=" " alt="" coords="422,5,523,32"/>
<area shape="rect" id="node6" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/begin#" title=" " alt="" coords="421,56,525,83"/>
<area shape="rect" id="node7" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/unordered_map/end#" title=" " alt="" coords="389,107,556,133"/>
<area shape="rect" id="node8" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/unordered_map/erase#" title=" " alt="" coords="404,158,541,199"/>
<area shape="rect" id="node9" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/erase#" title=" " alt="" coords="420,224,525,251"/>
<area shape="rect" id="node10" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/unordered_map/find#" title=" " alt="" coords="404,275,541,317"/>
<area shape="rect" id="node11" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/pop_back#" title=" " alt="" coords="408,341,537,368"/>
<area shape="rect" id="node12" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/push_front#" title=" " alt="" coords="405,392,540,419"/>
<area shape="rect" id="node13" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/size#" title=" " alt="" coords="424,443,521,469"/>
</map>

View File

@@ -1 +1 @@
65525c5fa30de163c306d61b154ea3a2
4f6661c313a792afad93b1a5ef3b8af9

View File

@@ -4,73 +4,210 @@
<!-- Generated by graphviz version 2.50.0 (20211204.2007)
-->
<!-- Title: lru_tests::test_3 Pages: 1 -->
<svg width="260pt" height="137pt"
viewBox="0.00 0.00 260.00 137.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 133)">
<svg width="421pt" height="356pt"
viewBox="0.00 0.00 421.00 356.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 352)">
<title>lru_tests::test_3</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-133 256,-133 256,4 -4,4"/>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-352 417,-352 417,4 -4,4"/>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="A simple test case The assert statement will check expected hist and miss to resultant hits and miss.">
<polygon fill="#bfbfbf" stroke="black" points="0,-55 0,-74 87,-74 87,-55 0,-55"/>
<text text-anchor="middle" x="43.5" y="-62" font-family="Helvetica,sans-Serif" font-size="10.00">lru_tests::test_3</text>
<polygon fill="#bfbfbf" stroke="black" points="0,-213.5 0,-232.5 87,-232.5 87,-213.5 0,-213.5"/>
<text text-anchor="middle" x="43.5" y="-220.5" font-family="Helvetica,sans-Serif" font-size="10.00">lru_tests::test_3</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node1 -->
<g id="edge4" class="edge">
<g id="edge13" class="edge">
<title>Node1&#45;&gt;Node1</title>
<path fill="none" stroke="midnightblue" d="M21.31,-74.26C10.51,-83.07 17.91,-92.5 43.5,-92.5 60.3,-92.5 69.26,-88.44 70.38,-83.15"/>
<polygon fill="midnightblue" stroke="midnightblue" points="73.45,-81.47 65.69,-74.26 67.26,-84.74 73.45,-81.47"/>
<path fill="none" stroke="midnightblue" d="M21.31,-232.76C10.51,-241.57 17.91,-251 43.5,-251 60.3,-251 69.26,-246.94 70.38,-241.65"/>
<polygon fill="midnightblue" stroke="midnightblue" points="73.45,-239.97 65.69,-232.76 67.26,-243.24 73.45,-239.97"/>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#aa24a141455b9fbcbec22392c28d04933" target="_top" xlink:title="A function to get page hits.">
<polygon fill="white" stroke="black" points="136,-98.5 136,-128.5 239,-128.5 239,-98.5 136,-98.5"/>
<text text-anchor="start" x="144" y="-116.5" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="187.5" y="-105.5" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::getHits</text>
<polygon fill="white" stroke="black" points="136,-257 136,-287 239,-287 239,-257 136,-257"/>
<text text-anchor="start" x="144" y="-275" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="187.5" y="-264" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::getHits</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M72.22,-74.06C89.57,-80.05 112.49,-87.96 133.25,-95.13"/>
<polygon fill="midnightblue" stroke="midnightblue" points="132.33,-98.51 142.92,-98.46 134.61,-91.89 132.33,-98.51"/>
<path fill="none" stroke="midnightblue" d="M72.22,-232.56C89.57,-238.55 112.49,-246.46 133.25,-253.63"/>
<polygon fill="midnightblue" stroke="midnightblue" points="132.33,-257.01 142.92,-256.96 134.61,-250.39 132.33,-257.01"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a xlink:href="../../d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a78be932dac71c90f485a67d4fda877e2" target="_top" xlink:title="A function to get page fault.">
<polygon fill="white" stroke="black" points="123,-49.5 123,-79.5 252,-79.5 252,-49.5 123,-49.5"/>
<text text-anchor="start" x="131" y="-67.5" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="187.5" y="-56.5" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::getPageFault</text>
<polygon fill="white" stroke="black" points="123,-208 123,-238 252,-238 252,-208 123,-208"/>
<text text-anchor="start" x="131" y="-226" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="187.5" y="-215" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::getPageFault</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge2" class="edge">
<title>Node1&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M87.1,-64.5C95.21,-64.5 103.9,-64.5 112.65,-64.5"/>
<polygon fill="midnightblue" stroke="midnightblue" points="112.92,-68 122.92,-64.5 112.92,-61 112.92,-68"/>
<path fill="none" stroke="midnightblue" d="M87.1,-223C95.21,-223 103.9,-223 112.65,-223"/>
<polygon fill="midnightblue" stroke="midnightblue" points="112.92,-226.5 122.92,-223 112.92,-219.5 112.92,-226.5"/>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a xlink:href="../../d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a7dbf04bf7e1472c48639694f0b110602" target="_top" xlink:title="Refer to a page, or request a page from memory.">
<polygon fill="white" stroke="black" points="138.5,-0.5 138.5,-30.5 236.5,-30.5 236.5,-0.5 138.5,-0.5"/>
<text text-anchor="start" x="146.5" y="-18.5" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="187.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::refer</text>
<polygon fill="white" stroke="black" points="138.5,-159 138.5,-189 236.5,-189 236.5,-159 138.5,-159"/>
<text text-anchor="start" x="146.5" y="-177" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="187.5" y="-166" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::refer</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<g id="edge3" class="edge">
<title>Node1&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M72.22,-54.94C89.57,-48.95 112.49,-41.04 133.25,-33.87"/>
<polygon fill="midnightblue" stroke="midnightblue" points="134.61,-37.11 142.92,-30.54 132.33,-30.49 134.61,-37.11"/>
<path fill="none" stroke="midnightblue" d="M72.22,-213.44C89.57,-207.45 112.49,-199.54 133.25,-192.37"/>
<polygon fill="midnightblue" stroke="midnightblue" points="134.61,-195.61 142.92,-189.04 132.33,-188.99 134.61,-195.61"/>
</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/list/back#" xlink:title=" ">
<polygon fill="white" stroke="black" points="312.5,-328.5 312.5,-347.5 388.5,-347.5 388.5,-328.5 312.5,-328.5"/>
<text text-anchor="middle" x="350.5" y="-335.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::back</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node5 -->
<g id="edge4" class="edge">
<title>Node4&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M236.63,-187.34C242.34,-190.46 247.67,-194.29 252,-199 289.69,-239.98 248.79,-279.47 288,-319 292.23,-323.27 297.41,-326.58 302.93,-329.16"/>
<polygon fill="midnightblue" stroke="midnightblue" points="301.88,-332.5 312.47,-332.82 304.39,-325.97 301.88,-332.5"/>
</g>
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/begin#" xlink:title=" ">
<polygon fill="white" stroke="black" points="311.5,-290.5 311.5,-309.5 389.5,-309.5 389.5,-290.5 311.5,-290.5"/>
<text text-anchor="middle" x="350.5" y="-297.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::begin</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node6 -->
<g id="edge5" class="edge">
<title>Node4&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M236.75,-188.19C242.3,-191.16 247.56,-194.73 252,-199 280.68,-226.6 258.3,-254.51 288,-281 292.12,-284.67 296.93,-287.64 302.03,-290.03"/>
<polygon fill="midnightblue" stroke="midnightblue" points="300.82,-293.31 311.4,-293.74 303.4,-286.8 300.82,-293.31"/>
</g>
<!-- Node7 -->
<g id="node7" class="node">
<title>Node7</title>
<g id="a_node7"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_map/end#" xlink:title=" ">
<polygon fill="white" stroke="black" points="288,-252.5 288,-271.5 413,-271.5 413,-252.5 288,-252.5"/>
<text text-anchor="middle" x="350.5" y="-259.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_map::end</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node7 -->
<g id="edge6" class="edge">
<title>Node4&#45;&gt;Node7</title>
<path fill="none" stroke="midnightblue" d="M235.06,-189.09C241.02,-191.94 246.83,-195.23 252,-199 272.42,-213.89 267.04,-228.89 288,-243 291.05,-245.06 294.34,-246.9 297.75,-248.54"/>
<polygon fill="midnightblue" stroke="midnightblue" points="296.41,-251.78 306.98,-252.47 299.14,-245.33 296.41,-251.78"/>
</g>
<!-- Node8 -->
<g id="node8" class="node">
<title>Node8</title>
<g id="a_node8"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_map/erase#" xlink:title=" ">
<polygon fill="white" stroke="black" points="299,-203 299,-233 402,-233 402,-203 299,-203"/>
<text text-anchor="start" x="307" y="-221" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_map</text>
<text text-anchor="middle" x="350.5" y="-210" font-family="Helvetica,sans-Serif" font-size="10.00">::erase</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node8 -->
<g id="edge7" class="edge">
<title>Node4&#45;&gt;Node8</title>
<path fill="none" stroke="midnightblue" d="M236.81,-187.2C253.22,-191.69 271.77,-196.76 289.02,-201.47"/>
<polygon fill="midnightblue" stroke="midnightblue" points="288.42,-204.94 298.99,-204.2 290.27,-198.18 288.42,-204.94"/>
</g>
<!-- Node9 -->
<g id="node9" class="node">
<title>Node9</title>
<g id="a_node9"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/erase#" xlink:title=" ">
<polygon fill="white" stroke="black" points="311,-164.5 311,-183.5 390,-183.5 390,-164.5 311,-164.5"/>
<text text-anchor="middle" x="350.5" y="-171.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::erase</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node9 -->
<g id="edge8" class="edge">
<title>Node4&#45;&gt;Node9</title>
<path fill="none" stroke="midnightblue" d="M236.81,-174C257,-174 280.43,-174 300.67,-174"/>
<polygon fill="midnightblue" stroke="midnightblue" points="300.94,-177.5 310.94,-174 300.94,-170.5 300.94,-177.5"/>
</g>
<!-- Node10 -->
<g id="node10" class="node">
<title>Node10</title>
<g id="a_node10"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_map/find#" xlink:title=" ">
<polygon fill="white" stroke="black" points="299,-115 299,-145 402,-145 402,-115 299,-115"/>
<text text-anchor="start" x="307" y="-133" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_map</text>
<text text-anchor="middle" x="350.5" y="-122" font-family="Helvetica,sans-Serif" font-size="10.00">::find</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node10 -->
<g id="edge9" class="edge">
<title>Node4&#45;&gt;Node10</title>
<path fill="none" stroke="midnightblue" d="M236.81,-160.8C253.22,-156.31 271.77,-151.24 289.02,-146.53"/>
<polygon fill="midnightblue" stroke="midnightblue" points="290.27,-149.82 298.99,-143.8 288.42,-143.06 290.27,-149.82"/>
</g>
<!-- Node11 -->
<g id="node11" class="node">
<title>Node11</title>
<g id="a_node11"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/pop_back#" xlink:title=" ">
<polygon fill="white" stroke="black" points="302,-76.5 302,-95.5 399,-95.5 399,-76.5 302,-76.5"/>
<text text-anchor="middle" x="350.5" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::pop_back</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node11 -->
<g id="edge10" class="edge">
<title>Node4&#45;&gt;Node11</title>
<path fill="none" stroke="midnightblue" d="M206.95,-159C226.21,-143.93 257.77,-120.86 288,-106 293.29,-103.4 299,-101.02 304.74,-98.89"/>
<polygon fill="midnightblue" stroke="midnightblue" points="306.05,-102.13 314.34,-95.53 303.74,-95.53 306.05,-102.13"/>
</g>
<!-- Node12 -->
<g id="node12" class="node">
<title>Node12</title>
<g id="a_node12"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/push_front#" xlink:title=" ">
<polygon fill="white" stroke="black" points="300,-38.5 300,-57.5 401,-57.5 401,-38.5 300,-38.5"/>
<text text-anchor="middle" x="350.5" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::push_front</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node12 -->
<g id="edge11" class="edge">
<title>Node4&#45;&gt;Node12</title>
<path fill="none" stroke="midnightblue" d="M198.57,-158.88C214.73,-135.76 248.69,-91.68 288,-67 291.31,-64.92 294.87,-63.05 298.54,-61.38"/>
<polygon fill="midnightblue" stroke="midnightblue" points="299.88,-64.62 307.83,-57.61 297.25,-58.13 299.88,-64.62"/>
</g>
<!-- Node13 -->
<g id="node13" class="node">
<title>Node13</title>
<g id="a_node13"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/size#" xlink:title=" ">
<polygon fill="white" stroke="black" points="314,-0.5 314,-19.5 387,-19.5 387,-0.5 314,-0.5"/>
<text text-anchor="middle" x="350.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::size</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node13 -->
<g id="edge12" class="edge">
<title>Node4&#45;&gt;Node13</title>
<path fill="none" stroke="midnightblue" d="M194.79,-158.78C207.75,-129.28 240.3,-64.11 288,-29 292.84,-25.44 298.37,-22.53 304.07,-20.16"/>
<polygon fill="midnightblue" stroke="midnightblue" points="305.54,-23.36 313.76,-16.67 303.16,-16.77 305.54,-23.36"/>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

@@ -1,4 +1,4 @@
<map id="lru_tests::log" name="lru_tests::log">
<area shape="rect" id="node1" title="A function to print given message on console." alt="" coords="5,5,103,32"/>
<area shape="rect" id="node2" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/io/manip/endl.html#" title=" " alt="" coords="151,5,223,32"/>
<area shape="rect" id="node2" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/io/manip/endl#" title=" " alt="" coords="151,5,223,32"/>
</map>

View File

@@ -1 +1 @@
e149af01456297f376234d136b796dc9
e15616b285e0a15828eb691190651534

View File

@@ -21,7 +21,7 @@
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/io/manip/endl.html#" xlink:title=" ">
<g id="a_node2"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/io/manip/endl#" xlink:title=" ">
<polygon fill="white" stroke="black" points="109,-0.5 109,-19.5 163,-19.5 163,-0.5 109,-0.5"/>
<text text-anchor="middle" x="136" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::endl</text>
</a>

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@@ -1,6 +1,15 @@
<map id="lru_tests::test_2" name="lru_tests::test_2">
<area shape="rect" id="node1" title="A test case contains hits more than cache size The assert statement will check expected hist and miss..." alt="" coords="5,78,121,105"/>
<area shape="rect" id="node2" href="$d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#aa24a141455b9fbcbec22392c28d04933" title="A function to get page hits." alt="" coords="187,5,324,47"/>
<area shape="rect" id="node3" href="$d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a78be932dac71c90f485a67d4fda877e2" title="A function to get page fault." alt="" coords="169,71,341,112"/>
<area shape="rect" id="node4" href="$d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a7dbf04bf7e1472c48639694f0b110602" title="Refer to a page, or request a page from memory." alt="" coords="190,136,321,177"/>
<area shape="rect" id="node1" title="A test case contains hits more than cache size The assert statement will check expected hist and miss..." alt="" coords="5,159,121,185"/>
<area shape="rect" id="node2" href="$d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#aa24a141455b9fbcbec22392c28d04933" title="A function to get page hits." alt="" coords="187,86,324,127"/>
<area shape="rect" id="node3" href="$d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a78be932dac71c90f485a67d4fda877e2" title="A function to get page fault." alt="" coords="169,151,341,193"/>
<area shape="rect" id="node4" href="$d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a7dbf04bf7e1472c48639694f0b110602" title="Refer to a page, or request a page from memory." alt="" coords="190,217,321,258"/>
<area shape="rect" id="node5" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/back#" title=" " alt="" coords="422,5,523,32"/>
<area shape="rect" id="node6" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/begin#" title=" " alt="" coords="421,56,525,83"/>
<area shape="rect" id="node7" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/unordered_map/end#" title=" " alt="" coords="389,107,556,133"/>
<area shape="rect" id="node8" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/unordered_map/erase#" title=" " alt="" coords="404,158,541,199"/>
<area shape="rect" id="node9" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/erase#" title=" " alt="" coords="420,224,525,251"/>
<area shape="rect" id="node10" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/unordered_map/find#" title=" " alt="" coords="404,275,541,317"/>
<area shape="rect" id="node11" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/pop_back#" title=" " alt="" coords="408,341,537,368"/>
<area shape="rect" id="node12" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/push_front#" title=" " alt="" coords="405,392,540,419"/>
<area shape="rect" id="node13" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/size#" title=" " alt="" coords="424,443,521,469"/>
</map>

View File

@@ -1 +1 @@
c3dd3d398d9b5d8af8cea0ae6b052e9c
a0bdd4937d8ecb21aec668dc3eecffda

View File

@@ -4,73 +4,210 @@
<!-- Generated by graphviz version 2.50.0 (20211204.2007)
-->
<!-- Title: lru_tests::test_2 Pages: 1 -->
<svg width="260pt" height="137pt"
viewBox="0.00 0.00 260.00 137.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 133)">
<svg width="421pt" height="356pt"
viewBox="0.00 0.00 421.00 356.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 352)">
<title>lru_tests::test_2</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-133 256,-133 256,4 -4,4"/>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-352 417,-352 417,4 -4,4"/>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="A test case contains hits more than cache size The assert statement will check expected hist and miss...">
<polygon fill="#bfbfbf" stroke="black" points="0,-55 0,-74 87,-74 87,-55 0,-55"/>
<text text-anchor="middle" x="43.5" y="-62" font-family="Helvetica,sans-Serif" font-size="10.00">lru_tests::test_2</text>
<polygon fill="#bfbfbf" stroke="black" points="0,-213.5 0,-232.5 87,-232.5 87,-213.5 0,-213.5"/>
<text text-anchor="middle" x="43.5" y="-220.5" font-family="Helvetica,sans-Serif" font-size="10.00">lru_tests::test_2</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node1 -->
<g id="edge4" class="edge">
<g id="edge13" class="edge">
<title>Node1&#45;&gt;Node1</title>
<path fill="none" stroke="midnightblue" d="M21.31,-74.26C10.51,-83.07 17.91,-92.5 43.5,-92.5 60.3,-92.5 69.26,-88.44 70.38,-83.15"/>
<polygon fill="midnightblue" stroke="midnightblue" points="73.45,-81.47 65.69,-74.26 67.26,-84.74 73.45,-81.47"/>
<path fill="none" stroke="midnightblue" d="M21.31,-232.76C10.51,-241.57 17.91,-251 43.5,-251 60.3,-251 69.26,-246.94 70.38,-241.65"/>
<polygon fill="midnightblue" stroke="midnightblue" points="73.45,-239.97 65.69,-232.76 67.26,-243.24 73.45,-239.97"/>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#aa24a141455b9fbcbec22392c28d04933" target="_top" xlink:title="A function to get page hits.">
<polygon fill="white" stroke="black" points="136,-98.5 136,-128.5 239,-128.5 239,-98.5 136,-98.5"/>
<text text-anchor="start" x="144" y="-116.5" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="187.5" y="-105.5" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::getHits</text>
<polygon fill="white" stroke="black" points="136,-257 136,-287 239,-287 239,-257 136,-257"/>
<text text-anchor="start" x="144" y="-275" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="187.5" y="-264" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::getHits</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M72.22,-74.06C89.57,-80.05 112.49,-87.96 133.25,-95.13"/>
<polygon fill="midnightblue" stroke="midnightblue" points="132.33,-98.51 142.92,-98.46 134.61,-91.89 132.33,-98.51"/>
<path fill="none" stroke="midnightblue" d="M72.22,-232.56C89.57,-238.55 112.49,-246.46 133.25,-253.63"/>
<polygon fill="midnightblue" stroke="midnightblue" points="132.33,-257.01 142.92,-256.96 134.61,-250.39 132.33,-257.01"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a xlink:href="../../d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a78be932dac71c90f485a67d4fda877e2" target="_top" xlink:title="A function to get page fault.">
<polygon fill="white" stroke="black" points="123,-49.5 123,-79.5 252,-79.5 252,-49.5 123,-49.5"/>
<text text-anchor="start" x="131" y="-67.5" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="187.5" y="-56.5" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::getPageFault</text>
<polygon fill="white" stroke="black" points="123,-208 123,-238 252,-238 252,-208 123,-208"/>
<text text-anchor="start" x="131" y="-226" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="187.5" y="-215" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::getPageFault</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge2" class="edge">
<title>Node1&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M87.1,-64.5C95.21,-64.5 103.9,-64.5 112.65,-64.5"/>
<polygon fill="midnightblue" stroke="midnightblue" points="112.92,-68 122.92,-64.5 112.92,-61 112.92,-68"/>
<path fill="none" stroke="midnightblue" d="M87.1,-223C95.21,-223 103.9,-223 112.65,-223"/>
<polygon fill="midnightblue" stroke="midnightblue" points="112.92,-226.5 122.92,-223 112.92,-219.5 112.92,-226.5"/>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a xlink:href="../../d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a7dbf04bf7e1472c48639694f0b110602" target="_top" xlink:title="Refer to a page, or request a page from memory.">
<polygon fill="white" stroke="black" points="138.5,-0.5 138.5,-30.5 236.5,-30.5 236.5,-0.5 138.5,-0.5"/>
<text text-anchor="start" x="146.5" y="-18.5" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="187.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::refer</text>
<polygon fill="white" stroke="black" points="138.5,-159 138.5,-189 236.5,-189 236.5,-159 138.5,-159"/>
<text text-anchor="start" x="146.5" y="-177" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="187.5" y="-166" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::refer</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<g id="edge3" class="edge">
<title>Node1&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M72.22,-54.94C89.57,-48.95 112.49,-41.04 133.25,-33.87"/>
<polygon fill="midnightblue" stroke="midnightblue" points="134.61,-37.11 142.92,-30.54 132.33,-30.49 134.61,-37.11"/>
<path fill="none" stroke="midnightblue" d="M72.22,-213.44C89.57,-207.45 112.49,-199.54 133.25,-192.37"/>
<polygon fill="midnightblue" stroke="midnightblue" points="134.61,-195.61 142.92,-189.04 132.33,-188.99 134.61,-195.61"/>
</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/list/back#" xlink:title=" ">
<polygon fill="white" stroke="black" points="312.5,-328.5 312.5,-347.5 388.5,-347.5 388.5,-328.5 312.5,-328.5"/>
<text text-anchor="middle" x="350.5" y="-335.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::back</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node5 -->
<g id="edge4" class="edge">
<title>Node4&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M236.63,-187.34C242.34,-190.46 247.67,-194.29 252,-199 289.69,-239.98 248.79,-279.47 288,-319 292.23,-323.27 297.41,-326.58 302.93,-329.16"/>
<polygon fill="midnightblue" stroke="midnightblue" points="301.88,-332.5 312.47,-332.82 304.39,-325.97 301.88,-332.5"/>
</g>
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/begin#" xlink:title=" ">
<polygon fill="white" stroke="black" points="311.5,-290.5 311.5,-309.5 389.5,-309.5 389.5,-290.5 311.5,-290.5"/>
<text text-anchor="middle" x="350.5" y="-297.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::begin</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node6 -->
<g id="edge5" class="edge">
<title>Node4&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M236.75,-188.19C242.3,-191.16 247.56,-194.73 252,-199 280.68,-226.6 258.3,-254.51 288,-281 292.12,-284.67 296.93,-287.64 302.03,-290.03"/>
<polygon fill="midnightblue" stroke="midnightblue" points="300.82,-293.31 311.4,-293.74 303.4,-286.8 300.82,-293.31"/>
</g>
<!-- Node7 -->
<g id="node7" class="node">
<title>Node7</title>
<g id="a_node7"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_map/end#" xlink:title=" ">
<polygon fill="white" stroke="black" points="288,-252.5 288,-271.5 413,-271.5 413,-252.5 288,-252.5"/>
<text text-anchor="middle" x="350.5" y="-259.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_map::end</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node7 -->
<g id="edge6" class="edge">
<title>Node4&#45;&gt;Node7</title>
<path fill="none" stroke="midnightblue" d="M235.06,-189.09C241.02,-191.94 246.83,-195.23 252,-199 272.42,-213.89 267.04,-228.89 288,-243 291.05,-245.06 294.34,-246.9 297.75,-248.54"/>
<polygon fill="midnightblue" stroke="midnightblue" points="296.41,-251.78 306.98,-252.47 299.14,-245.33 296.41,-251.78"/>
</g>
<!-- Node8 -->
<g id="node8" class="node">
<title>Node8</title>
<g id="a_node8"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_map/erase#" xlink:title=" ">
<polygon fill="white" stroke="black" points="299,-203 299,-233 402,-233 402,-203 299,-203"/>
<text text-anchor="start" x="307" y="-221" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_map</text>
<text text-anchor="middle" x="350.5" y="-210" font-family="Helvetica,sans-Serif" font-size="10.00">::erase</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node8 -->
<g id="edge7" class="edge">
<title>Node4&#45;&gt;Node8</title>
<path fill="none" stroke="midnightblue" d="M236.81,-187.2C253.22,-191.69 271.77,-196.76 289.02,-201.47"/>
<polygon fill="midnightblue" stroke="midnightblue" points="288.42,-204.94 298.99,-204.2 290.27,-198.18 288.42,-204.94"/>
</g>
<!-- Node9 -->
<g id="node9" class="node">
<title>Node9</title>
<g id="a_node9"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/erase#" xlink:title=" ">
<polygon fill="white" stroke="black" points="311,-164.5 311,-183.5 390,-183.5 390,-164.5 311,-164.5"/>
<text text-anchor="middle" x="350.5" y="-171.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::erase</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node9 -->
<g id="edge8" class="edge">
<title>Node4&#45;&gt;Node9</title>
<path fill="none" stroke="midnightblue" d="M236.81,-174C257,-174 280.43,-174 300.67,-174"/>
<polygon fill="midnightblue" stroke="midnightblue" points="300.94,-177.5 310.94,-174 300.94,-170.5 300.94,-177.5"/>
</g>
<!-- Node10 -->
<g id="node10" class="node">
<title>Node10</title>
<g id="a_node10"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_map/find#" xlink:title=" ">
<polygon fill="white" stroke="black" points="299,-115 299,-145 402,-145 402,-115 299,-115"/>
<text text-anchor="start" x="307" y="-133" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_map</text>
<text text-anchor="middle" x="350.5" y="-122" font-family="Helvetica,sans-Serif" font-size="10.00">::find</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node10 -->
<g id="edge9" class="edge">
<title>Node4&#45;&gt;Node10</title>
<path fill="none" stroke="midnightblue" d="M236.81,-160.8C253.22,-156.31 271.77,-151.24 289.02,-146.53"/>
<polygon fill="midnightblue" stroke="midnightblue" points="290.27,-149.82 298.99,-143.8 288.42,-143.06 290.27,-149.82"/>
</g>
<!-- Node11 -->
<g id="node11" class="node">
<title>Node11</title>
<g id="a_node11"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/pop_back#" xlink:title=" ">
<polygon fill="white" stroke="black" points="302,-76.5 302,-95.5 399,-95.5 399,-76.5 302,-76.5"/>
<text text-anchor="middle" x="350.5" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::pop_back</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node11 -->
<g id="edge10" class="edge">
<title>Node4&#45;&gt;Node11</title>
<path fill="none" stroke="midnightblue" d="M206.95,-159C226.21,-143.93 257.77,-120.86 288,-106 293.29,-103.4 299,-101.02 304.74,-98.89"/>
<polygon fill="midnightblue" stroke="midnightblue" points="306.05,-102.13 314.34,-95.53 303.74,-95.53 306.05,-102.13"/>
</g>
<!-- Node12 -->
<g id="node12" class="node">
<title>Node12</title>
<g id="a_node12"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/push_front#" xlink:title=" ">
<polygon fill="white" stroke="black" points="300,-38.5 300,-57.5 401,-57.5 401,-38.5 300,-38.5"/>
<text text-anchor="middle" x="350.5" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::push_front</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node12 -->
<g id="edge11" class="edge">
<title>Node4&#45;&gt;Node12</title>
<path fill="none" stroke="midnightblue" d="M198.57,-158.88C214.73,-135.76 248.69,-91.68 288,-67 291.31,-64.92 294.87,-63.05 298.54,-61.38"/>
<polygon fill="midnightblue" stroke="midnightblue" points="299.88,-64.62 307.83,-57.61 297.25,-58.13 299.88,-64.62"/>
</g>
<!-- Node13 -->
<g id="node13" class="node">
<title>Node13</title>
<g id="a_node13"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/size#" xlink:title=" ">
<polygon fill="white" stroke="black" points="314,-0.5 314,-19.5 387,-19.5 387,-0.5 314,-0.5"/>
<text text-anchor="middle" x="350.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::size</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node13 -->
<g id="edge12" class="edge">
<title>Node4&#45;&gt;Node13</title>
<path fill="none" stroke="midnightblue" d="M194.79,-158.78C207.75,-129.28 240.3,-64.11 288,-29 292.84,-25.44 298.37,-22.53 304.07,-20.16"/>
<polygon fill="midnightblue" stroke="midnightblue" points="305.54,-23.36 313.76,-16.67 303.16,-16.77 305.54,-23.36"/>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

@@ -1,6 +1,15 @@
<map id="lru_tests::test_1" name="lru_tests::test_1">
<area shape="rect" id="node1" title="A simple test case The assert statement will check expected hist and miss to resultant hits and miss." alt="" coords="5,78,121,105"/>
<area shape="rect" id="node2" href="$d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#aa24a141455b9fbcbec22392c28d04933" title="A function to get page hits." alt="" coords="187,5,324,47"/>
<area shape="rect" id="node3" href="$d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a78be932dac71c90f485a67d4fda877e2" title="A function to get page fault." alt="" coords="169,71,341,112"/>
<area shape="rect" id="node4" href="$d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a7dbf04bf7e1472c48639694f0b110602" title="Refer to a page, or request a page from memory." alt="" coords="190,136,321,177"/>
<area shape="rect" id="node1" title="A simple test case The assert statement will check expected hist and miss to resultant hits and miss." alt="" coords="5,159,121,185"/>
<area shape="rect" id="node2" href="$d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#aa24a141455b9fbcbec22392c28d04933" title="A function to get page hits." alt="" coords="187,86,324,127"/>
<area shape="rect" id="node3" href="$d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a78be932dac71c90f485a67d4fda877e2" title="A function to get page fault." alt="" coords="169,151,341,193"/>
<area shape="rect" id="node4" href="$d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a7dbf04bf7e1472c48639694f0b110602" title="Refer to a page, or request a page from memory." alt="" coords="190,217,321,258"/>
<area shape="rect" id="node5" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/back#" title=" " alt="" coords="422,5,523,32"/>
<area shape="rect" id="node6" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/begin#" title=" " alt="" coords="421,56,525,83"/>
<area shape="rect" id="node7" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/unordered_map/end#" title=" " alt="" coords="389,107,556,133"/>
<area shape="rect" id="node8" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/unordered_map/erase#" title=" " alt="" coords="404,158,541,199"/>
<area shape="rect" id="node9" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/erase#" title=" " alt="" coords="420,224,525,251"/>
<area shape="rect" id="node10" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/unordered_map/find#" title=" " alt="" coords="404,275,541,317"/>
<area shape="rect" id="node11" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/pop_back#" title=" " alt="" coords="408,341,537,368"/>
<area shape="rect" id="node12" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/push_front#" title=" " alt="" coords="405,392,540,419"/>
<area shape="rect" id="node13" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/size#" title=" " alt="" coords="424,443,521,469"/>
</map>

View File

@@ -1 +1 @@
90ae1eef551c71665763f0d09c540b3d
1dda5506113b63d7a6328abe407d43dc

View File

@@ -4,73 +4,210 @@
<!-- Generated by graphviz version 2.50.0 (20211204.2007)
-->
<!-- Title: lru_tests::test_1 Pages: 1 -->
<svg width="260pt" height="137pt"
viewBox="0.00 0.00 260.00 137.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 133)">
<svg width="421pt" height="356pt"
viewBox="0.00 0.00 421.00 356.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 352)">
<title>lru_tests::test_1</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-133 256,-133 256,4 -4,4"/>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-352 417,-352 417,4 -4,4"/>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="A simple test case The assert statement will check expected hist and miss to resultant hits and miss.">
<polygon fill="#bfbfbf" stroke="black" points="0,-55 0,-74 87,-74 87,-55 0,-55"/>
<text text-anchor="middle" x="43.5" y="-62" font-family="Helvetica,sans-Serif" font-size="10.00">lru_tests::test_1</text>
<polygon fill="#bfbfbf" stroke="black" points="0,-213.5 0,-232.5 87,-232.5 87,-213.5 0,-213.5"/>
<text text-anchor="middle" x="43.5" y="-220.5" font-family="Helvetica,sans-Serif" font-size="10.00">lru_tests::test_1</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node1 -->
<g id="edge4" class="edge">
<g id="edge13" class="edge">
<title>Node1&#45;&gt;Node1</title>
<path fill="none" stroke="midnightblue" d="M21.31,-74.26C10.51,-83.07 17.91,-92.5 43.5,-92.5 60.3,-92.5 69.26,-88.44 70.38,-83.15"/>
<polygon fill="midnightblue" stroke="midnightblue" points="73.45,-81.47 65.69,-74.26 67.26,-84.74 73.45,-81.47"/>
<path fill="none" stroke="midnightblue" d="M21.31,-232.76C10.51,-241.57 17.91,-251 43.5,-251 60.3,-251 69.26,-246.94 70.38,-241.65"/>
<polygon fill="midnightblue" stroke="midnightblue" points="73.45,-239.97 65.69,-232.76 67.26,-243.24 73.45,-239.97"/>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#aa24a141455b9fbcbec22392c28d04933" target="_top" xlink:title="A function to get page hits.">
<polygon fill="white" stroke="black" points="136,-98.5 136,-128.5 239,-128.5 239,-98.5 136,-98.5"/>
<text text-anchor="start" x="144" y="-116.5" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="187.5" y="-105.5" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::getHits</text>
<polygon fill="white" stroke="black" points="136,-257 136,-287 239,-287 239,-257 136,-257"/>
<text text-anchor="start" x="144" y="-275" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="187.5" y="-264" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::getHits</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M72.22,-74.06C89.57,-80.05 112.49,-87.96 133.25,-95.13"/>
<polygon fill="midnightblue" stroke="midnightblue" points="132.33,-98.51 142.92,-98.46 134.61,-91.89 132.33,-98.51"/>
<path fill="none" stroke="midnightblue" d="M72.22,-232.56C89.57,-238.55 112.49,-246.46 133.25,-253.63"/>
<polygon fill="midnightblue" stroke="midnightblue" points="132.33,-257.01 142.92,-256.96 134.61,-250.39 132.33,-257.01"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a xlink:href="../../d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a78be932dac71c90f485a67d4fda877e2" target="_top" xlink:title="A function to get page fault.">
<polygon fill="white" stroke="black" points="123,-49.5 123,-79.5 252,-79.5 252,-49.5 123,-49.5"/>
<text text-anchor="start" x="131" y="-67.5" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="187.5" y="-56.5" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::getPageFault</text>
<polygon fill="white" stroke="black" points="123,-208 123,-238 252,-238 252,-208 123,-208"/>
<text text-anchor="start" x="131" y="-226" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="187.5" y="-215" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::getPageFault</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge2" class="edge">
<title>Node1&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M87.1,-64.5C95.21,-64.5 103.9,-64.5 112.65,-64.5"/>
<polygon fill="midnightblue" stroke="midnightblue" points="112.92,-68 122.92,-64.5 112.92,-61 112.92,-68"/>
<path fill="none" stroke="midnightblue" d="M87.1,-223C95.21,-223 103.9,-223 112.65,-223"/>
<polygon fill="midnightblue" stroke="midnightblue" points="112.92,-226.5 122.92,-223 112.92,-219.5 112.92,-226.5"/>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a xlink:href="../../d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a7dbf04bf7e1472c48639694f0b110602" target="_top" xlink:title="Refer to a page, or request a page from memory.">
<polygon fill="white" stroke="black" points="138.5,-0.5 138.5,-30.5 236.5,-30.5 236.5,-0.5 138.5,-0.5"/>
<text text-anchor="start" x="146.5" y="-18.5" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="187.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::refer</text>
<polygon fill="white" stroke="black" points="138.5,-159 138.5,-189 236.5,-189 236.5,-159 138.5,-159"/>
<text text-anchor="start" x="146.5" y="-177" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="187.5" y="-166" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::refer</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<g id="edge3" class="edge">
<title>Node1&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M72.22,-54.94C89.57,-48.95 112.49,-41.04 133.25,-33.87"/>
<polygon fill="midnightblue" stroke="midnightblue" points="134.61,-37.11 142.92,-30.54 132.33,-30.49 134.61,-37.11"/>
<path fill="none" stroke="midnightblue" d="M72.22,-213.44C89.57,-207.45 112.49,-199.54 133.25,-192.37"/>
<polygon fill="midnightblue" stroke="midnightblue" points="134.61,-195.61 142.92,-189.04 132.33,-188.99 134.61,-195.61"/>
</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/list/back#" xlink:title=" ">
<polygon fill="white" stroke="black" points="312.5,-328.5 312.5,-347.5 388.5,-347.5 388.5,-328.5 312.5,-328.5"/>
<text text-anchor="middle" x="350.5" y="-335.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::back</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node5 -->
<g id="edge4" class="edge">
<title>Node4&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M236.63,-187.34C242.34,-190.46 247.67,-194.29 252,-199 289.69,-239.98 248.79,-279.47 288,-319 292.23,-323.27 297.41,-326.58 302.93,-329.16"/>
<polygon fill="midnightblue" stroke="midnightblue" points="301.88,-332.5 312.47,-332.82 304.39,-325.97 301.88,-332.5"/>
</g>
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/begin#" xlink:title=" ">
<polygon fill="white" stroke="black" points="311.5,-290.5 311.5,-309.5 389.5,-309.5 389.5,-290.5 311.5,-290.5"/>
<text text-anchor="middle" x="350.5" y="-297.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::begin</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node6 -->
<g id="edge5" class="edge">
<title>Node4&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M236.75,-188.19C242.3,-191.16 247.56,-194.73 252,-199 280.68,-226.6 258.3,-254.51 288,-281 292.12,-284.67 296.93,-287.64 302.03,-290.03"/>
<polygon fill="midnightblue" stroke="midnightblue" points="300.82,-293.31 311.4,-293.74 303.4,-286.8 300.82,-293.31"/>
</g>
<!-- Node7 -->
<g id="node7" class="node">
<title>Node7</title>
<g id="a_node7"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_map/end#" xlink:title=" ">
<polygon fill="white" stroke="black" points="288,-252.5 288,-271.5 413,-271.5 413,-252.5 288,-252.5"/>
<text text-anchor="middle" x="350.5" y="-259.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_map::end</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node7 -->
<g id="edge6" class="edge">
<title>Node4&#45;&gt;Node7</title>
<path fill="none" stroke="midnightblue" d="M235.06,-189.09C241.02,-191.94 246.83,-195.23 252,-199 272.42,-213.89 267.04,-228.89 288,-243 291.05,-245.06 294.34,-246.9 297.75,-248.54"/>
<polygon fill="midnightblue" stroke="midnightblue" points="296.41,-251.78 306.98,-252.47 299.14,-245.33 296.41,-251.78"/>
</g>
<!-- Node8 -->
<g id="node8" class="node">
<title>Node8</title>
<g id="a_node8"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_map/erase#" xlink:title=" ">
<polygon fill="white" stroke="black" points="299,-203 299,-233 402,-233 402,-203 299,-203"/>
<text text-anchor="start" x="307" y="-221" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_map</text>
<text text-anchor="middle" x="350.5" y="-210" font-family="Helvetica,sans-Serif" font-size="10.00">::erase</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node8 -->
<g id="edge7" class="edge">
<title>Node4&#45;&gt;Node8</title>
<path fill="none" stroke="midnightblue" d="M236.81,-187.2C253.22,-191.69 271.77,-196.76 289.02,-201.47"/>
<polygon fill="midnightblue" stroke="midnightblue" points="288.42,-204.94 298.99,-204.2 290.27,-198.18 288.42,-204.94"/>
</g>
<!-- Node9 -->
<g id="node9" class="node">
<title>Node9</title>
<g id="a_node9"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/erase#" xlink:title=" ">
<polygon fill="white" stroke="black" points="311,-164.5 311,-183.5 390,-183.5 390,-164.5 311,-164.5"/>
<text text-anchor="middle" x="350.5" y="-171.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::erase</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node9 -->
<g id="edge8" class="edge">
<title>Node4&#45;&gt;Node9</title>
<path fill="none" stroke="midnightblue" d="M236.81,-174C257,-174 280.43,-174 300.67,-174"/>
<polygon fill="midnightblue" stroke="midnightblue" points="300.94,-177.5 310.94,-174 300.94,-170.5 300.94,-177.5"/>
</g>
<!-- Node10 -->
<g id="node10" class="node">
<title>Node10</title>
<g id="a_node10"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_map/find#" xlink:title=" ">
<polygon fill="white" stroke="black" points="299,-115 299,-145 402,-145 402,-115 299,-115"/>
<text text-anchor="start" x="307" y="-133" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_map</text>
<text text-anchor="middle" x="350.5" y="-122" font-family="Helvetica,sans-Serif" font-size="10.00">::find</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node10 -->
<g id="edge9" class="edge">
<title>Node4&#45;&gt;Node10</title>
<path fill="none" stroke="midnightblue" d="M236.81,-160.8C253.22,-156.31 271.77,-151.24 289.02,-146.53"/>
<polygon fill="midnightblue" stroke="midnightblue" points="290.27,-149.82 298.99,-143.8 288.42,-143.06 290.27,-149.82"/>
</g>
<!-- Node11 -->
<g id="node11" class="node">
<title>Node11</title>
<g id="a_node11"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/pop_back#" xlink:title=" ">
<polygon fill="white" stroke="black" points="302,-76.5 302,-95.5 399,-95.5 399,-76.5 302,-76.5"/>
<text text-anchor="middle" x="350.5" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::pop_back</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node11 -->
<g id="edge10" class="edge">
<title>Node4&#45;&gt;Node11</title>
<path fill="none" stroke="midnightblue" d="M206.95,-159C226.21,-143.93 257.77,-120.86 288,-106 293.29,-103.4 299,-101.02 304.74,-98.89"/>
<polygon fill="midnightblue" stroke="midnightblue" points="306.05,-102.13 314.34,-95.53 303.74,-95.53 306.05,-102.13"/>
</g>
<!-- Node12 -->
<g id="node12" class="node">
<title>Node12</title>
<g id="a_node12"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/push_front#" xlink:title=" ">
<polygon fill="white" stroke="black" points="300,-38.5 300,-57.5 401,-57.5 401,-38.5 300,-38.5"/>
<text text-anchor="middle" x="350.5" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::push_front</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node12 -->
<g id="edge11" class="edge">
<title>Node4&#45;&gt;Node12</title>
<path fill="none" stroke="midnightblue" d="M198.57,-158.88C214.73,-135.76 248.69,-91.68 288,-67 291.31,-64.92 294.87,-63.05 298.54,-61.38"/>
<polygon fill="midnightblue" stroke="midnightblue" points="299.88,-64.62 307.83,-57.61 297.25,-58.13 299.88,-64.62"/>
</g>
<!-- Node13 -->
<g id="node13" class="node">
<title>Node13</title>
<g id="a_node13"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/size#" xlink:title=" ">
<polygon fill="white" stroke="black" points="314,-0.5 314,-19.5 387,-19.5 387,-0.5 314,-0.5"/>
<text text-anchor="middle" x="350.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::size</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node13 -->
<g id="edge12" class="edge">
<title>Node4&#45;&gt;Node13</title>
<path fill="none" stroke="midnightblue" d="M194.79,-158.78C207.75,-129.28 240.3,-64.11 288,-29 292.84,-25.44 298.37,-22.53 304.07,-20.16"/>
<polygon fill="midnightblue" stroke="midnightblue" points="305.54,-23.36 313.76,-16.67 303.16,-16.77 305.54,-23.36"/>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

@@ -1,9 +1,18 @@
<map id="lru_tests::run_tests" name="lru_tests::run_tests">
<area shape="rect" id="node1" title="A function to invoke all test cases." alt="" coords="5,104,140,131"/>
<area shape="rect" id="node2" href="$d3/db3/lru__cache_8cpp.html#a6401e8f2d41d8cc9cd0e52ab381608d4" title="A simple test case The assert statement will check expected hist and miss to resultant hits and miss." alt="" coords="188,29,304,56"/>
<area shape="rect" id="node6" href="$d3/db3/lru__cache_8cpp.html#a4b02e288a407876a8d6024f98a2a25ec" title="A test case contains hits more than cache size The assert statement will check expected hist and miss..." alt="" coords="188,104,304,131"/>
<area shape="rect" id="node7" href="$d3/db3/lru__cache_8cpp.html#a01ec21fc91ddafd964ae2035ba7892c0" title="A simple test case The assert statement will check expected hist and miss to resultant hits and miss." alt="" coords="188,179,304,205"/>
<area shape="rect" id="node3" href="$d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#aa24a141455b9fbcbec22392c28d04933" title="A function to get page hits." alt="" coords="369,31,507,73"/>
<area shape="rect" id="node4" href="$d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a78be932dac71c90f485a67d4fda877e2" title="A function to get page fault." alt="" coords="352,97,524,138"/>
<area shape="rect" id="node5" href="$d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a7dbf04bf7e1472c48639694f0b110602" title="Refer to a page, or request a page from memory." alt="" coords="373,162,503,203"/>
<area shape="rect" id="node1" title="A function to invoke all test cases." alt="" coords="5,159,140,185"/>
<area shape="rect" id="node2" href="$d3/db3/lru__cache_8cpp.html#a6401e8f2d41d8cc9cd0e52ab381608d4" title="A simple test case The assert statement will check expected hist and miss to resultant hits and miss." alt="" coords="188,84,304,111"/>
<area shape="rect" id="node15" href="$d3/db3/lru__cache_8cpp.html#a4b02e288a407876a8d6024f98a2a25ec" title="A test case contains hits more than cache size The assert statement will check expected hist and miss..." alt="" coords="188,159,304,185"/>
<area shape="rect" id="node16" href="$d3/db3/lru__cache_8cpp.html#a01ec21fc91ddafd964ae2035ba7892c0" title="A simple test case The assert statement will check expected hist and miss to resultant hits and miss." alt="" coords="188,233,304,260"/>
<area shape="rect" id="node3" href="$d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#aa24a141455b9fbcbec22392c28d04933" title="A function to get page hits." alt="" coords="369,86,507,127"/>
<area shape="rect" id="node4" href="$d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a78be932dac71c90f485a67d4fda877e2" title="A function to get page fault." alt="" coords="352,151,524,193"/>
<area shape="rect" id="node5" href="$d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a7dbf04bf7e1472c48639694f0b110602" title="Refer to a page, or request a page from memory." alt="" coords="373,217,503,258"/>
<area shape="rect" id="node6" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/back#" title=" " alt="" coords="605,5,706,32"/>
<area shape="rect" id="node7" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/begin#" title=" " alt="" coords="603,56,707,83"/>
<area shape="rect" id="node8" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/unordered_map/end#" title=" " alt="" coords="572,107,739,133"/>
<area shape="rect" id="node9" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/unordered_map/erase#" title=" " alt="" coords="587,158,724,199"/>
<area shape="rect" id="node10" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/erase#" title=" " alt="" coords="603,224,708,251"/>
<area shape="rect" id="node11" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/unordered_map/find#" title=" " alt="" coords="587,275,724,317"/>
<area shape="rect" id="node12" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/pop_back#" title=" " alt="" coords="591,341,720,368"/>
<area shape="rect" id="node13" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/push_front#" title=" " alt="" coords="588,392,723,419"/>
<area shape="rect" id="node14" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/size#" title=" " alt="" coords="607,443,704,469"/>
</map>

View File

@@ -1 +1 @@
61b1fa4f1d75ae97eb7c0f37353438f9
a609f742518c74f97ed5740c4bcbb8cc

View File

@@ -4,172 +4,397 @@
<!-- Generated by graphviz version 2.50.0 (20211204.2007)
-->
<!-- Title: lru_tests::run_tests Pages: 1 -->
<svg width="397pt" height="158pt"
viewBox="0.00 0.00 397.00 158.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 154)">
<!--zoomable 356 -->
<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 = 558;
var viewHeight = 356;
var sectionId = 'dynsection-3';
</script>
<script xlink:href="../../svgpan.js"/>
<svg id="graph" class="graph">
<g id="viewport">
<title>lru_tests::run_tests</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-154 393,-154 393,4 -4,4"/>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-352 554,-352 554,4 -4,4"/>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="A function to invoke all test cases.">
<polygon fill="#bfbfbf" stroke="black" points="0,-56.5 0,-75.5 101,-75.5 101,-56.5 0,-56.5"/>
<text text-anchor="middle" x="50.5" y="-63.5" font-family="Helvetica,sans-Serif" font-size="10.00">lru_tests::run_tests</text>
<polygon fill="#bfbfbf" stroke="black" points="0,-213.5 0,-232.5 101,-232.5 101,-213.5 0,-213.5"/>
<text text-anchor="middle" x="50.5" y="-220.5" font-family="Helvetica,sans-Serif" font-size="10.00">lru_tests::run_tests</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node1 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node1</title>
<path fill="none" stroke="midnightblue" d="M30.46,-75.76C20.72,-84.57 27.39,-94 50.5,-94 65.3,-94 73.36,-90.13 74.68,-85.03"/>
<polygon fill="midnightblue" stroke="midnightblue" points="77.81,-83.46 70.54,-75.76 71.42,-86.31 77.81,-83.46"/>
<path fill="none" stroke="midnightblue" d="M30.46,-232.76C20.72,-241.57 27.39,-251 50.5,-251 65.3,-251 73.36,-247.13 74.68,-242.03"/>
<polygon fill="midnightblue" stroke="midnightblue" points="77.81,-240.46 70.54,-232.76 71.42,-243.31 77.81,-240.46"/>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../d3/db3/lru__cache_8cpp.html#a6401e8f2d41d8cc9cd0e52ab381608d4" target="_top" xlink:title="A simple test case The assert statement will check expected hist and miss to resultant hits and miss.">
<polygon fill="white" stroke="black" points="137,-112.5 137,-131.5 224,-131.5 224,-112.5 137,-112.5"/>
<text text-anchor="middle" x="180.5" y="-119.5" font-family="Helvetica,sans-Serif" font-size="10.00">lru_tests::test_1</text>
<polygon fill="white" stroke="black" points="137,-269.5 137,-288.5 224,-288.5 224,-269.5 137,-269.5"/>
<text text-anchor="middle" x="180.5" y="-276.5" font-family="Helvetica,sans-Serif" font-size="10.00">lru_tests::test_1</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge2" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M73.5,-75.63C94.14,-84.66 125.22,-98.25 148.39,-108.39"/>
<polygon fill="midnightblue" stroke="midnightblue" points="147.22,-111.7 157.78,-112.5 150.02,-105.28 147.22,-111.7"/>
<path fill="none" stroke="midnightblue" d="M73.5,-232.63C94.14,-241.66 125.22,-255.25 148.39,-265.39"/>
<polygon fill="midnightblue" stroke="midnightblue" points="147.22,-268.7 157.78,-269.5 150.02,-262.28 147.22,-268.7"/>
</g>
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a xlink:href="../../d3/db3/lru__cache_8cpp.html#a4b02e288a407876a8d6024f98a2a25ec" target="_top" xlink:title="A test case contains hits more than cache size The assert statement will check expected hist and miss...">
<polygon fill="white" stroke="black" points="137,-56.5 137,-75.5 224,-75.5 224,-56.5 137,-56.5"/>
<text text-anchor="middle" x="180.5" y="-63.5" font-family="Helvetica,sans-Serif" font-size="10.00">lru_tests::test_2</text>
<!-- Node15 -->
<g id="node15" class="node">
<title>Node15</title>
<g id="a_node15"><a xlink:href="../../d3/db3/lru__cache_8cpp.html#a4b02e288a407876a8d6024f98a2a25ec" target="_top" xlink:title="A test case contains hits more than cache size The assert statement will check expected hist and miss...">
<polygon fill="white" stroke="black" points="137,-213.5 137,-232.5 224,-232.5 224,-213.5 137,-213.5"/>
<text text-anchor="middle" x="180.5" y="-220.5" font-family="Helvetica,sans-Serif" font-size="10.00">lru_tests::test_2</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node6 -->
<g id="edge7" class="edge">
<title>Node1&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M101.35,-66C109.64,-66 118.26,-66 126.61,-66"/>
<polygon fill="midnightblue" stroke="midnightblue" points="126.64,-69.5 136.64,-66 126.64,-62.5 126.64,-69.5"/>
<!-- Node1&#45;&gt;Node15 -->
<g id="edge16" class="edge">
<title>Node1&#45;&gt;Node15</title>
<path fill="none" stroke="midnightblue" d="M101.35,-223C109.64,-223 118.26,-223 126.61,-223"/>
<polygon fill="midnightblue" stroke="midnightblue" points="126.64,-226.5 136.64,-223 126.64,-219.5 126.64,-226.5"/>
</g>
<!-- Node7 -->
<g id="node7" class="node">
<title>Node7</title>
<g id="a_node7"><a xlink:href="../../d3/db3/lru__cache_8cpp.html#a01ec21fc91ddafd964ae2035ba7892c0" target="_top" xlink:title="A simple test case The assert statement will check expected hist and miss to resultant hits and miss.">
<polygon fill="white" stroke="black" points="137,-0.5 137,-19.5 224,-19.5 224,-0.5 137,-0.5"/>
<text text-anchor="middle" x="180.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">lru_tests::test_3</text>
<!-- Node16 -->
<g id="node16" class="node">
<title>Node16</title>
<g id="a_node16"><a xlink:href="../../d3/db3/lru__cache_8cpp.html#a01ec21fc91ddafd964ae2035ba7892c0" target="_top" xlink:title="A simple test case The assert statement will check expected hist and miss to resultant hits and miss.">
<polygon fill="white" stroke="black" points="137,-157.5 137,-176.5 224,-176.5 224,-157.5 137,-157.5"/>
<text text-anchor="middle" x="180.5" y="-164.5" font-family="Helvetica,sans-Serif" font-size="10.00">lru_tests::test_3</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node7 -->
<g id="edge12" class="edge">
<title>Node1&#45;&gt;Node7</title>
<path fill="none" stroke="midnightblue" d="M73.5,-56.37C94.14,-47.34 125.22,-33.75 148.39,-23.61"/>
<polygon fill="midnightblue" stroke="midnightblue" points="150.02,-26.72 157.78,-19.5 147.22,-20.3 150.02,-26.72"/>
<!-- Node1&#45;&gt;Node16 -->
<g id="edge21" class="edge">
<title>Node1&#45;&gt;Node16</title>
<path fill="none" stroke="midnightblue" d="M73.5,-213.37C94.14,-204.34 125.22,-190.75 148.39,-180.61"/>
<polygon fill="midnightblue" stroke="midnightblue" points="150.02,-183.72 157.78,-176.5 147.22,-177.3 150.02,-183.72"/>
</g>
<!-- Node2&#45;&gt;Node2 -->
<g id="edge6" class="edge">
<g id="edge15" class="edge">
<title>Node2&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M160.46,-131.76C150.72,-140.57 157.39,-150 180.5,-150 195.3,-150 203.36,-146.13 204.68,-141.03"/>
<polygon fill="midnightblue" stroke="midnightblue" points="207.81,-139.46 200.54,-131.76 201.42,-142.31 207.81,-139.46"/>
<path fill="none" stroke="midnightblue" d="M160.46,-288.76C150.72,-297.57 157.39,-307 180.5,-307 195.3,-307 203.36,-303.13 204.68,-298.03"/>
<polygon fill="midnightblue" stroke="midnightblue" points="207.81,-296.46 200.54,-288.76 201.42,-299.31 207.81,-296.46"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a xlink:href="../../d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#aa24a141455b9fbcbec22392c28d04933" target="_top" xlink:title="A function to get page hits.">
<polygon fill="white" stroke="black" points="273,-100 273,-130 376,-130 376,-100 273,-100"/>
<text text-anchor="start" x="281" y="-118" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="324.5" y="-107" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::getHits</text>
<polygon fill="white" stroke="black" points="273,-257 273,-287 376,-287 376,-257 273,-257"/>
<text text-anchor="start" x="281" y="-275" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="324.5" y="-264" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::getHits</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge3" class="edge">
<title>Node2&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M224.1,-119.9C236.22,-119.3 249.66,-118.64 262.64,-118"/>
<polygon fill="midnightblue" stroke="midnightblue" points="263.1,-121.48 272.92,-117.49 262.76,-114.49 263.1,-121.48"/>
<path fill="none" stroke="midnightblue" d="M224.1,-276.9C236.22,-276.3 249.66,-275.64 262.64,-275"/>
<polygon fill="midnightblue" stroke="midnightblue" points="263.1,-278.48 272.92,-274.49 262.76,-271.49 263.1,-278.48"/>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a xlink:href="../../d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a78be932dac71c90f485a67d4fda877e2" target="_top" xlink:title="A function to get page fault.">
<polygon fill="white" stroke="black" points="260,-51 260,-81 389,-81 389,-51 260,-51"/>
<text text-anchor="start" x="268" y="-69" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="324.5" y="-58" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::getPageFault</text>
<polygon fill="white" stroke="black" points="260,-208 260,-238 389,-238 389,-208 260,-208"/>
<text text-anchor="start" x="268" y="-226" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="324.5" y="-215" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::getPageFault</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node4 -->
<g id="edge4" class="edge">
<title>Node2&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M205.55,-112.5C221.08,-106.36 241.73,-98.2 260,-91 265.1,-88.99 270.43,-86.89 275.74,-84.8"/>
<polygon fill="midnightblue" stroke="midnightblue" points="277.2,-87.99 285.22,-81.06 274.63,-81.47 277.2,-87.99"/>
<path fill="none" stroke="midnightblue" d="M205.55,-269.5C221.08,-263.36 241.73,-255.2 260,-248 265.1,-245.99 270.43,-243.89 275.74,-241.8"/>
<polygon fill="midnightblue" stroke="midnightblue" points="277.2,-244.99 285.22,-238.06 274.63,-238.47 277.2,-244.99"/>
</g>
<!-- Node5 -->
<g id="node5" class="node">
<title>Node5</title>
<g id="a_node5"><a xlink:href="../../d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a7dbf04bf7e1472c48639694f0b110602" target="_top" xlink:title="Refer to a page, or request a page from memory.">
<polygon fill="white" stroke="black" points="275.5,-2 275.5,-32 373.5,-32 373.5,-2 275.5,-2"/>
<text text-anchor="start" x="283.5" y="-20" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="324.5" y="-9" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::refer</text>
<polygon fill="white" stroke="black" points="275.5,-159 275.5,-189 373.5,-189 373.5,-159 275.5,-159"/>
<text text-anchor="start" x="283.5" y="-177" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="324.5" y="-166" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::refer</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node5 -->
<g id="edge5" class="edge">
<title>Node2&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M209.52,-112.45C214.69,-109.9 219.78,-106.77 224,-103 247.48,-82.03 236.05,-62.43 260,-42 262.01,-40.28 264.15,-38.68 266.39,-37.17"/>
<polygon fill="midnightblue" stroke="midnightblue" points="268.56,-39.96 275.4,-31.87 265.01,-33.93 268.56,-39.96"/>
<path fill="none" stroke="midnightblue" d="M209.52,-269.45C214.69,-266.9 219.78,-263.77 224,-260 247.48,-239.03 236.05,-219.43 260,-199 262.01,-197.28 264.15,-195.68 266.39,-194.17"/>
<polygon fill="midnightblue" stroke="midnightblue" points="268.56,-196.96 275.4,-188.87 265.01,-190.93 268.56,-196.96"/>
</g>
<!-- Node6&#45;&gt;Node3 -->
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/back#" xlink:title=" ">
<polygon fill="white" stroke="black" points="449.5,-328.5 449.5,-347.5 525.5,-347.5 525.5,-328.5 449.5,-328.5"/>
<text text-anchor="middle" x="487.5" y="-335.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::back</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node6 -->
<g id="edge6" class="edge">
<title>Node5&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M373.63,-187.34C379.34,-190.46 384.67,-194.29 389,-199 426.69,-239.98 385.79,-279.47 425,-319 429.23,-323.27 434.41,-326.58 439.93,-329.16"/>
<polygon fill="midnightblue" stroke="midnightblue" points="438.88,-332.5 449.47,-332.82 441.39,-325.97 438.88,-332.5"/>
</g>
<!-- Node7 -->
<g id="node7" class="node">
<title>Node7</title>
<g id="a_node7"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/begin#" xlink:title=" ">
<polygon fill="white" stroke="black" points="448.5,-290.5 448.5,-309.5 526.5,-309.5 526.5,-290.5 448.5,-290.5"/>
<text text-anchor="middle" x="487.5" y="-297.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::begin</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node7 -->
<g id="edge7" class="edge">
<title>Node5&#45;&gt;Node7</title>
<path fill="none" stroke="midnightblue" d="M373.75,-188.19C379.3,-191.16 384.56,-194.73 389,-199 417.68,-226.6 395.3,-254.51 425,-281 429.12,-284.67 433.93,-287.64 439.03,-290.03"/>
<polygon fill="midnightblue" stroke="midnightblue" points="437.82,-293.31 448.4,-293.74 440.4,-286.8 437.82,-293.31"/>
</g>
<!-- Node8 -->
<g id="node8" class="node">
<title>Node8</title>
<g id="a_node8"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_map/end#" xlink:title=" ">
<polygon fill="white" stroke="black" points="425,-252.5 425,-271.5 550,-271.5 550,-252.5 425,-252.5"/>
<text text-anchor="middle" x="487.5" y="-259.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_map::end</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node8 -->
<g id="edge8" class="edge">
<title>Node6&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M209.22,-75.56C226.57,-81.55 249.49,-89.46 270.25,-96.63"/>
<polygon fill="midnightblue" stroke="midnightblue" points="269.33,-100.01 279.92,-99.96 271.61,-93.39 269.33,-100.01"/>
<title>Node5&#45;&gt;Node8</title>
<path fill="none" stroke="midnightblue" d="M372.06,-189.09C378.02,-191.94 383.83,-195.23 389,-199 409.42,-213.89 404.04,-228.89 425,-243 428.05,-245.06 431.34,-246.9 434.75,-248.54"/>
<polygon fill="midnightblue" stroke="midnightblue" points="433.41,-251.78 443.98,-252.47 436.14,-245.33 433.41,-251.78"/>
</g>
<!-- Node6&#45;&gt;Node4 -->
<!-- Node9 -->
<g id="node9" class="node">
<title>Node9</title>
<g id="a_node9"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_map/erase#" xlink:title=" ">
<polygon fill="white" stroke="black" points="436,-203 436,-233 539,-233 539,-203 436,-203"/>
<text text-anchor="start" x="444" y="-221" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_map</text>
<text text-anchor="middle" x="487.5" y="-210" font-family="Helvetica,sans-Serif" font-size="10.00">::erase</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node9 -->
<g id="edge9" class="edge">
<title>Node6&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M224.1,-66C232.21,-66 240.9,-66 249.65,-66"/>
<polygon fill="midnightblue" stroke="midnightblue" points="249.92,-69.5 259.92,-66 249.92,-62.5 249.92,-69.5"/>
<title>Node5&#45;&gt;Node9</title>
<path fill="none" stroke="midnightblue" d="M373.81,-187.2C390.22,-191.69 408.77,-196.76 426.02,-201.47"/>
<polygon fill="midnightblue" stroke="midnightblue" points="425.42,-204.94 435.99,-204.2 427.27,-198.18 425.42,-204.94"/>
</g>
<!-- Node6&#45;&gt;Node5 -->
<!-- Node10 -->
<g id="node10" class="node">
<title>Node10</title>
<g id="a_node10"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/erase#" xlink:title=" ">
<polygon fill="white" stroke="black" points="448,-164.5 448,-183.5 527,-183.5 527,-164.5 448,-164.5"/>
<text text-anchor="middle" x="487.5" y="-171.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::erase</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node10 -->
<g id="edge10" class="edge">
<title>Node6&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M209.22,-56.44C226.57,-50.45 249.49,-42.54 270.25,-35.37"/>
<polygon fill="midnightblue" stroke="midnightblue" points="271.61,-38.61 279.92,-32.04 269.33,-31.99 271.61,-38.61"/>
<title>Node5&#45;&gt;Node10</title>
<path fill="none" stroke="midnightblue" d="M373.81,-174C394,-174 417.43,-174 437.67,-174"/>
<polygon fill="midnightblue" stroke="midnightblue" points="437.94,-177.5 447.94,-174 437.94,-170.5 437.94,-177.5"/>
</g>
<!-- Node6&#45;&gt;Node6 -->
<!-- Node11 -->
<g id="node11" class="node">
<title>Node11</title>
<g id="a_node11"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_map/find#" xlink:title=" ">
<polygon fill="white" stroke="black" points="436,-115 436,-145 539,-145 539,-115 436,-115"/>
<text text-anchor="start" x="444" y="-133" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_map</text>
<text text-anchor="middle" x="487.5" y="-122" font-family="Helvetica,sans-Serif" font-size="10.00">::find</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node11 -->
<g id="edge11" class="edge">
<title>Node6&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M160.46,-75.76C150.72,-84.57 157.39,-94 180.5,-94 195.3,-94 203.36,-90.13 204.68,-85.03"/>
<polygon fill="midnightblue" stroke="midnightblue" points="207.81,-83.46 200.54,-75.76 201.42,-86.31 207.81,-83.46"/>
<title>Node5&#45;&gt;Node11</title>
<path fill="none" stroke="midnightblue" d="M373.81,-160.8C390.22,-156.31 408.77,-151.24 426.02,-146.53"/>
<polygon fill="midnightblue" stroke="midnightblue" points="427.27,-149.82 435.99,-143.8 425.42,-143.06 427.27,-149.82"/>
</g>
<!-- Node7&#45;&gt;Node3 -->
<!-- Node12 -->
<g id="node12" class="node">
<title>Node12</title>
<g id="a_node12"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/pop_back#" xlink:title=" ">
<polygon fill="white" stroke="black" points="439,-76.5 439,-95.5 536,-95.5 536,-76.5 439,-76.5"/>
<text text-anchor="middle" x="487.5" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::pop_back</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node12 -->
<g id="edge12" class="edge">
<title>Node5&#45;&gt;Node12</title>
<path fill="none" stroke="midnightblue" d="M343.95,-159C363.21,-143.93 394.77,-120.86 425,-106 430.29,-103.4 436,-101.02 441.74,-98.89"/>
<polygon fill="midnightblue" stroke="midnightblue" points="443.05,-102.13 451.34,-95.53 440.74,-95.53 443.05,-102.13"/>
</g>
<!-- Node13 -->
<g id="node13" class="node">
<title>Node13</title>
<g id="a_node13"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/push_front#" xlink:title=" ">
<polygon fill="white" stroke="black" points="437,-38.5 437,-57.5 538,-57.5 538,-38.5 437,-38.5"/>
<text text-anchor="middle" x="487.5" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::push_front</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node13 -->
<g id="edge13" class="edge">
<title>Node7&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M193.52,-19.54C202.31,-26.73 214.33,-37.03 224,-47 241.59,-65.14 239.48,-76.25 260,-91 262.05,-92.47 264.2,-93.87 266.43,-95.19"/>
<polygon fill="midnightblue" stroke="midnightblue" points="264.82,-98.3 275.29,-99.91 268.11,-92.12 264.82,-98.3"/>
<title>Node5&#45;&gt;Node13</title>
<path fill="none" stroke="midnightblue" d="M335.57,-158.88C351.73,-135.76 385.69,-91.68 425,-67 428.31,-64.92 431.87,-63.05 435.54,-61.38"/>
<polygon fill="midnightblue" stroke="midnightblue" points="436.88,-64.62 444.83,-57.61 434.25,-58.13 436.88,-64.62"/>
</g>
<!-- Node7&#45;&gt;Node4 -->
<!-- Node14 -->
<g id="node14" class="node">
<title>Node14</title>
<g id="a_node14"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/size#" xlink:title=" ">
<polygon fill="white" stroke="black" points="451,-0.5 451,-19.5 524,-19.5 524,-0.5 451,-0.5"/>
<text text-anchor="middle" x="487.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::size</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node14 -->
<g id="edge14" class="edge">
<title>Node7&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M204.45,-19.54C220.07,-25.98 241.23,-34.63 260,-42 264.43,-43.74 269.04,-45.53 273.67,-47.3"/>
<polygon fill="midnightblue" stroke="midnightblue" points="272.54,-50.62 283.13,-50.92 275.04,-44.08 272.54,-50.62"/>
<title>Node5&#45;&gt;Node14</title>
<path fill="none" stroke="midnightblue" d="M331.79,-158.78C344.75,-129.28 377.3,-64.11 425,-29 429.84,-25.44 435.37,-22.53 441.07,-20.16"/>
<polygon fill="midnightblue" stroke="midnightblue" points="442.54,-23.36 450.76,-16.67 440.16,-16.77 442.54,-23.36"/>
</g>
<!-- Node7&#45;&gt;Node5 -->
<g id="edge15" class="edge">
<title>Node7&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M224.1,-12.1C236.99,-12.74 251.38,-13.44 265.11,-14.12"/>
<polygon fill="midnightblue" stroke="midnightblue" points="265.29,-17.63 275.45,-14.63 265.64,-10.64 265.29,-17.63"/>
<!-- Node15&#45;&gt;Node3 -->
<g id="edge17" class="edge">
<title>Node15&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M209.22,-232.56C226.57,-238.55 249.49,-246.46 270.25,-253.63"/>
<polygon fill="midnightblue" stroke="midnightblue" points="269.33,-257.01 279.92,-256.96 271.61,-250.39 269.33,-257.01"/>
</g>
<!-- Node7&#45;&gt;Node7 -->
<g id="edge16" class="edge">
<title>Node7&#45;&gt;Node7</title>
<path fill="none" stroke="midnightblue" d="M160.46,-19.76C150.72,-28.57 157.39,-38 180.5,-38 195.3,-38 203.36,-34.13 204.68,-29.03"/>
<polygon fill="midnightblue" stroke="midnightblue" points="207.81,-27.46 200.54,-19.76 201.42,-30.31 207.81,-27.46"/>
<!-- Node15&#45;&gt;Node4 -->
<g id="edge18" class="edge">
<title>Node15&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M224.1,-223C232.21,-223 240.9,-223 249.65,-223"/>
<polygon fill="midnightblue" stroke="midnightblue" points="249.92,-226.5 259.92,-223 249.92,-219.5 249.92,-226.5"/>
</g>
<!-- Node15&#45;&gt;Node5 -->
<g id="edge19" class="edge">
<title>Node15&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M209.22,-213.44C226.57,-207.45 249.49,-199.54 270.25,-192.37"/>
<polygon fill="midnightblue" stroke="midnightblue" points="271.61,-195.61 279.92,-189.04 269.33,-188.99 271.61,-195.61"/>
</g>
<!-- Node15&#45;&gt;Node15 -->
<g id="edge20" class="edge">
<title>Node15&#45;&gt;Node15</title>
<path fill="none" stroke="midnightblue" d="M160.46,-232.76C150.72,-241.57 157.39,-251 180.5,-251 195.3,-251 203.36,-247.13 204.68,-242.03"/>
<polygon fill="midnightblue" stroke="midnightblue" points="207.81,-240.46 200.54,-232.76 201.42,-243.31 207.81,-240.46"/>
</g>
<!-- Node16&#45;&gt;Node3 -->
<g id="edge22" class="edge">
<title>Node16&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M193.52,-176.54C202.31,-183.73 214.33,-194.03 224,-204 241.59,-222.14 239.48,-233.25 260,-248 262.05,-249.47 264.2,-250.87 266.43,-252.19"/>
<polygon fill="midnightblue" stroke="midnightblue" points="264.82,-255.3 275.29,-256.91 268.11,-249.12 264.82,-255.3"/>
</g>
<!-- Node16&#45;&gt;Node4 -->
<g id="edge23" class="edge">
<title>Node16&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M204.45,-176.54C220.07,-182.98 241.23,-191.63 260,-199 264.43,-200.74 269.04,-202.53 273.67,-204.3"/>
<polygon fill="midnightblue" stroke="midnightblue" points="272.54,-207.62 283.13,-207.92 275.04,-201.08 272.54,-207.62"/>
</g>
<!-- Node16&#45;&gt;Node5 -->
<g id="edge24" class="edge">
<title>Node16&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M224.1,-169.1C236.99,-169.74 251.38,-170.44 265.11,-171.12"/>
<polygon fill="midnightblue" stroke="midnightblue" points="265.29,-174.63 275.45,-171.63 265.64,-167.64 265.29,-174.63"/>
</g>
<!-- Node16&#45;&gt;Node16 -->
<g id="edge25" class="edge">
<title>Node16&#45;&gt;Node16</title>
<path fill="none" stroke="midnightblue" d="M160.46,-176.76C150.72,-185.57 157.39,-195 180.5,-195 195.3,-195 203.36,-191.13 204.68,-186.03"/>
<polygon fill="midnightblue" stroke="midnightblue" points="207.81,-184.46 200.54,-176.76 201.42,-187.31 207.81,-184.46"/>
</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="lru__cache_8cpp_a6a3be6d8871b1f5dc03688da8f3ee9e6_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>

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -0,0 +1,312 @@
<?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 2.50.0 (20211204.2007)
-->
<!-- Title: lru_tests::run_tests Pages: 1 -->
<svg width="558pt" height="356pt"
viewBox="0.00 0.00 558.00 356.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 352)">
<title>lru_tests::run_tests</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-352 554,-352 554,4 -4,4"/>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="A function to invoke all test cases.">
<polygon fill="#bfbfbf" stroke="black" points="0,-213.5 0,-232.5 101,-232.5 101,-213.5 0,-213.5"/>
<text text-anchor="middle" x="50.5" y="-220.5" font-family="Helvetica,sans-Serif" font-size="10.00">lru_tests::run_tests</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node1 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node1</title>
<path fill="none" stroke="midnightblue" d="M30.46,-232.76C20.72,-241.57 27.39,-251 50.5,-251 65.3,-251 73.36,-247.13 74.68,-242.03"/>
<polygon fill="midnightblue" stroke="midnightblue" points="77.81,-240.46 70.54,-232.76 71.42,-243.31 77.81,-240.46"/>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../d3/db3/lru__cache_8cpp.html#a6401e8f2d41d8cc9cd0e52ab381608d4" target="_top" xlink:title="A simple test case The assert statement will check expected hist and miss to resultant hits and miss.">
<polygon fill="white" stroke="black" points="137,-269.5 137,-288.5 224,-288.5 224,-269.5 137,-269.5"/>
<text text-anchor="middle" x="180.5" y="-276.5" font-family="Helvetica,sans-Serif" font-size="10.00">lru_tests::test_1</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge2" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M73.5,-232.63C94.14,-241.66 125.22,-255.25 148.39,-265.39"/>
<polygon fill="midnightblue" stroke="midnightblue" points="147.22,-268.7 157.78,-269.5 150.02,-262.28 147.22,-268.7"/>
</g>
<!-- Node15 -->
<g id="node15" class="node">
<title>Node15</title>
<g id="a_node15"><a xlink:href="../../d3/db3/lru__cache_8cpp.html#a4b02e288a407876a8d6024f98a2a25ec" target="_top" xlink:title="A test case contains hits more than cache size The assert statement will check expected hist and miss...">
<polygon fill="white" stroke="black" points="137,-213.5 137,-232.5 224,-232.5 224,-213.5 137,-213.5"/>
<text text-anchor="middle" x="180.5" y="-220.5" font-family="Helvetica,sans-Serif" font-size="10.00">lru_tests::test_2</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node15 -->
<g id="edge16" class="edge">
<title>Node1&#45;&gt;Node15</title>
<path fill="none" stroke="midnightblue" d="M101.35,-223C109.64,-223 118.26,-223 126.61,-223"/>
<polygon fill="midnightblue" stroke="midnightblue" points="126.64,-226.5 136.64,-223 126.64,-219.5 126.64,-226.5"/>
</g>
<!-- Node16 -->
<g id="node16" class="node">
<title>Node16</title>
<g id="a_node16"><a xlink:href="../../d3/db3/lru__cache_8cpp.html#a01ec21fc91ddafd964ae2035ba7892c0" target="_top" xlink:title="A simple test case The assert statement will check expected hist and miss to resultant hits and miss.">
<polygon fill="white" stroke="black" points="137,-157.5 137,-176.5 224,-176.5 224,-157.5 137,-157.5"/>
<text text-anchor="middle" x="180.5" y="-164.5" font-family="Helvetica,sans-Serif" font-size="10.00">lru_tests::test_3</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node16 -->
<g id="edge21" class="edge">
<title>Node1&#45;&gt;Node16</title>
<path fill="none" stroke="midnightblue" d="M73.5,-213.37C94.14,-204.34 125.22,-190.75 148.39,-180.61"/>
<polygon fill="midnightblue" stroke="midnightblue" points="150.02,-183.72 157.78,-176.5 147.22,-177.3 150.02,-183.72"/>
</g>
<!-- Node2&#45;&gt;Node2 -->
<g id="edge15" class="edge">
<title>Node2&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M160.46,-288.76C150.72,-297.57 157.39,-307 180.5,-307 195.3,-307 203.36,-303.13 204.68,-298.03"/>
<polygon fill="midnightblue" stroke="midnightblue" points="207.81,-296.46 200.54,-288.76 201.42,-299.31 207.81,-296.46"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a xlink:href="../../d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#aa24a141455b9fbcbec22392c28d04933" target="_top" xlink:title="A function to get page hits.">
<polygon fill="white" stroke="black" points="273,-257 273,-287 376,-287 376,-257 273,-257"/>
<text text-anchor="start" x="281" y="-275" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="324.5" y="-264" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::getHits</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge3" class="edge">
<title>Node2&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M224.1,-276.9C236.22,-276.3 249.66,-275.64 262.64,-275"/>
<polygon fill="midnightblue" stroke="midnightblue" points="263.1,-278.48 272.92,-274.49 262.76,-271.49 263.1,-278.48"/>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a xlink:href="../../d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a78be932dac71c90f485a67d4fda877e2" target="_top" xlink:title="A function to get page fault.">
<polygon fill="white" stroke="black" points="260,-208 260,-238 389,-238 389,-208 260,-208"/>
<text text-anchor="start" x="268" y="-226" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="324.5" y="-215" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::getPageFault</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node4 -->
<g id="edge4" class="edge">
<title>Node2&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M205.55,-269.5C221.08,-263.36 241.73,-255.2 260,-248 265.1,-245.99 270.43,-243.89 275.74,-241.8"/>
<polygon fill="midnightblue" stroke="midnightblue" points="277.2,-244.99 285.22,-238.06 274.63,-238.47 277.2,-244.99"/>
</g>
<!-- Node5 -->
<g id="node5" class="node">
<title>Node5</title>
<g id="a_node5"><a xlink:href="../../d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a7dbf04bf7e1472c48639694f0b110602" target="_top" xlink:title="Refer to a page, or request a page from memory.">
<polygon fill="white" stroke="black" points="275.5,-159 275.5,-189 373.5,-189 373.5,-159 275.5,-159"/>
<text text-anchor="start" x="283.5" y="-177" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="324.5" y="-166" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::refer</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node5 -->
<g id="edge5" class="edge">
<title>Node2&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M209.52,-269.45C214.69,-266.9 219.78,-263.77 224,-260 247.48,-239.03 236.05,-219.43 260,-199 262.01,-197.28 264.15,-195.68 266.39,-194.17"/>
<polygon fill="midnightblue" stroke="midnightblue" points="268.56,-196.96 275.4,-188.87 265.01,-190.93 268.56,-196.96"/>
</g>
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/back#" xlink:title=" ">
<polygon fill="white" stroke="black" points="449.5,-328.5 449.5,-347.5 525.5,-347.5 525.5,-328.5 449.5,-328.5"/>
<text text-anchor="middle" x="487.5" y="-335.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::back</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node6 -->
<g id="edge6" class="edge">
<title>Node5&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M373.63,-187.34C379.34,-190.46 384.67,-194.29 389,-199 426.69,-239.98 385.79,-279.47 425,-319 429.23,-323.27 434.41,-326.58 439.93,-329.16"/>
<polygon fill="midnightblue" stroke="midnightblue" points="438.88,-332.5 449.47,-332.82 441.39,-325.97 438.88,-332.5"/>
</g>
<!-- Node7 -->
<g id="node7" class="node">
<title>Node7</title>
<g id="a_node7"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/begin#" xlink:title=" ">
<polygon fill="white" stroke="black" points="448.5,-290.5 448.5,-309.5 526.5,-309.5 526.5,-290.5 448.5,-290.5"/>
<text text-anchor="middle" x="487.5" y="-297.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::begin</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node7 -->
<g id="edge7" class="edge">
<title>Node5&#45;&gt;Node7</title>
<path fill="none" stroke="midnightblue" d="M373.75,-188.19C379.3,-191.16 384.56,-194.73 389,-199 417.68,-226.6 395.3,-254.51 425,-281 429.12,-284.67 433.93,-287.64 439.03,-290.03"/>
<polygon fill="midnightblue" stroke="midnightblue" points="437.82,-293.31 448.4,-293.74 440.4,-286.8 437.82,-293.31"/>
</g>
<!-- Node8 -->
<g id="node8" class="node">
<title>Node8</title>
<g id="a_node8"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_map/end#" xlink:title=" ">
<polygon fill="white" stroke="black" points="425,-252.5 425,-271.5 550,-271.5 550,-252.5 425,-252.5"/>
<text text-anchor="middle" x="487.5" y="-259.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_map::end</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node8 -->
<g id="edge8" class="edge">
<title>Node5&#45;&gt;Node8</title>
<path fill="none" stroke="midnightblue" d="M372.06,-189.09C378.02,-191.94 383.83,-195.23 389,-199 409.42,-213.89 404.04,-228.89 425,-243 428.05,-245.06 431.34,-246.9 434.75,-248.54"/>
<polygon fill="midnightblue" stroke="midnightblue" points="433.41,-251.78 443.98,-252.47 436.14,-245.33 433.41,-251.78"/>
</g>
<!-- Node9 -->
<g id="node9" class="node">
<title>Node9</title>
<g id="a_node9"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_map/erase#" xlink:title=" ">
<polygon fill="white" stroke="black" points="436,-203 436,-233 539,-233 539,-203 436,-203"/>
<text text-anchor="start" x="444" y="-221" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_map</text>
<text text-anchor="middle" x="487.5" y="-210" font-family="Helvetica,sans-Serif" font-size="10.00">::erase</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node9 -->
<g id="edge9" class="edge">
<title>Node5&#45;&gt;Node9</title>
<path fill="none" stroke="midnightblue" d="M373.81,-187.2C390.22,-191.69 408.77,-196.76 426.02,-201.47"/>
<polygon fill="midnightblue" stroke="midnightblue" points="425.42,-204.94 435.99,-204.2 427.27,-198.18 425.42,-204.94"/>
</g>
<!-- Node10 -->
<g id="node10" class="node">
<title>Node10</title>
<g id="a_node10"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/erase#" xlink:title=" ">
<polygon fill="white" stroke="black" points="448,-164.5 448,-183.5 527,-183.5 527,-164.5 448,-164.5"/>
<text text-anchor="middle" x="487.5" y="-171.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::erase</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node10 -->
<g id="edge10" class="edge">
<title>Node5&#45;&gt;Node10</title>
<path fill="none" stroke="midnightblue" d="M373.81,-174C394,-174 417.43,-174 437.67,-174"/>
<polygon fill="midnightblue" stroke="midnightblue" points="437.94,-177.5 447.94,-174 437.94,-170.5 437.94,-177.5"/>
</g>
<!-- Node11 -->
<g id="node11" class="node">
<title>Node11</title>
<g id="a_node11"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_map/find#" xlink:title=" ">
<polygon fill="white" stroke="black" points="436,-115 436,-145 539,-145 539,-115 436,-115"/>
<text text-anchor="start" x="444" y="-133" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_map</text>
<text text-anchor="middle" x="487.5" y="-122" font-family="Helvetica,sans-Serif" font-size="10.00">::find</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node11 -->
<g id="edge11" class="edge">
<title>Node5&#45;&gt;Node11</title>
<path fill="none" stroke="midnightblue" d="M373.81,-160.8C390.22,-156.31 408.77,-151.24 426.02,-146.53"/>
<polygon fill="midnightblue" stroke="midnightblue" points="427.27,-149.82 435.99,-143.8 425.42,-143.06 427.27,-149.82"/>
</g>
<!-- Node12 -->
<g id="node12" class="node">
<title>Node12</title>
<g id="a_node12"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/pop_back#" xlink:title=" ">
<polygon fill="white" stroke="black" points="439,-76.5 439,-95.5 536,-95.5 536,-76.5 439,-76.5"/>
<text text-anchor="middle" x="487.5" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::pop_back</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node12 -->
<g id="edge12" class="edge">
<title>Node5&#45;&gt;Node12</title>
<path fill="none" stroke="midnightblue" d="M343.95,-159C363.21,-143.93 394.77,-120.86 425,-106 430.29,-103.4 436,-101.02 441.74,-98.89"/>
<polygon fill="midnightblue" stroke="midnightblue" points="443.05,-102.13 451.34,-95.53 440.74,-95.53 443.05,-102.13"/>
</g>
<!-- Node13 -->
<g id="node13" class="node">
<title>Node13</title>
<g id="a_node13"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/push_front#" xlink:title=" ">
<polygon fill="white" stroke="black" points="437,-38.5 437,-57.5 538,-57.5 538,-38.5 437,-38.5"/>
<text text-anchor="middle" x="487.5" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::push_front</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node13 -->
<g id="edge13" class="edge">
<title>Node5&#45;&gt;Node13</title>
<path fill="none" stroke="midnightblue" d="M335.57,-158.88C351.73,-135.76 385.69,-91.68 425,-67 428.31,-64.92 431.87,-63.05 435.54,-61.38"/>
<polygon fill="midnightblue" stroke="midnightblue" points="436.88,-64.62 444.83,-57.61 434.25,-58.13 436.88,-64.62"/>
</g>
<!-- Node14 -->
<g id="node14" class="node">
<title>Node14</title>
<g id="a_node14"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/size#" xlink:title=" ">
<polygon fill="white" stroke="black" points="451,-0.5 451,-19.5 524,-19.5 524,-0.5 451,-0.5"/>
<text text-anchor="middle" x="487.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::size</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node14 -->
<g id="edge14" class="edge">
<title>Node5&#45;&gt;Node14</title>
<path fill="none" stroke="midnightblue" d="M331.79,-158.78C344.75,-129.28 377.3,-64.11 425,-29 429.84,-25.44 435.37,-22.53 441.07,-20.16"/>
<polygon fill="midnightblue" stroke="midnightblue" points="442.54,-23.36 450.76,-16.67 440.16,-16.77 442.54,-23.36"/>
</g>
<!-- Node15&#45;&gt;Node3 -->
<g id="edge17" class="edge">
<title>Node15&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M209.22,-232.56C226.57,-238.55 249.49,-246.46 270.25,-253.63"/>
<polygon fill="midnightblue" stroke="midnightblue" points="269.33,-257.01 279.92,-256.96 271.61,-250.39 269.33,-257.01"/>
</g>
<!-- Node15&#45;&gt;Node4 -->
<g id="edge18" class="edge">
<title>Node15&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M224.1,-223C232.21,-223 240.9,-223 249.65,-223"/>
<polygon fill="midnightblue" stroke="midnightblue" points="249.92,-226.5 259.92,-223 249.92,-219.5 249.92,-226.5"/>
</g>
<!-- Node15&#45;&gt;Node5 -->
<g id="edge19" class="edge">
<title>Node15&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M209.22,-213.44C226.57,-207.45 249.49,-199.54 270.25,-192.37"/>
<polygon fill="midnightblue" stroke="midnightblue" points="271.61,-195.61 279.92,-189.04 269.33,-188.99 271.61,-195.61"/>
</g>
<!-- Node15&#45;&gt;Node15 -->
<g id="edge20" class="edge">
<title>Node15&#45;&gt;Node15</title>
<path fill="none" stroke="midnightblue" d="M160.46,-232.76C150.72,-241.57 157.39,-251 180.5,-251 195.3,-251 203.36,-247.13 204.68,-242.03"/>
<polygon fill="midnightblue" stroke="midnightblue" points="207.81,-240.46 200.54,-232.76 201.42,-243.31 207.81,-240.46"/>
</g>
<!-- Node16&#45;&gt;Node3 -->
<g id="edge22" class="edge">
<title>Node16&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M193.52,-176.54C202.31,-183.73 214.33,-194.03 224,-204 241.59,-222.14 239.48,-233.25 260,-248 262.05,-249.47 264.2,-250.87 266.43,-252.19"/>
<polygon fill="midnightblue" stroke="midnightblue" points="264.82,-255.3 275.29,-256.91 268.11,-249.12 264.82,-255.3"/>
</g>
<!-- Node16&#45;&gt;Node4 -->
<g id="edge23" class="edge">
<title>Node16&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M204.45,-176.54C220.07,-182.98 241.23,-191.63 260,-199 264.43,-200.74 269.04,-202.53 273.67,-204.3"/>
<polygon fill="midnightblue" stroke="midnightblue" points="272.54,-207.62 283.13,-207.92 275.04,-201.08 272.54,-207.62"/>
</g>
<!-- Node16&#45;&gt;Node5 -->
<g id="edge24" class="edge">
<title>Node16&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M224.1,-169.1C236.99,-169.74 251.38,-170.44 265.11,-171.12"/>
<polygon fill="midnightblue" stroke="midnightblue" points="265.29,-174.63 275.45,-171.63 265.64,-167.64 265.29,-174.63"/>
</g>
<!-- Node16&#45;&gt;Node16 -->
<g id="edge25" class="edge">
<title>Node16&#45;&gt;Node16</title>
<path fill="none" stroke="midnightblue" d="M160.46,-176.76C150.72,-185.57 157.39,-195 180.5,-195 195.3,-195 203.36,-191.13 204.68,-186.03"/>
<polygon fill="midnightblue" stroke="midnightblue" points="207.81,-184.46 200.54,-176.76 201.42,-187.31 207.81,-184.46"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 17 KiB

View File

@@ -1,8 +1,17 @@
<map id="main" name="main">
<area shape="rect" id="node1" title="Main function." alt="" coords="5,130,56,157"/>
<area shape="rect" id="node2" href="$d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#aad506b1c1a3cd5b93cc7e497626bfb53" title="A function to display the current cache." alt="" coords="122,5,258,47"/>
<area shape="rect" id="node3" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/io/manip/endl.html#" title=" " alt="" coords="324,42,396,69"/>
<area shape="rect" id="node3" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/io/manip/endl#" title=" " alt="" coords="371,13,443,39"/>
<area shape="rect" id="node4" href="$d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#aa24a141455b9fbcbec22392c28d04933" title="A function to get page hits." alt="" coords="121,123,259,164"/>
<area shape="rect" id="node5" href="$d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a78be932dac71c90f485a67d4fda877e2" title="A function to get page fault." alt="" coords="104,188,276,229"/>
<area shape="rect" id="node6" href="$d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a7dbf04bf7e1472c48639694f0b110602" title="Refer to a page, or request a page from memory." alt="" coords="125,253,255,295"/>
<area shape="rect" id="node6" href="$d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a7dbf04bf7e1472c48639694f0b110602" title="Refer to a page, or request a page from memory." alt="" coords="125,264,255,305"/>
<area shape="rect" id="node7" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/back#" title=" " alt="" coords="357,63,458,90"/>
<area shape="rect" id="node8" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/begin#" title=" " alt="" coords="355,114,459,141"/>
<area shape="rect" id="node9" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/unordered_map/end#" title=" " alt="" coords="324,165,491,191"/>
<area shape="rect" id="node10" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/unordered_map/erase#" title=" " alt="" coords="339,216,476,257"/>
<area shape="rect" id="node11" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/erase#" title=" " alt="" coords="355,282,460,309"/>
<area shape="rect" id="node12" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/unordered_map/find#" title=" " alt="" coords="339,333,476,375"/>
<area shape="rect" id="node13" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/pop_back#" title=" " alt="" coords="343,399,472,426"/>
<area shape="rect" id="node14" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/push_front#" title=" " alt="" coords="340,450,475,477"/>
<area shape="rect" id="node15" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/size#" title=" " alt="" coords="359,501,456,527"/>
</map>

View File

@@ -1 +1 @@
364b6258fe6fe3ba77e37c884b0d5c55
1e5a201c6e43be95f0b1c81653dc693c

View File

@@ -4,17 +4,17 @@
<!-- Generated by graphviz version 2.50.0 (20211204.2007)
-->
<!-- Title: main Pages: 1 -->
<svg width="301pt" height="225pt"
viewBox="0.00 0.00 301.00 225.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 221)">
<svg width="372pt" height="400pt"
viewBox="0.00 0.00 372.00 399.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 395.5)">
<title>main</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-221 297,-221 297,4 -4,4"/>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-395.5 368,-395.5 368,4 -4,4"/>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="Main function.">
<polygon fill="#bfbfbf" stroke="black" points="0,-104 0,-123 38,-123 38,-104 0,-104"/>
<text text-anchor="middle" x="19" y="-111" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
<polygon fill="#bfbfbf" stroke="black" points="0,-278.5 0,-297.5 38,-297.5 38,-278.5 0,-278.5"/>
<text text-anchor="middle" x="19" y="-285.5" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
</a>
</g>
</g>
@@ -22,86 +22,223 @@
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#aad506b1c1a3cd5b93cc7e497626bfb53" target="_top" xlink:title="A function to display the current cache.">
<polygon fill="white" stroke="black" points="87.5,-186.5 87.5,-216.5 189.5,-216.5 189.5,-186.5 87.5,-186.5"/>
<text text-anchor="start" x="95.5" y="-204.5" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="138.5" y="-193.5" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::display</text>
<polygon fill="white" stroke="black" points="87.5,-361 87.5,-391 189.5,-391 189.5,-361 87.5,-361"/>
<text text-anchor="start" x="95.5" y="-379" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="138.5" y="-368" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::display</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M27.12,-123.19C36.67,-135.66 54.67,-157.37 74,-171.5 79.1,-175.23 84.74,-178.68 90.49,-181.81"/>
<polygon fill="midnightblue" stroke="midnightblue" points="89.07,-185.01 99.56,-186.46 92.26,-178.78 89.07,-185.01"/>
<path fill="none" stroke="midnightblue" d="M27.12,-297.69C36.67,-310.16 54.67,-331.87 74,-346 79.1,-349.73 84.74,-353.18 90.49,-356.31"/>
<polygon fill="midnightblue" stroke="midnightblue" points="89.07,-359.51 99.56,-360.96 92.26,-353.28 89.07,-359.51"/>
</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/io/manip/endl.html#" xlink:title=" ">
<polygon fill="white" stroke="black" points="239,-170 239,-189 293,-189 293,-170 239,-170"/>
<text text-anchor="middle" x="266" y="-177" font-family="Helvetica,sans-Serif" font-size="10.00">std::endl</text>
<g id="a_node3"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/io/manip/endl#" xlink:title=" ">
<polygon fill="white" stroke="black" points="274.5,-366.5 274.5,-385.5 328.5,-385.5 328.5,-366.5 274.5,-366.5"/>
<text text-anchor="middle" x="301.5" y="-373.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::endl</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge3" class="edge">
<title>Node1&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M38.08,-123.1C48.38,-128.25 61.65,-134.37 74,-138.5 126.48,-156.04 189.65,-167.88 228.57,-174.15"/>
<polygon fill="midnightblue" stroke="midnightblue" points="228.45,-177.68 238.87,-175.78 229.54,-170.76 228.45,-177.68"/>
<path fill="none" stroke="midnightblue" d="M38.18,-297.32C48.51,-302.38 61.78,-308.51 74,-313 109.09,-325.9 209.94,-352.6 264.47,-366.74"/>
<polygon fill="midnightblue" stroke="midnightblue" points="263.85,-370.2 274.41,-369.31 265.61,-363.42 263.85,-370.2"/>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a xlink:href="../../d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#aa24a141455b9fbcbec22392c28d04933" target="_top" xlink:title="A function to get page hits.">
<polygon fill="white" stroke="black" points="87,-98.5 87,-128.5 190,-128.5 190,-98.5 87,-98.5"/>
<text text-anchor="start" x="95" y="-116.5" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="138.5" y="-105.5" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::getHits</text>
<polygon fill="white" stroke="black" points="87,-273 87,-303 190,-303 190,-273 87,-273"/>
<text text-anchor="start" x="95" y="-291" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="138.5" y="-280" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::getHits</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<g id="edge4" class="edge">
<title>Node1&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M38.1,-113.5C48.62,-113.5 62.54,-113.5 76.63,-113.5"/>
<polygon fill="midnightblue" stroke="midnightblue" points="76.87,-117 86.87,-113.5 76.87,-110 76.87,-117"/>
<path fill="none" stroke="midnightblue" d="M38.1,-288C48.62,-288 62.54,-288 76.63,-288"/>
<polygon fill="midnightblue" stroke="midnightblue" points="76.87,-291.5 86.87,-288 76.87,-284.5 76.87,-291.5"/>
</g>
<!-- Node5 -->
<g id="node5" class="node">
<title>Node5</title>
<g id="a_node5"><a xlink:href="../../d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a78be932dac71c90f485a67d4fda877e2" target="_top" xlink:title="A function to get page fault.">
<polygon fill="white" stroke="black" points="74,-49.5 74,-79.5 203,-79.5 203,-49.5 74,-49.5"/>
<text text-anchor="start" x="82" y="-67.5" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="138.5" y="-56.5" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::getPageFault</text>
<polygon fill="white" stroke="black" points="74,-224 74,-254 203,-254 203,-224 74,-224"/>
<text text-anchor="start" x="82" y="-242" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="138.5" y="-231" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::getPageFault</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node5 -->
<g id="edge5" class="edge">
<title>Node1&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M38.41,-105.08C48.81,-100.39 62.08,-94.49 74,-89.5 78.79,-87.49 83.81,-85.44 88.83,-83.41"/>
<polygon fill="midnightblue" stroke="midnightblue" points="90.45,-86.53 98.44,-79.57 87.85,-80.03 90.45,-86.53"/>
<path fill="none" stroke="midnightblue" d="M38.41,-279.58C48.81,-274.89 62.08,-268.99 74,-264 78.79,-261.99 83.81,-259.94 88.83,-257.91"/>
<polygon fill="midnightblue" stroke="midnightblue" points="90.45,-261.03 98.44,-254.07 87.85,-254.53 90.45,-261.03"/>
</g>
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a xlink:href="../../d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a7dbf04bf7e1472c48639694f0b110602" target="_top" xlink:title="Refer to a page, or request a page from memory.">
<polygon fill="white" stroke="black" points="89.5,-0.5 89.5,-30.5 187.5,-30.5 187.5,-0.5 89.5,-0.5"/>
<text text-anchor="start" x="97.5" y="-18.5" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="138.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::refer</text>
<polygon fill="white" stroke="black" points="89.5,-167 89.5,-197 187.5,-197 187.5,-167 89.5,-167"/>
<text text-anchor="start" x="97.5" y="-185" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="138.5" y="-174" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::refer</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node6 -->
<g id="edge6" class="edge">
<title>Node1&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M24.95,-103.62C33.16,-88.14 50.99,-58.16 74,-40.5 76.41,-38.65 78.98,-36.92 81.65,-35.3"/>
<polygon fill="midnightblue" stroke="midnightblue" points="83.32,-38.37 90.44,-30.52 79.98,-32.22 83.32,-38.37"/>
<path fill="none" stroke="midnightblue" d="M25.18,-278.39C33.69,-263.3 51.94,-233.83 74,-215 79.59,-210.23 85.98,-205.9 92.51,-202.07"/>
<polygon fill="midnightblue" stroke="midnightblue" points="94.37,-205.04 101.43,-197.15 90.99,-198.91 94.37,-205.04"/>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2" class="edge">
<title>Node2&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M189.82,-192.68C202.8,-190.4 216.51,-188 228.62,-185.88"/>
<polygon fill="midnightblue" stroke="midnightblue" points="229.55,-189.27 238.79,-184.09 228.34,-182.37 229.55,-189.27"/>
<path fill="none" stroke="midnightblue" d="M189.56,-376C213.67,-376 242.06,-376 264.09,-376"/>
<polygon fill="midnightblue" stroke="midnightblue" points="264.34,-379.5 274.34,-376 264.34,-372.5 264.34,-379.5"/>
</g>
<!-- Node7 -->
<g id="node7" class="node">
<title>Node7</title>
<g id="a_node7"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/back#" xlink:title=" ">
<polygon fill="white" stroke="black" points="263.5,-328.5 263.5,-347.5 339.5,-347.5 339.5,-328.5 263.5,-328.5"/>
<text text-anchor="middle" x="301.5" y="-335.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::back</text>
</a>
</g>
</g>
<!-- Node6&#45;&gt;Node7 -->
<g id="edge7" class="edge">
<title>Node6&#45;&gt;Node7</title>
<path fill="none" stroke="midnightblue" d="M179.72,-197.04C188.3,-201.74 196.67,-207.67 203,-215 234.97,-252.02 203.84,-285 239,-319 243.27,-323.13 248.42,-326.36 253.9,-328.9"/>
<polygon fill="midnightblue" stroke="midnightblue" points="252.75,-332.2 263.34,-332.53 255.26,-325.67 252.75,-332.2"/>
</g>
<!-- Node8 -->
<g id="node8" class="node">
<title>Node8</title>
<g id="a_node8"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/begin#" xlink:title=" ">
<polygon fill="white" stroke="black" points="262.5,-290.5 262.5,-309.5 340.5,-309.5 340.5,-290.5 262.5,-290.5"/>
<text text-anchor="middle" x="301.5" y="-297.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::begin</text>
</a>
</g>
</g>
<!-- Node6&#45;&gt;Node8 -->
<g id="edge8" class="edge">
<title>Node6&#45;&gt;Node8</title>
<path fill="none" stroke="midnightblue" d="M177.54,-197.13C186.59,-201.92 195.72,-207.87 203,-215 226.86,-238.39 213.14,-259.85 239,-281 243.11,-284.36 247.82,-287.13 252.75,-289.41"/>
<polygon fill="midnightblue" stroke="midnightblue" points="251.85,-292.82 262.43,-293.22 254.41,-286.3 251.85,-292.82"/>
</g>
<!-- Node9 -->
<g id="node9" class="node">
<title>Node9</title>
<g id="a_node9"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_map/end#" xlink:title=" ">
<polygon fill="white" stroke="black" points="239,-252.5 239,-271.5 364,-271.5 364,-252.5 239,-252.5"/>
<text text-anchor="middle" x="301.5" y="-259.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_map::end</text>
</a>
</g>
</g>
<!-- Node6&#45;&gt;Node9 -->
<g id="edge9" class="edge">
<title>Node6&#45;&gt;Node9</title>
<path fill="none" stroke="midnightblue" d="M171.14,-197.01C181.52,-202.31 192.96,-208.56 203,-215 220.06,-225.94 221.02,-233.63 239,-243 243.24,-245.21 247.77,-247.21 252.39,-249.01"/>
<polygon fill="midnightblue" stroke="midnightblue" points="251.32,-252.34 261.92,-252.43 253.69,-245.75 251.32,-252.34"/>
</g>
<!-- Node10 -->
<g id="node10" class="node">
<title>Node10</title>
<g id="a_node10"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_map/erase#" xlink:title=" ">
<polygon fill="white" stroke="black" points="250,-203 250,-233 353,-233 353,-203 250,-203"/>
<text text-anchor="start" x="258" y="-221" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_map</text>
<text text-anchor="middle" x="301.5" y="-210" font-family="Helvetica,sans-Serif" font-size="10.00">::erase</text>
</a>
</g>
</g>
<!-- Node6&#45;&gt;Node10 -->
<g id="edge10" class="edge">
<title>Node6&#45;&gt;Node10</title>
<path fill="none" stroke="midnightblue" d="M187.81,-192.8C204.22,-196.47 222.77,-200.62 240.02,-204.48"/>
<polygon fill="midnightblue" stroke="midnightblue" points="239.47,-207.94 249.99,-206.71 241,-201.11 239.47,-207.94"/>
</g>
<!-- Node11 -->
<g id="node11" class="node">
<title>Node11</title>
<g id="a_node11"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/erase#" xlink:title=" ">
<polygon fill="white" stroke="black" points="262,-164.5 262,-183.5 341,-183.5 341,-164.5 262,-164.5"/>
<text text-anchor="middle" x="301.5" y="-171.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::erase</text>
</a>
</g>
</g>
<!-- Node6&#45;&gt;Node11 -->
<g id="edge11" class="edge">
<title>Node6&#45;&gt;Node11</title>
<path fill="none" stroke="midnightblue" d="M187.81,-179.6C208,-178.6 231.43,-177.43 251.67,-176.43"/>
<polygon fill="midnightblue" stroke="midnightblue" points="252.12,-179.91 261.94,-175.92 251.78,-172.92 252.12,-179.91"/>
</g>
<!-- Node12 -->
<g id="node12" class="node">
<title>Node12</title>
<g id="a_node12"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_map/find#" xlink:title=" ">
<polygon fill="white" stroke="black" points="250,-115 250,-145 353,-145 353,-115 250,-115"/>
<text text-anchor="start" x="258" y="-133" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_map</text>
<text text-anchor="middle" x="301.5" y="-122" font-family="Helvetica,sans-Serif" font-size="10.00">::find</text>
</a>
</g>
</g>
<!-- Node6&#45;&gt;Node12 -->
<g id="edge12" class="edge">
<title>Node6&#45;&gt;Node12</title>
<path fill="none" stroke="midnightblue" d="M186.07,-166.96C204.26,-161.08 225.28,-154.3 244.3,-148.15"/>
<polygon fill="midnightblue" stroke="midnightblue" points="245.6,-151.41 254.04,-145.01 243.45,-144.75 245.6,-151.41"/>
</g>
<!-- Node13 -->
<g id="node13" class="node">
<title>Node13</title>
<g id="a_node13"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/pop_back#" xlink:title=" ">
<polygon fill="white" stroke="black" points="253,-76.5 253,-95.5 350,-95.5 350,-76.5 253,-76.5"/>
<text text-anchor="middle" x="301.5" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::pop_back</text>
</a>
</g>
</g>
<!-- Node6&#45;&gt;Node13 -->
<g id="edge13" class="edge">
<title>Node6&#45;&gt;Node13</title>
<path fill="none" stroke="midnightblue" d="M155.15,-166.96C173.76,-149.79 206.44,-121.92 239,-105 243.24,-102.8 247.78,-100.8 252.4,-99"/>
<polygon fill="midnightblue" stroke="midnightblue" points="253.69,-102.26 261.92,-95.59 251.33,-95.67 253.69,-102.26"/>
</g>
<!-- Node14 -->
<g id="node14" class="node">
<title>Node14</title>
<g id="a_node14"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/push_front#" xlink:title=" ">
<polygon fill="white" stroke="black" points="251,-38.5 251,-57.5 352,-57.5 352,-38.5 251,-38.5"/>
<text text-anchor="middle" x="301.5" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::push_front</text>
</a>
</g>
</g>
<!-- Node6&#45;&gt;Node14 -->
<g id="edge14" class="edge">
<title>Node6&#45;&gt;Node14</title>
<path fill="none" stroke="midnightblue" d="M148.53,-166.93C163.99,-142.39 197.89,-93.85 239,-67 242.13,-64.95 245.5,-63.12 248.98,-61.47"/>
<polygon fill="midnightblue" stroke="midnightblue" points="250.51,-64.63 258.39,-57.55 247.81,-58.17 250.51,-64.63"/>
</g>
<!-- Node15 -->
<g id="node15" class="node">
<title>Node15</title>
<g id="a_node15"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/size#" xlink:title=" ">
<polygon fill="white" stroke="black" points="265,-0.5 265,-19.5 338,-19.5 338,-0.5 265,-0.5"/>
<text text-anchor="middle" x="301.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::size</text>
</a>
</g>
</g>
<!-- Node6&#45;&gt;Node15 -->
<g id="edge15" class="edge">
<title>Node6&#45;&gt;Node15</title>
<path fill="none" stroke="midnightblue" d="M145.17,-166.89C157.45,-136.23 189.44,-66.43 239,-29 243.86,-25.33 249.43,-22.37 255.19,-19.97"/>
<polygon fill="midnightblue" stroke="midnightblue" points="256.76,-23.12 264.98,-16.44 254.39,-16.54 256.76,-23.12"/>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 13 KiB