Files
C-Plus-Plus/d3/db3/lru__cache_8cpp_a6401e8f2d41d8cc9cd0e52ab381608d4_cgraph.svg
2023-06-16 21:35:33 +00:00

277 lines
13 KiB
XML

<?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 8.0.5 (20230430.1635)
-->
<!-- Title: lru_tests::test_1 Pages: 1 -->
<svg width="419pt" height="347pt"
viewBox="0.00 0.00 419.00 347.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<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[
.node, .edge {opacity: 0.7;}
.node.selected, .edge.selected {opacity: 1;}
.edge:hover path { stroke: red; }
.edge:hover polygon { stroke: red; fill: red; }
]]></style>
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
<svg id="graph" class="graph">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 343.25)">
<title>lru_tests::test_1</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="A simple test case The assert statement will check expected hist and miss to resultant hits and miss.">
<polygon fill="#999999" stroke="#666666" points="86.5,-228.25 0,-228.25 0,-209 86.5,-209 86.5,-228.25"/>
<text text-anchor="middle" x="43.25" y="-214.75" font-family="Helvetica,sans-Serif" font-size="10.00">lru_tests::test_1</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node1 -->
<g id="edge13_Node000001_Node000001" class="edge">
<title>Node1&#45;&gt;Node1</title>
<g id="a_edge13_Node000001_Node000001"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M20.78,-228.54C10.54,-237.15 18.03,-246.25 43.25,-246.25 58.23,-246.25 66.95,-243.04 69.42,-238.63"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="72.45,-237.72 65.72,-229.54 65.88,-240.13 72.45,-237.72"/>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><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="#666666" points="237.88,-282.88 135.62,-282.88 135.62,-252.38 237.88,-252.38 237.88,-282.88"/>
<text text-anchor="start" x="143.62" y="-269.38" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="186.75" y="-258.12" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::getHits</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M73.23,-228.66C89.61,-234.33 110.64,-241.62 130.08,-248.35"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="128.78,-251.95 139.37,-251.91 131.07,-245.33 128.78,-251.95"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><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="#666666" points="251,-233.88 122.5,-233.88 122.5,-203.38 251,-203.38 251,-233.88"/>
<text text-anchor="start" x="130.5" y="-220.38" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="186.75" y="-209.12" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::getPageFault</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge2_Node000001_Node000003" class="edge">
<title>Node1&#45;&gt;Node3</title>
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M86.7,-218.62C94.55,-218.62 102.94,-218.62 111.41,-218.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="111.13,-222.13 121.13,-218.62 111.13,-215.13 111.13,-222.13"/>
</a>
</g>
</g>
<!-- Node4 -->
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><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="#666666" points="235.25,-184.88 138.25,-184.88 138.25,-154.38 235.25,-154.38 235.25,-184.88"/>
<text text-anchor="start" x="146.25" y="-171.38" font-family="Helvetica,sans-Serif" font-size="10.00">others::lru_cache::</text>
<text text-anchor="middle" x="186.75" y="-160.12" font-family="Helvetica,sans-Serif" font-size="10.00">LRUCache::refer</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<g id="edge3_Node000001_Node000004" class="edge">
<title>Node1&#45;&gt;Node4</title>
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M73.23,-208.59C89.61,-202.92 110.64,-195.63 130.08,-188.9"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="131.07,-191.92 139.37,-185.34 128.78,-185.3 131.07,-191.92"/>
</a>
</g>
</g>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/back.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="386.62,-339.25 311.38,-339.25 311.38,-320 386.62,-320 386.62,-339.25"/>
<text text-anchor="middle" x="349" y="-325.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::back</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node5 -->
<g id="edge4_Node000004_Node000005" class="edge">
<title>Node4&#45;&gt;Node5</title>
<g id="a_edge4_Node000004_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M235.66,-183.01C241.35,-186.13 246.67,-189.94 251,-194.62 287.94,-234.56 248.31,-273.38 287,-311.62 290.97,-315.55 295.76,-318.63 300.87,-321.04"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="299.42,-324.61 310.01,-324.9 301.91,-318.07 299.42,-324.61"/>
</a>
</g>
</g>
<!-- Node6 -->
<g id="Node000006" class="node">
<title>Node6</title>
<g id="a_Node000006"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/begin.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="387.75,-302.25 310.25,-302.25 310.25,-283 387.75,-283 387.75,-302.25"/>
<text text-anchor="middle" x="349" y="-288.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::begin</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node6 -->
<g id="edge5_Node000004_Node000006" class="edge">
<title>Node4&#45;&gt;Node6</title>
<g id="a_edge5_Node000004_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M235.45,-183.7C241.11,-186.7 246.47,-190.3 251,-194.62 279.2,-221.55 257.62,-248.99 287,-274.62 290.85,-277.99 295.31,-280.72 300.02,-282.95"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="298.36,-286.45 308.95,-286.83 300.91,-279.93 298.36,-286.45"/>
</a>
</g>
</g>
<!-- Node7 -->
<g id="Node000007" class="node">
<title>Node7</title>
<g id="a_Node000007"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_map/end.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="411,-265.25 287,-265.25 287,-246 411,-246 411,-265.25"/>
<text text-anchor="middle" x="349" y="-251.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_map::end</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node7 -->
<g id="edge6_Node000004_Node000007" class="edge">
<title>Node4&#45;&gt;Node7</title>
<g id="a_edge6_Node000004_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M235.04,-185.32C240.64,-188.03 246.1,-191.13 251,-194.62 271.02,-208.9 266.46,-223.11 287,-236.62 289.56,-238.31 292.28,-239.86 295.1,-241.27"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="293.37,-244.77 303.94,-245.58 296.18,-238.36 293.37,-244.77"/>
</a>
</g>
</g>
<!-- Node8 -->
<g id="Node000008" class="node">
<title>Node8</title>
<g id="a_Node000008"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_map/erase.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="400.12,-227.88 297.88,-227.88 297.88,-197.38 400.12,-197.38 400.12,-227.88"/>
<text text-anchor="start" x="305.88" y="-214.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_map</text>
<text text-anchor="middle" x="349" y="-203.12" font-family="Helvetica,sans-Serif" font-size="10.00">::erase</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node8 -->
<g id="edge7_Node000004_Node000008" class="edge">
<title>Node4&#45;&gt;Node8</title>
<g id="a_edge7_Node000004_Node000008"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M235.4,-182.41C251.59,-186.76 269.92,-191.67 287.02,-196.26"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="285.91,-199.86 296.47,-199.07 287.72,-193.09 285.91,-199.86"/>
</a>
</g>
</g>
<!-- Node9 -->
<g id="Node000009" class="node">
<title>Node9</title>
<g id="a_Node000009"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/erase.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="388.12,-179.25 309.88,-179.25 309.88,-160 388.12,-160 388.12,-179.25"/>
<text text-anchor="middle" x="349" y="-165.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::erase</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node9 -->
<g id="edge8_Node000004_Node000009" class="edge">
<title>Node4&#45;&gt;Node9</title>
<g id="a_edge8_Node000004_Node000009"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M235.4,-169.62C255.32,-169.62 278.48,-169.62 298.59,-169.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="298.41,-173.13 308.41,-169.62 298.41,-166.13 298.41,-173.13"/>
</a>
</g>
</g>
<!-- Node10 -->
<g id="Node000010" class="node">
<title>Node10</title>
<g id="a_Node000010"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_map/find.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="400.12,-141.88 297.88,-141.88 297.88,-111.38 400.12,-111.38 400.12,-141.88"/>
<text text-anchor="start" x="305.88" y="-128.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_map</text>
<text text-anchor="middle" x="349" y="-117.12" font-family="Helvetica,sans-Serif" font-size="10.00">::find</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node10 -->
<g id="edge9_Node000004_Node000010" class="edge">
<title>Node4&#45;&gt;Node10</title>
<g id="a_edge9_Node000004_Node000010"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M235.4,-156.84C251.59,-152.49 269.92,-147.58 287.02,-142.99"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="287.72,-146.16 296.47,-140.18 285.91,-139.39 287.72,-146.16"/>
</a>
</g>
</g>
<!-- Node11 -->
<g id="Node000011" class="node">
<title>Node11</title>
<g id="a_Node000011"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/pop_back.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="397.12,-93.25 300.88,-93.25 300.88,-74 397.12,-74 397.12,-93.25"/>
<text text-anchor="middle" x="349" y="-79.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::pop_back</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node11 -->
<g id="edge10_Node000004_Node000011" class="edge">
<title>Node4&#45;&gt;Node11</title>
<g id="a_edge10_Node000004_Node000011"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M207.23,-153.94C226.53,-139.04 257.39,-116.85 287,-102.62 290.99,-100.71 295.22,-98.92 299.52,-97.28"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="300.34,-100.35 308.6,-93.71 298,-93.75 300.34,-100.35"/>
</a>
</g>
</g>
<!-- Node12 -->
<g id="Node000012" class="node">
<title>Node12</title>
<g id="a_Node000012"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/push_front.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="399,-56.25 299,-56.25 299,-37 399,-37 399,-56.25"/>
<text text-anchor="middle" x="349" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::push_front</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node12 -->
<g id="edge11_Node000004_Node000012" class="edge">
<title>Node4&#45;&gt;Node12</title>
<g id="a_edge11_Node000004_Node000012"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M198.35,-153.98C214.71,-131.02 248.3,-88.37 287,-64.62 289.06,-63.36 291.22,-62.18 293.45,-61.07"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="294.7,-63.91 302.49,-56.74 291.92,-57.49 294.7,-63.91"/>
</a>
</g>
</g>
<!-- Node13 -->
<g id="Node000013" class="node">
<title>Node13</title>
<g id="a_Node000013"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/size.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="385.12,-19.25 312.88,-19.25 312.88,0 385.12,0 385.12,-19.25"/>
<text text-anchor="middle" x="349" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::size</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node13 -->
<g id="edge12_Node000004_Node000013" class="edge">
<title>Node4&#45;&gt;Node13</title>
<g id="a_edge12_Node000004_Node000013"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M194.26,-154.22C207.4,-125.02 239.89,-61.54 287,-27.62 291.7,-24.24 297.05,-21.48 302.56,-19.24"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="303.3,-22.35 311.59,-15.75 300.99,-15.74 303.3,-22.35"/>
</a>
</g>
</g>
</g>
</svg>
</svg>
<style type='text/css'>
<![CDATA[
[data-mouse-over-selected='false'] { opacity: 0.7; }
[data-mouse-over-selected='true'] { opacity: 1.0; }
]]>
</style>
<script type="application/ecmascript"><![CDATA[
document.addEventListener('DOMContentLoaded', (event) => {
highlightEdges();
highlightAdjacentNodes();
});
]]></script>
</svg>