Documentation for 6376bf46af

This commit is contained in:
github-actions
2023-09-27 18:42:32 +00:00
parent d28eba1fef
commit b5b4d78981
5708 changed files with 52275 additions and 51112 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.7"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Algorithms_in_C++: cpu_scheduling_algorithms/fcfs_scheduling.cpp File Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
@@ -41,7 +41,7 @@ MathJax.Hub.Config({
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.7 -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
@@ -132,18 +132,18 @@ Classes</h2></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a18920aa331faf4476b251c8cdb2c2bec"><td class="memTemplParams" colspan="2">template&lt;typename S , typename T , typename E &gt; </td></tr>
<tr class="memitem:a18920aa331faf4476b251c8cdb2c2bec" id="r_a18920aa331faf4476b251c8cdb2c2bec"><td class="memTemplParams" colspan="2">template&lt;typename S , typename T , typename E &gt; </td></tr>
<tr class="memitem:a18920aa331faf4476b251c8cdb2c2bec"><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../df/d47/fcfs__scheduling_8cpp.html#a18920aa331faf4476b251c8cdb2c2bec">sortcol</a> (<a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/tuple.html">tuple</a>&lt; S, T, E &gt; &amp;t1, <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/tuple.html">tuple</a>&lt; S, T, E &gt; &amp;t2)</td></tr>
<tr class="memdesc:a18920aa331faf4476b251c8cdb2c2bec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Comparator function for sorting a vector. <br /></td></tr>
<tr class="separator:a18920aa331faf4476b251c8cdb2c2bec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f2b90cb64d63a7080965e66a05ccf86"><td class="memTemplParams" colspan="2">template&lt;typename S , typename T , typename E &gt; </td></tr>
<tr class="memitem:a8f2b90cb64d63a7080965e66a05ccf86" id="r_a8f2b90cb64d63a7080965e66a05ccf86"><td class="memTemplParams" colspan="2">template&lt;typename S , typename T , typename E &gt; </td></tr>
<tr class="memitem:a8f2b90cb64d63a7080965e66a05ccf86"><td class="memTemplItemLeft" align="right" valign="top"><a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">vector</a>&lt; <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/tuple.html">tuple</a>&lt; S, T, E, double, double, double &gt; &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../df/d47/fcfs__scheduling_8cpp.html#a8f2b90cb64d63a7080965e66a05ccf86">get_final_status</a> (<a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">vector</a>&lt; <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/tuple.html">tuple</a>&lt; uint32_t, uint32_t, uint32_t &gt; &gt; input)</td></tr>
<tr class="memdesc:a8f2b90cb64d63a7080965e66a05ccf86"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function to be used for testing purposes. This function guarantees the correct solution for <a class="el" href="../../dd/dca/class_f_c_f_s.html" title="Class which implements the FCFS scheduling algorithm.">FCFS</a> scheduling algorithm. <br /></td></tr>
<tr class="separator:a8f2b90cb64d63a7080965e66a05ccf86"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa8dca7b867074164d5f45b0f3851269d"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d47/fcfs__scheduling_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a> ()</td></tr>
<tr class="memitem:aa8dca7b867074164d5f45b0f3851269d" id="r_aa8dca7b867074164d5f45b0f3851269d"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d47/fcfs__scheduling_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a> ()</td></tr>
<tr class="memdesc:aa8dca7b867074164d5f45b0f3851269d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Self-test implementations. <br /></td></tr>
<tr class="separator:aa8dca7b867074164d5f45b0f3851269d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d47/fcfs__scheduling_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a> ()</td></tr>
<tr class="memitem:ae66f6b31b5ad750f1fe042a706a4e3d4" id="r_ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d47/fcfs__scheduling_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a> ()</td></tr>
<tr class="memdesc:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Entry point of the program. <br /></td></tr>
<tr class="separator:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
@@ -237,7 +237,7 @@ template&lt;typename S , typename T , typename E &gt; </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="../../df/d47/fcfs__scheduling_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg" width="567" height="396"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<div class="center"><iframe scrolling="no" frameborder="0" src="../../df/d47/fcfs__scheduling_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg" width="567" height="167"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
@@ -362,7 +362,7 @@ false if t1 and t2 are in the INCORRECT order </dd></dl>
</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="../../df/d47/fcfs__scheduling_8cpp_aa8dca7b867074164d5f45b0f3851269d_cgraph.svg" width="470" height="396"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<div class="center"><iframe scrolling="no" frameborder="0" src="../../df/d47/fcfs__scheduling_8cpp_aa8dca7b867074164d5f45b0f3851269d_cgraph.svg" width="470" height="167"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
@@ -373,7 +373,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_cc8e79ed9d2b7756c78e8d0c87c6c0c7.html">cpu_scheduling_algorithms</a></li><li class="navelem"><a class="el" href="../../df/d47/fcfs__scheduling_8cpp.html">fcfs_scheduling.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.7 </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.8 </li>
</ul>
</div>
</body>

View File

@@ -1,21 +1,13 @@
<map id="test" name="test">
<area shape="rect" id="Node000001" title="Self&#45;test implementations." alt="" coords="5,221,49,247"/>
<area shape="rect" id="Node000002" href="$dd/dca/class_f_c_f_s.html#a8fbfe4d85f7576b4a7aade07d29fbd69" title="Adds the process to the ready queue if it isn&#39;t already there." alt="" coords="111,128,244,154"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="47,219,141,160,144,164,50,223"/>
<area shape="rect" id="Node000007" href="$dd/dca/class_f_c_f_s.html#aa25dbe30ba9930b5a7c1a6d11758bd91" title="Algorithm for scheduling CPU processes according to the First Come First Serve(FCFS) scheduling algor..." alt="" coords="97,287,258,312"/>
<area shape="poly" id="edge6_Node000001_Node000007" title=" " alt="" coords="50,241,134,278,132,283,48,246"/>
<area shape="rect" id="Node000001" title="Self&#45;test implementations." alt="" coords="5,88,49,114"/>
<area shape="rect" id="Node000002" href="$dd/dca/class_f_c_f_s.html#a8fbfe4d85f7576b4a7aade07d29fbd69" title="Adds the process to the ready queue if it isn&#39;t already there." alt="" coords="111,63,244,88"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="48,95,95,87,96,92,49,100"/>
<area shape="rect" id="Node000006" href="$dd/dca/class_f_c_f_s.html#aa25dbe30ba9930b5a7c1a6d11758bd91" title="Algorithm for scheduling CPU processes according to the First Come First Serve(FCFS) scheduling algor..." alt="" coords="97,112,258,138"/>
<area shape="poly" id="edge5_Node000001_Node000006" title=" " alt="" coords="49,102,82,107,81,112,48,107"/>
<area shape="rect" id="Node000003" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/unordered_set/end.html#" title=" " alt="" coords="306,5,464,31"/>
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="191,125,239,84,305,41,320,34,322,39,307,46,243,89,195,129"/>
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="226,59,321,33,322,38,227,65"/>
<area shape="rect" id="Node000004" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/unordered_set/find.html#" title=" " alt="" coords="321,55,450,96"/>
<area shape="poly" id="edge3_Node000002_Node000004" title=" " alt="" coords="220,125,305,98,307,103,221,130"/>
<area shape="poly" id="edge3_Node000002_Node000004" title=" " alt="" coords="244,73,305,73,305,78,244,78"/>
<area shape="rect" id="Node000005" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/unordered_set/insert.html#" title=" " alt="" coords="321,121,450,161"/>
<area shape="poly" id="edge4_Node000002_Node000005" title=" " alt="" coords="244,138,306,138,306,144,244,144"/>
<area shape="rect" id="Node000006" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/priority_queue/push.html#" title=" " alt="" coords="321,186,449,227"/>
<area shape="poly" id="edge5_Node000002_Node000006" title=" " alt="" coords="221,152,308,179,306,184,220,157"/>
<area shape="rect" id="Node000008" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/priority_queue/empty.html#" title=" " alt="" coords="321,251,449,292"/>
<area shape="poly" id="edge7_Node000007_Node000008" title=" " alt="" coords="258,286,306,279,307,285,259,291"/>
<area shape="rect" id="Node000009" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/priority_queue/pop.html#" title=" " alt="" coords="307,316,464,342"/>
<area shape="poly" id="edge8_Node000007_Node000009" title=" " alt="" coords="259,308,292,313,291,318,258,314"/>
<area shape="rect" id="Node000010" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/priority_queue/top.html#" title=" " alt="" coords="308,365,462,391"/>
<area shape="poly" id="edge9_Node000007_Node000010" title=" " alt="" coords="209,311,307,352,324,358,323,363,305,357,207,315"/>
<area shape="poly" id="edge4_Node000002_Node000005" title=" " alt="" coords="224,86,259,97,308,113,306,118,257,102,223,91"/>
</map>

View File

@@ -1 +1 @@
68814fade693a389aed4e3de3d680c25
4e5290926b9e1e211639b0debef59b71

View File

@@ -1,11 +1,11 @@
<?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.1.0 (20230707.0739)
<!-- Generated by graphviz version 9.0.0 (20230911.1827)
-->
<!-- Title: test Pages: 1 -->
<svg width="352pt" height="297pt"
viewBox="0.00 0.00 352.25 297.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg width="352pt" height="125pt"
viewBox="0.00 0.00 352.25 124.88" 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[
@@ -16,14 +16,14 @@
]]></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 293.25)">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 120.88)">
<title>test</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Self&#45;test implementations.">
<polygon fill="#999999" stroke="#666666" points="32.5,-127.25 0,-127.25 0,-108 32.5,-108 32.5,-127.25"/>
<text text-anchor="middle" x="16.25" y="-113.75" font-family="Helvetica,sans-Serif" font-size="10.00">test</text>
<polygon fill="#999999" stroke="#666666" points="32.5,-54.88 0,-54.88 0,-35.62 32.5,-35.62 32.5,-54.88"/>
<text text-anchor="middle" x="16.25" y="-41.38" font-family="Helvetica,sans-Serif" font-size="10.00">test</text>
</a>
</g>
</g>
@@ -31,8 +31,8 @@
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../dd/dca/class_f_c_f_s.html#a8fbfe4d85f7576b4a7aade07d29fbd69" target="_top" xlink:title="Adds the process to the ready queue if it isn&#39;t already there.">
<polygon fill="white" stroke="#666666" points="179,-197.25 79,-197.25 79,-178 179,-178 179,-197.25"/>
<text text-anchor="middle" x="129" y="-183.75" font-family="Helvetica,sans-Serif" font-size="10.00">FCFS::addProcess</text>
<polygon fill="white" stroke="#666666" points="179,-73.88 79,-73.88 79,-54.62 179,-54.62 179,-73.88"/>
<text text-anchor="middle" x="129" y="-60.38" font-family="Helvetica,sans-Serif" font-size="10.00">FCFS::addProcess</text>
</a>
</g>
</g>
@@ -40,26 +40,26 @@
<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="M32.65,-127.36C50.79,-138.83 81.19,-158.04 102.79,-171.69"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="100.69,-175.14 111.01,-177.52 104.43,-169.22 100.69,-175.14"/>
<path fill="none" stroke="#63b8ff" d="M32.65,-47.89C42.03,-49.5 54.69,-51.67 67.71,-53.91"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="66.73,-57.29 77.18,-55.53 67.91,-50.39 66.73,-57.29"/>
</a>
</g>
</g>
<!-- Node7 -->
<g id="Node000007" class="node">
<title>Node7</title>
<g id="a_Node000007"><a xlink:href="../../dd/dca/class_f_c_f_s.html#aa25dbe30ba9930b5a7c1a6d11758bd91" target="_top" xlink:title="Algorithm for scheduling CPU processes according to the First Come First Serve(FCFS) scheduling algor...">
<polygon fill="white" stroke="#666666" points="189.5,-78.25 68.5,-78.25 68.5,-59 189.5,-59 189.5,-78.25"/>
<text text-anchor="middle" x="129" y="-64.75" font-family="Helvetica,sans-Serif" font-size="10.00">FCFS::scheduleForFcfs</text>
<!-- Node6 -->
<g id="Node000006" class="node">
<title>Node6</title>
<g id="a_Node000006"><a xlink:href="../../dd/dca/class_f_c_f_s.html#aa25dbe30ba9930b5a7c1a6d11758bd91" target="_top" xlink:title="Algorithm for scheduling CPU processes according to the First Come First Serve(FCFS) scheduling algor...">
<polygon fill="white" stroke="#666666" points="189.5,-36.88 68.5,-36.88 68.5,-17.62 189.5,-17.62 189.5,-36.88"/>
<text text-anchor="middle" x="129" y="-23.38" font-family="Helvetica,sans-Serif" font-size="10.00">FCFS::scheduleForFcfs</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node7 -->
<g id="edge6_Node000001_Node000007" class="edge">
<title>Node1&#45;&gt;Node7</title>
<g id="a_edge6_Node000001_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M32.65,-110.81C48.82,-103.66 74.72,-92.2 95.45,-83.02"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="96.72,-85.85 104.45,-78.6 93.89,-79.45 96.72,-85.85"/>
<!-- Node1&#45;&gt;Node6 -->
<g id="edge5_Node000001_Node000006" class="edge">
<title>Node1&#45;&gt;Node6</title>
<g id="a_edge5_Node000001_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M32.65,-42.75C39.41,-41.65 47.87,-40.27 56.95,-38.8"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="57.45,-42.26 66.75,-37.2 56.32,-35.35 57.45,-42.26"/>
</a>
</g>
</g>
@@ -67,8 +67,8 @@
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_set/end.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="344.25,-289.25 225.5,-289.25 225.5,-270 344.25,-270 344.25,-289.25"/>
<text text-anchor="middle" x="284.88" y="-275.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_set::end</text>
<polygon fill="white" stroke="#666666" points="344.25,-116.88 225.5,-116.88 225.5,-97.62 344.25,-97.62 344.25,-116.88"/>
<text text-anchor="middle" x="284.88" y="-103.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_set::end</text>
</a>
</g>
</g>
@@ -76,8 +76,8 @@
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node2&#45;&gt;Node3</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M140.62,-197.72C157.42,-213.19 191.69,-242.87 225.5,-260.62 229.01,-262.47 232.73,-264.18 236.53,-265.75"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="235.08,-269.32 245.67,-269.6 237.56,-262.78 235.08,-269.32"/>
<path fill="none" stroke="#63b8ff" d="M166.08,-74.33C187.22,-80.24 214.17,-87.77 236.95,-94.14"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="235.73,-97.43 246.3,-96.75 237.61,-90.69 235.73,-97.43"/>
</a>
</g>
</g>
@@ -85,9 +85,9 @@
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_set/find.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="333.38,-251.88 236.38,-251.88 236.38,-221.38 333.38,-221.38 333.38,-251.88"/>
<text text-anchor="start" x="244.38" y="-238.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_set</text>
<text text-anchor="middle" x="284.88" y="-227.12" font-family="Helvetica,sans-Serif" font-size="10.00">::find</text>
<polygon fill="white" stroke="#666666" points="333.38,-79.5 236.38,-79.5 236.38,-49 333.38,-49 333.38,-79.5"/>
<text text-anchor="start" x="244.38" y="-66" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_set</text>
<text text-anchor="middle" x="284.88" y="-54.75" font-family="Helvetica,sans-Serif" font-size="10.00">::find</text>
</a>
</g>
</g>
@@ -95,8 +95,8 @@
<g id="edge3_Node000002_Node000004" class="edge">
<title>Node2&#45;&gt;Node4</title>
<g id="a_edge3_Node000002_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M161.51,-197.66C179.95,-203.53 203.81,-211.13 225.55,-218.05"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="224.44,-221.69 235.03,-221.39 226.56,-215.02 224.44,-221.69"/>
<path fill="none" stroke="#63b8ff" d="M179.11,-64.25C193.62,-64.25 209.65,-64.25 224.72,-64.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="224.51,-67.75 234.51,-64.25 224.51,-60.75 224.51,-67.75"/>
</a>
</g>
</g>
@@ -104,9 +104,9 @@
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_set/insert.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="333.38,-202.88 236.38,-202.88 236.38,-172.38 333.38,-172.38 333.38,-202.88"/>
<text text-anchor="start" x="244.38" y="-189.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_set</text>
<text text-anchor="middle" x="284.88" y="-178.12" font-family="Helvetica,sans-Serif" font-size="10.00">::insert</text>
<polygon fill="white" stroke="#666666" points="333.38,-30.5 236.38,-30.5 236.38,0 333.38,0 333.38,-30.5"/>
<text text-anchor="start" x="244.38" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_set</text>
<text text-anchor="middle" x="284.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::insert</text>
</a>
</g>
</g>
@@ -114,82 +114,8 @@
<g id="edge4_Node000002_Node000005" class="edge">
<title>Node2&#45;&gt;Node5</title>
<g id="a_edge4_Node000002_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M179.11,-187.62C193.76,-187.62 209.97,-187.62 225.17,-187.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="225.02,-191.13 235.02,-187.62 225.02,-184.13 225.02,-191.13"/>
</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/priority_queue/push.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="333,-153.88 236.75,-153.88 236.75,-123.38 333,-123.38 333,-153.88"/>
<text text-anchor="start" x="244.75" y="-140.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::priority_queue</text>
<text text-anchor="middle" x="284.88" y="-129.12" font-family="Helvetica,sans-Serif" font-size="10.00">::push</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node6 -->
<g id="edge5_Node000002_Node000006" class="edge">
<title>Node2&#45;&gt;Node6</title>
<g id="a_edge5_Node000002_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M161.51,-177.59C180.11,-171.67 204.22,-163.99 226.12,-157.02"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="226.86,-160.14 235.33,-153.77 224.74,-153.47 226.86,-160.14"/>
</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/priority_queue/empty.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="333,-104.88 236.75,-104.88 236.75,-74.38 333,-74.38 333,-104.88"/>
<text text-anchor="start" x="244.75" y="-91.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::priority_queue</text>
<text text-anchor="middle" x="284.88" y="-80.12" font-family="Helvetica,sans-Serif" font-size="10.00">::empty</text>
</a>
</g>
</g>
<!-- Node7&#45;&gt;Node8 -->
<g id="edge7_Node000007_Node000008" class="edge">
<title>Node7&#45;&gt;Node8</title>
<g id="a_edge7_Node000007_Node000008"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M189.93,-76.8C201.82,-78.43 214.28,-80.13 226.09,-81.74"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="225.35,-85.31 235.73,-83.19 226.29,-78.37 225.35,-85.31"/>
</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/priority_queue/pop.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="343.88,-56.25 225.88,-56.25 225.88,-37 343.88,-37 343.88,-56.25"/>
<text text-anchor="middle" x="284.88" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::priority_queue::pop</text>
</a>
</g>
</g>
<!-- Node7&#45;&gt;Node9 -->
<g id="edge8_Node000007_Node000009" class="edge">
<title>Node7&#45;&gt;Node9</title>
<g id="a_edge8_Node000007_Node000009"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M189.93,-60.06C198.09,-58.89 206.51,-57.69 214.81,-56.5"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="215.22,-59.83 224.62,-54.95 214.23,-52.9 215.22,-59.83"/>
</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/priority_queue/top.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="342.75,-19.25 227,-19.25 227,0 342.75,0 342.75,-19.25"/>
<text text-anchor="middle" x="284.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::priority_queue::top</text>
</a>
</g>
</g>
<!-- Node7&#45;&gt;Node10 -->
<g id="edge9_Node000007_Node000010" class="edge">
<title>Node7&#45;&gt;Node10</title>
<g id="a_edge9_Node000007_Node000010"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M151.73,-58.51C170.92,-49.77 199.76,-37.09 225.5,-27.62 229.76,-26.06 234.22,-24.52 238.7,-23.03"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="239.65,-26.08 248.1,-19.68 237.51,-19.41 239.65,-26.08"/>
<path fill="none" stroke="#63b8ff" d="M163.71,-54.2C172.15,-51.65 181.16,-48.88 189.5,-46.25 201.34,-42.52 213.98,-38.43 226.03,-34.49"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="227.05,-37.84 235.46,-31.39 224.87,-31.19 227.05,-37.84"/>
</a>
</g>
</g>

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

@@ -1,19 +1,19 @@
<?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.1.0 (20230707.0739)
<!-- Generated by graphviz version 9.0.0 (20230911.1827)
-->
<!-- Title: test Pages: 1 -->
<svg width="352pt" height="297pt"
viewBox="0.00 0.00 352.25 297.25" 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 293.25)">
<svg width="352pt" height="125pt"
viewBox="0.00 0.00 352.25 124.88" 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 120.88)">
<title>test</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Self&#45;test implementations.">
<polygon fill="#999999" stroke="#666666" points="32.5,-127.25 0,-127.25 0,-108 32.5,-108 32.5,-127.25"/>
<text text-anchor="middle" x="16.25" y="-113.75" font-family="Helvetica,sans-Serif" font-size="10.00">test</text>
<polygon fill="#999999" stroke="#666666" points="32.5,-54.88 0,-54.88 0,-35.62 32.5,-35.62 32.5,-54.88"/>
<text text-anchor="middle" x="16.25" y="-41.38" font-family="Helvetica,sans-Serif" font-size="10.00">test</text>
</a>
</g>
</g>
@@ -21,8 +21,8 @@
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../dd/dca/class_f_c_f_s.html#a8fbfe4d85f7576b4a7aade07d29fbd69" target="_top" xlink:title="Adds the process to the ready queue if it isn&#39;t already there.">
<polygon fill="white" stroke="#666666" points="179,-197.25 79,-197.25 79,-178 179,-178 179,-197.25"/>
<text text-anchor="middle" x="129" y="-183.75" font-family="Helvetica,sans-Serif" font-size="10.00">FCFS::addProcess</text>
<polygon fill="white" stroke="#666666" points="179,-73.88 79,-73.88 79,-54.62 179,-54.62 179,-73.88"/>
<text text-anchor="middle" x="129" y="-60.38" font-family="Helvetica,sans-Serif" font-size="10.00">FCFS::addProcess</text>
</a>
</g>
</g>
@@ -30,26 +30,26 @@
<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="M32.65,-127.36C50.79,-138.83 81.19,-158.04 102.79,-171.69"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="100.69,-175.14 111.01,-177.52 104.43,-169.22 100.69,-175.14"/>
<path fill="none" stroke="#63b8ff" d="M32.65,-47.89C42.03,-49.5 54.69,-51.67 67.71,-53.91"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="66.73,-57.29 77.18,-55.53 67.91,-50.39 66.73,-57.29"/>
</a>
</g>
</g>
<!-- Node7 -->
<g id="Node000007" class="node">
<title>Node7</title>
<g id="a_Node000007"><a xlink:href="../../dd/dca/class_f_c_f_s.html#aa25dbe30ba9930b5a7c1a6d11758bd91" target="_top" xlink:title="Algorithm for scheduling CPU processes according to the First Come First Serve(FCFS) scheduling algor...">
<polygon fill="white" stroke="#666666" points="189.5,-78.25 68.5,-78.25 68.5,-59 189.5,-59 189.5,-78.25"/>
<text text-anchor="middle" x="129" y="-64.75" font-family="Helvetica,sans-Serif" font-size="10.00">FCFS::scheduleForFcfs</text>
<!-- Node6 -->
<g id="Node000006" class="node">
<title>Node6</title>
<g id="a_Node000006"><a xlink:href="../../dd/dca/class_f_c_f_s.html#aa25dbe30ba9930b5a7c1a6d11758bd91" target="_top" xlink:title="Algorithm for scheduling CPU processes according to the First Come First Serve(FCFS) scheduling algor...">
<polygon fill="white" stroke="#666666" points="189.5,-36.88 68.5,-36.88 68.5,-17.62 189.5,-17.62 189.5,-36.88"/>
<text text-anchor="middle" x="129" y="-23.38" font-family="Helvetica,sans-Serif" font-size="10.00">FCFS::scheduleForFcfs</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node7 -->
<g id="edge6_Node000001_Node000007" class="edge">
<title>Node1&#45;&gt;Node7</title>
<g id="a_edge6_Node000001_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M32.65,-110.81C48.82,-103.66 74.72,-92.2 95.45,-83.02"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="96.72,-85.85 104.45,-78.6 93.89,-79.45 96.72,-85.85"/>
<!-- Node1&#45;&gt;Node6 -->
<g id="edge5_Node000001_Node000006" class="edge">
<title>Node1&#45;&gt;Node6</title>
<g id="a_edge5_Node000001_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M32.65,-42.75C39.41,-41.65 47.87,-40.27 56.95,-38.8"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="57.45,-42.26 66.75,-37.2 56.32,-35.35 57.45,-42.26"/>
</a>
</g>
</g>
@@ -57,8 +57,8 @@
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_set/end.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="344.25,-289.25 225.5,-289.25 225.5,-270 344.25,-270 344.25,-289.25"/>
<text text-anchor="middle" x="284.88" y="-275.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_set::end</text>
<polygon fill="white" stroke="#666666" points="344.25,-116.88 225.5,-116.88 225.5,-97.62 344.25,-97.62 344.25,-116.88"/>
<text text-anchor="middle" x="284.88" y="-103.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_set::end</text>
</a>
</g>
</g>
@@ -66,8 +66,8 @@
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node2&#45;&gt;Node3</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M140.62,-197.72C157.42,-213.19 191.69,-242.87 225.5,-260.62 229.01,-262.47 232.73,-264.18 236.53,-265.75"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="235.08,-269.32 245.67,-269.6 237.56,-262.78 235.08,-269.32"/>
<path fill="none" stroke="#63b8ff" d="M166.08,-74.33C187.22,-80.24 214.17,-87.77 236.95,-94.14"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="235.73,-97.43 246.3,-96.75 237.61,-90.69 235.73,-97.43"/>
</a>
</g>
</g>
@@ -75,9 +75,9 @@
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_set/find.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="333.38,-251.88 236.38,-251.88 236.38,-221.38 333.38,-221.38 333.38,-251.88"/>
<text text-anchor="start" x="244.38" y="-238.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_set</text>
<text text-anchor="middle" x="284.88" y="-227.12" font-family="Helvetica,sans-Serif" font-size="10.00">::find</text>
<polygon fill="white" stroke="#666666" points="333.38,-79.5 236.38,-79.5 236.38,-49 333.38,-49 333.38,-79.5"/>
<text text-anchor="start" x="244.38" y="-66" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_set</text>
<text text-anchor="middle" x="284.88" y="-54.75" font-family="Helvetica,sans-Serif" font-size="10.00">::find</text>
</a>
</g>
</g>
@@ -85,8 +85,8 @@
<g id="edge3_Node000002_Node000004" class="edge">
<title>Node2&#45;&gt;Node4</title>
<g id="a_edge3_Node000002_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M161.51,-197.66C179.95,-203.53 203.81,-211.13 225.55,-218.05"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="224.44,-221.69 235.03,-221.39 226.56,-215.02 224.44,-221.69"/>
<path fill="none" stroke="#63b8ff" d="M179.11,-64.25C193.62,-64.25 209.65,-64.25 224.72,-64.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="224.51,-67.75 234.51,-64.25 224.51,-60.75 224.51,-67.75"/>
</a>
</g>
</g>
@@ -94,9 +94,9 @@
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_set/insert.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="333.38,-202.88 236.38,-202.88 236.38,-172.38 333.38,-172.38 333.38,-202.88"/>
<text text-anchor="start" x="244.38" y="-189.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_set</text>
<text text-anchor="middle" x="284.88" y="-178.12" font-family="Helvetica,sans-Serif" font-size="10.00">::insert</text>
<polygon fill="white" stroke="#666666" points="333.38,-30.5 236.38,-30.5 236.38,0 333.38,0 333.38,-30.5"/>
<text text-anchor="start" x="244.38" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_set</text>
<text text-anchor="middle" x="284.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::insert</text>
</a>
</g>
</g>
@@ -104,82 +104,8 @@
<g id="edge4_Node000002_Node000005" class="edge">
<title>Node2&#45;&gt;Node5</title>
<g id="a_edge4_Node000002_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M179.11,-187.62C193.76,-187.62 209.97,-187.62 225.17,-187.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="225.02,-191.13 235.02,-187.62 225.02,-184.13 225.02,-191.13"/>
</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/priority_queue/push.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="333,-153.88 236.75,-153.88 236.75,-123.38 333,-123.38 333,-153.88"/>
<text text-anchor="start" x="244.75" y="-140.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::priority_queue</text>
<text text-anchor="middle" x="284.88" y="-129.12" font-family="Helvetica,sans-Serif" font-size="10.00">::push</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node6 -->
<g id="edge5_Node000002_Node000006" class="edge">
<title>Node2&#45;&gt;Node6</title>
<g id="a_edge5_Node000002_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M161.51,-177.59C180.11,-171.67 204.22,-163.99 226.12,-157.02"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="226.86,-160.14 235.33,-153.77 224.74,-153.47 226.86,-160.14"/>
</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/priority_queue/empty.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="333,-104.88 236.75,-104.88 236.75,-74.38 333,-74.38 333,-104.88"/>
<text text-anchor="start" x="244.75" y="-91.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::priority_queue</text>
<text text-anchor="middle" x="284.88" y="-80.12" font-family="Helvetica,sans-Serif" font-size="10.00">::empty</text>
</a>
</g>
</g>
<!-- Node7&#45;&gt;Node8 -->
<g id="edge7_Node000007_Node000008" class="edge">
<title>Node7&#45;&gt;Node8</title>
<g id="a_edge7_Node000007_Node000008"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M189.93,-76.8C201.82,-78.43 214.28,-80.13 226.09,-81.74"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="225.35,-85.31 235.73,-83.19 226.29,-78.37 225.35,-85.31"/>
</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/priority_queue/pop.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="343.88,-56.25 225.88,-56.25 225.88,-37 343.88,-37 343.88,-56.25"/>
<text text-anchor="middle" x="284.88" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::priority_queue::pop</text>
</a>
</g>
</g>
<!-- Node7&#45;&gt;Node9 -->
<g id="edge8_Node000007_Node000009" class="edge">
<title>Node7&#45;&gt;Node9</title>
<g id="a_edge8_Node000007_Node000009"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M189.93,-60.06C198.09,-58.89 206.51,-57.69 214.81,-56.5"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="215.22,-59.83 224.62,-54.95 214.23,-52.9 215.22,-59.83"/>
</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/priority_queue/top.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="342.75,-19.25 227,-19.25 227,0 342.75,0 342.75,-19.25"/>
<text text-anchor="middle" x="284.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::priority_queue::top</text>
</a>
</g>
</g>
<!-- Node7&#45;&gt;Node10 -->
<g id="edge9_Node000007_Node000010" class="edge">
<title>Node7&#45;&gt;Node10</title>
<g id="a_edge9_Node000007_Node000010"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M151.73,-58.51C170.92,-49.77 199.76,-37.09 225.5,-27.62 229.76,-26.06 234.22,-24.52 238.7,-23.03"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="239.65,-26.08 248.1,-19.68 237.51,-19.41 239.65,-26.08"/>
<path fill="none" stroke="#63b8ff" d="M163.71,-54.2C172.15,-51.65 181.16,-48.88 189.5,-46.25 201.34,-42.52 213.98,-38.43 226.03,-34.49"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="227.05,-37.84 235.46,-31.39 224.87,-31.19 227.05,-37.84"/>
</a>
</g>
</g>

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

View File

@@ -1,23 +1,15 @@
<map id="main" name="main">
<area shape="rect" id="Node000001" title="Entry point of the program." alt="" coords="5,221,55,247"/>
<area shape="rect" id="Node000002" href="$df/d47/fcfs__scheduling_8cpp.html#aa8dca7b867074164d5f45b0f3851269d" title="Self&#45;test implementations." alt="" coords="103,221,146,247"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="55,232,88,232,88,237,55,237"/>
<area shape="rect" id="Node000003" href="$dd/dca/class_f_c_f_s.html#a8fbfe4d85f7576b4a7aade07d29fbd69" title="Adds the process to the ready queue if it isn&#39;t already there." alt="" coords="208,128,341,154"/>
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="145,219,238,160,241,164,148,223"/>
<area shape="rect" id="Node000008" href="$dd/dca/class_f_c_f_s.html#aa25dbe30ba9930b5a7c1a6d11758bd91" title="Algorithm for scheduling CPU processes according to the First Come First Serve(FCFS) scheduling algor..." alt="" coords="194,287,355,312"/>
<area shape="poly" id="edge7_Node000002_Node000008" title=" " alt="" coords="147,241,231,278,229,283,145,246"/>
<area shape="rect" id="Node000001" title="Entry point of the program." alt="" coords="5,88,55,114"/>
<area shape="rect" id="Node000002" href="$df/d47/fcfs__scheduling_8cpp.html#aa8dca7b867074164d5f45b0f3851269d" title="Self&#45;test implementations." alt="" coords="103,88,146,114"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="55,98,87,98,87,104,55,104"/>
<area shape="rect" id="Node000003" href="$dd/dca/class_f_c_f_s.html#a8fbfe4d85f7576b4a7aade07d29fbd69" title="Adds the process to the ready queue if it isn&#39;t already there." alt="" coords="208,63,341,88"/>
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="146,95,192,87,193,92,147,100"/>
<area shape="rect" id="Node000007" href="$dd/dca/class_f_c_f_s.html#aa25dbe30ba9930b5a7c1a6d11758bd91" title="Algorithm for scheduling CPU processes according to the First Come First Serve(FCFS) scheduling algor..." alt="" coords="194,112,355,138"/>
<area shape="poly" id="edge6_Node000002_Node000007" title=" " alt="" coords="147,102,179,107,178,112,146,107"/>
<area shape="rect" id="Node000004" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/unordered_set/end.html#" title=" " alt="" coords="403,5,562,31"/>
<area shape="poly" id="edge3_Node000003_Node000004" title=" " alt="" coords="288,125,337,84,402,41,417,34,419,39,405,46,340,89,292,129"/>
<area shape="poly" id="edge3_Node000003_Node000004" title=" " alt="" coords="323,59,418,33,419,38,325,65"/>
<area shape="rect" id="Node000005" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/unordered_set/find.html#" title=" " alt="" coords="418,55,547,96"/>
<area shape="poly" id="edge4_Node000003_Node000005" title=" " alt="" coords="317,125,403,98,404,103,319,130"/>
<area shape="poly" id="edge4_Node000003_Node000005" title=" " alt="" coords="341,73,402,73,402,78,341,78"/>
<area shape="rect" id="Node000006" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/unordered_set/insert.html#" title=" " alt="" coords="418,121,547,161"/>
<area shape="poly" id="edge5_Node000003_Node000006" title=" " alt="" coords="341,138,403,138,403,144,341,144"/>
<area shape="rect" id="Node000007" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/priority_queue/push.html#" title=" " alt="" coords="418,186,547,227"/>
<area shape="poly" id="edge6_Node000003_Node000007" title=" " alt="" coords="319,152,405,179,403,184,317,157"/>
<area shape="rect" id="Node000009" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/priority_queue/empty.html#" title=" " alt="" coords="418,251,547,292"/>
<area shape="poly" id="edge8_Node000008_Node000009" title=" " alt="" coords="356,286,404,279,404,285,356,291"/>
<area shape="rect" id="Node000010" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/priority_queue/pop.html#" title=" " alt="" coords="404,316,561,342"/>
<area shape="poly" id="edge9_Node000008_Node000010" title=" " alt="" coords="356,308,389,313,389,318,356,314"/>
<area shape="rect" id="Node000011" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/priority_queue/top.html#" title=" " alt="" coords="405,365,560,391"/>
<area shape="poly" id="edge10_Node000008_Node000011" title=" " alt="" coords="306,311,404,352,422,358,420,363,402,357,304,315"/>
<area shape="poly" id="edge5_Node000003_Node000006" title=" " alt="" coords="322,86,356,97,405,113,403,118,355,102,320,91"/>
</map>

View File

@@ -1 +1 @@
dce85c45e1d11eb2c00dfec29e1633a9
808d0f9e1715c140df401dbe64267a8c

View File

@@ -1,11 +1,11 @@
<?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.1.0 (20230707.0739)
<!-- Generated by graphviz version 9.0.0 (20230911.1827)
-->
<!-- Title: main Pages: 1 -->
<svg width="425pt" height="297pt"
viewBox="0.00 0.00 425.25 297.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg width="425pt" height="125pt"
viewBox="0.00 0.00 425.25 124.88" 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[
@@ -16,14 +16,14 @@
]]></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 293.25)">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 120.88)">
<title>main</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Entry point of the program.">
<polygon fill="#999999" stroke="#666666" points="37,-127.25 0,-127.25 0,-108 37,-108 37,-127.25"/>
<text text-anchor="middle" x="18.5" y="-113.75" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
<polygon fill="#999999" stroke="#666666" points="37,-54.88 0,-54.88 0,-35.62 37,-35.62 37,-54.88"/>
<text text-anchor="middle" x="18.5" y="-41.38" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
</a>
</g>
</g>
@@ -31,8 +31,8 @@
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../df/d47/fcfs__scheduling_8cpp.html#aa8dca7b867074164d5f45b0f3851269d" target="_top" xlink:title="Self&#45;test implementations.">
<polygon fill="white" stroke="#666666" points="105.5,-127.25 73,-127.25 73,-108 105.5,-108 105.5,-127.25"/>
<text text-anchor="middle" x="89.25" y="-113.75" font-family="Helvetica,sans-Serif" font-size="10.00">test</text>
<polygon fill="white" stroke="#666666" points="105.5,-54.88 73,-54.88 73,-35.62 105.5,-35.62 105.5,-54.88"/>
<text text-anchor="middle" x="89.25" y="-41.38" font-family="Helvetica,sans-Serif" font-size="10.00">test</text>
</a>
</g>
</g>
@@ -40,8 +40,8 @@
<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="M37.2,-117.62C44.67,-117.62 53.52,-117.62 61.73,-117.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.71,-121.13 71.71,-117.62 61.71,-114.13 61.71,-121.13"/>
<path fill="none" stroke="#63b8ff" d="M37.2,-45.25C44.58,-45.25 53.31,-45.25 61.45,-45.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.2,-48.75 71.2,-45.25 61.2,-41.75 61.2,-48.75"/>
</a>
</g>
</g>
@@ -49,8 +49,8 @@
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:href="../../dd/dca/class_f_c_f_s.html#a8fbfe4d85f7576b4a7aade07d29fbd69" target="_top" xlink:title="Adds the process to the ready queue if it isn&#39;t already there.">
<polygon fill="white" stroke="#666666" points="252,-197.25 152,-197.25 152,-178 252,-178 252,-197.25"/>
<text text-anchor="middle" x="202" y="-183.75" font-family="Helvetica,sans-Serif" font-size="10.00">FCFS::addProcess</text>
<polygon fill="white" stroke="#666666" points="252,-73.88 152,-73.88 152,-54.62 252,-54.62 252,-73.88"/>
<text text-anchor="middle" x="202" y="-60.38" font-family="Helvetica,sans-Serif" font-size="10.00">FCFS::addProcess</text>
</a>
</g>
</g>
@@ -58,26 +58,26 @@
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node2&#45;&gt;Node3</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M105.65,-127.36C123.79,-138.83 154.19,-158.04 175.79,-171.69"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="173.69,-175.14 184.01,-177.52 177.43,-169.22 173.69,-175.14"/>
<path fill="none" stroke="#63b8ff" d="M105.65,-47.89C115.03,-49.5 127.69,-51.67 140.71,-53.91"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="139.73,-57.29 150.18,-55.53 140.91,-50.39 139.73,-57.29"/>
</a>
</g>
</g>
<!-- Node8 -->
<g id="Node000008" class="node">
<title>Node8</title>
<g id="a_Node000008"><a xlink:href="../../dd/dca/class_f_c_f_s.html#aa25dbe30ba9930b5a7c1a6d11758bd91" target="_top" xlink:title="Algorithm for scheduling CPU processes according to the First Come First Serve(FCFS) scheduling algor...">
<polygon fill="white" stroke="#666666" points="262.5,-78.25 141.5,-78.25 141.5,-59 262.5,-59 262.5,-78.25"/>
<text text-anchor="middle" x="202" y="-64.75" font-family="Helvetica,sans-Serif" font-size="10.00">FCFS::scheduleForFcfs</text>
<!-- Node7 -->
<g id="Node000007" class="node">
<title>Node7</title>
<g id="a_Node000007"><a xlink:href="../../dd/dca/class_f_c_f_s.html#aa25dbe30ba9930b5a7c1a6d11758bd91" target="_top" xlink:title="Algorithm for scheduling CPU processes according to the First Come First Serve(FCFS) scheduling algor...">
<polygon fill="white" stroke="#666666" points="262.5,-36.88 141.5,-36.88 141.5,-17.62 262.5,-17.62 262.5,-36.88"/>
<text text-anchor="middle" x="202" y="-23.38" font-family="Helvetica,sans-Serif" font-size="10.00">FCFS::scheduleForFcfs</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node8 -->
<g id="edge7_Node000002_Node000008" class="edge">
<title>Node2&#45;&gt;Node8</title>
<g id="a_edge7_Node000002_Node000008"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M105.65,-110.81C121.82,-103.66 147.72,-92.2 168.45,-83.02"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="169.72,-85.85 177.45,-78.6 166.89,-79.45 169.72,-85.85"/>
<!-- Node2&#45;&gt;Node7 -->
<g id="edge6_Node000002_Node000007" class="edge">
<title>Node2&#45;&gt;Node7</title>
<g id="a_edge6_Node000002_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M105.65,-42.75C112.41,-41.65 120.87,-40.27 129.95,-38.8"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="130.45,-42.26 139.75,-37.2 129.32,-35.35 130.45,-42.26"/>
</a>
</g>
</g>
@@ -85,8 +85,8 @@
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_set/end.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="417.25,-289.25 298.5,-289.25 298.5,-270 417.25,-270 417.25,-289.25"/>
<text text-anchor="middle" x="357.88" y="-275.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_set::end</text>
<polygon fill="white" stroke="#666666" points="417.25,-116.88 298.5,-116.88 298.5,-97.62 417.25,-97.62 417.25,-116.88"/>
<text text-anchor="middle" x="357.88" y="-103.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_set::end</text>
</a>
</g>
</g>
@@ -94,8 +94,8 @@
<g id="edge3_Node000003_Node000004" class="edge">
<title>Node3&#45;&gt;Node4</title>
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M213.62,-197.72C230.42,-213.19 264.69,-242.87 298.5,-260.62 302.01,-262.47 305.73,-264.18 309.53,-265.75"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="308.08,-269.32 318.67,-269.6 310.56,-262.78 308.08,-269.32"/>
<path fill="none" stroke="#63b8ff" d="M239.08,-74.33C260.22,-80.24 287.17,-87.77 309.95,-94.14"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="308.73,-97.43 319.3,-96.75 310.61,-90.69 308.73,-97.43"/>
</a>
</g>
</g>
@@ -103,9 +103,9 @@
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_set/find.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="406.38,-251.88 309.38,-251.88 309.38,-221.38 406.38,-221.38 406.38,-251.88"/>
<text text-anchor="start" x="317.38" y="-238.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_set</text>
<text text-anchor="middle" x="357.88" y="-227.12" font-family="Helvetica,sans-Serif" font-size="10.00">::find</text>
<polygon fill="white" stroke="#666666" points="406.38,-79.5 309.38,-79.5 309.38,-49 406.38,-49 406.38,-79.5"/>
<text text-anchor="start" x="317.38" y="-66" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_set</text>
<text text-anchor="middle" x="357.88" y="-54.75" font-family="Helvetica,sans-Serif" font-size="10.00">::find</text>
</a>
</g>
</g>
@@ -113,8 +113,8 @@
<g id="edge4_Node000003_Node000005" class="edge">
<title>Node3&#45;&gt;Node5</title>
<g id="a_edge4_Node000003_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M234.51,-197.66C252.95,-203.53 276.81,-211.13 298.55,-218.05"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="297.44,-221.69 308.03,-221.39 299.56,-215.02 297.44,-221.69"/>
<path fill="none" stroke="#63b8ff" d="M252.11,-64.25C266.62,-64.25 282.65,-64.25 297.72,-64.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="297.51,-67.75 307.51,-64.25 297.51,-60.75 297.51,-67.75"/>
</a>
</g>
</g>
@@ -122,9 +122,9 @@
<g id="Node000006" class="node">
<title>Node6</title>
<g id="a_Node000006"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_set/insert.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="406.38,-202.88 309.38,-202.88 309.38,-172.38 406.38,-172.38 406.38,-202.88"/>
<text text-anchor="start" x="317.38" y="-189.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_set</text>
<text text-anchor="middle" x="357.88" y="-178.12" font-family="Helvetica,sans-Serif" font-size="10.00">::insert</text>
<polygon fill="white" stroke="#666666" points="406.38,-30.5 309.38,-30.5 309.38,0 406.38,0 406.38,-30.5"/>
<text text-anchor="start" x="317.38" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_set</text>
<text text-anchor="middle" x="357.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::insert</text>
</a>
</g>
</g>
@@ -132,82 +132,8 @@
<g id="edge5_Node000003_Node000006" class="edge">
<title>Node3&#45;&gt;Node6</title>
<g id="a_edge5_Node000003_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M252.11,-187.62C266.76,-187.62 282.97,-187.62 298.17,-187.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="298.02,-191.13 308.02,-187.62 298.02,-184.13 298.02,-191.13"/>
</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/priority_queue/push.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="406,-153.88 309.75,-153.88 309.75,-123.38 406,-123.38 406,-153.88"/>
<text text-anchor="start" x="317.75" y="-140.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::priority_queue</text>
<text text-anchor="middle" x="357.88" y="-129.12" font-family="Helvetica,sans-Serif" font-size="10.00">::push</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node7 -->
<g id="edge6_Node000003_Node000007" class="edge">
<title>Node3&#45;&gt;Node7</title>
<g id="a_edge6_Node000003_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M234.51,-177.59C253.11,-171.67 277.22,-163.99 299.12,-157.02"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="299.86,-160.14 308.33,-153.77 297.74,-153.47 299.86,-160.14"/>
</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/priority_queue/empty.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="406,-104.88 309.75,-104.88 309.75,-74.38 406,-74.38 406,-104.88"/>
<text text-anchor="start" x="317.75" y="-91.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::priority_queue</text>
<text text-anchor="middle" x="357.88" y="-80.12" font-family="Helvetica,sans-Serif" font-size="10.00">::empty</text>
</a>
</g>
</g>
<!-- Node8&#45;&gt;Node9 -->
<g id="edge8_Node000008_Node000009" class="edge">
<title>Node8&#45;&gt;Node9</title>
<g id="a_edge8_Node000008_Node000009"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M262.93,-76.8C274.82,-78.43 287.28,-80.13 299.09,-81.74"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="298.35,-85.31 308.73,-83.19 299.29,-78.37 298.35,-85.31"/>
</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/priority_queue/pop.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="416.88,-56.25 298.88,-56.25 298.88,-37 416.88,-37 416.88,-56.25"/>
<text text-anchor="middle" x="357.88" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::priority_queue::pop</text>
</a>
</g>
</g>
<!-- Node8&#45;&gt;Node10 -->
<g id="edge9_Node000008_Node000010" class="edge">
<title>Node8&#45;&gt;Node10</title>
<g id="a_edge9_Node000008_Node000010"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M262.93,-60.06C271.09,-58.89 279.51,-57.69 287.81,-56.5"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="288.22,-59.83 297.62,-54.95 287.23,-52.9 288.22,-59.83"/>
</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/priority_queue/top.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="415.75,-19.25 300,-19.25 300,0 415.75,0 415.75,-19.25"/>
<text text-anchor="middle" x="357.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::priority_queue::top</text>
</a>
</g>
</g>
<!-- Node8&#45;&gt;Node11 -->
<g id="edge10_Node000008_Node000011" class="edge">
<title>Node8&#45;&gt;Node11</title>
<g id="a_edge10_Node000008_Node000011"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M224.73,-58.51C243.92,-49.77 272.76,-37.09 298.5,-27.62 302.76,-26.06 307.22,-24.52 311.7,-23.03"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="312.65,-26.08 321.1,-19.68 310.51,-19.41 312.65,-26.08"/>
<path fill="none" stroke="#63b8ff" d="M236.71,-54.2C245.15,-51.65 254.16,-48.88 262.5,-46.25 274.34,-42.52 286.98,-38.43 299.03,-34.49"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="300.05,-37.84 308.46,-31.39 297.87,-31.19 300.05,-37.84"/>
</a>
</g>
</g>

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 7.0 KiB

View File

@@ -1,19 +1,19 @@
<?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.1.0 (20230707.0739)
<!-- Generated by graphviz version 9.0.0 (20230911.1827)
-->
<!-- Title: main Pages: 1 -->
<svg width="425pt" height="297pt"
viewBox="0.00 0.00 425.25 297.25" 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 293.25)">
<svg width="425pt" height="125pt"
viewBox="0.00 0.00 425.25 124.88" 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 120.88)">
<title>main</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Entry point of the program.">
<polygon fill="#999999" stroke="#666666" points="37,-127.25 0,-127.25 0,-108 37,-108 37,-127.25"/>
<text text-anchor="middle" x="18.5" y="-113.75" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
<polygon fill="#999999" stroke="#666666" points="37,-54.88 0,-54.88 0,-35.62 37,-35.62 37,-54.88"/>
<text text-anchor="middle" x="18.5" y="-41.38" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
</a>
</g>
</g>
@@ -21,8 +21,8 @@
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../df/d47/fcfs__scheduling_8cpp.html#aa8dca7b867074164d5f45b0f3851269d" target="_top" xlink:title="Self&#45;test implementations.">
<polygon fill="white" stroke="#666666" points="105.5,-127.25 73,-127.25 73,-108 105.5,-108 105.5,-127.25"/>
<text text-anchor="middle" x="89.25" y="-113.75" font-family="Helvetica,sans-Serif" font-size="10.00">test</text>
<polygon fill="white" stroke="#666666" points="105.5,-54.88 73,-54.88 73,-35.62 105.5,-35.62 105.5,-54.88"/>
<text text-anchor="middle" x="89.25" y="-41.38" font-family="Helvetica,sans-Serif" font-size="10.00">test</text>
</a>
</g>
</g>
@@ -30,8 +30,8 @@
<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="M37.2,-117.62C44.67,-117.62 53.52,-117.62 61.73,-117.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.71,-121.13 71.71,-117.62 61.71,-114.13 61.71,-121.13"/>
<path fill="none" stroke="#63b8ff" d="M37.2,-45.25C44.58,-45.25 53.31,-45.25 61.45,-45.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.2,-48.75 71.2,-45.25 61.2,-41.75 61.2,-48.75"/>
</a>
</g>
</g>
@@ -39,8 +39,8 @@
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:href="../../dd/dca/class_f_c_f_s.html#a8fbfe4d85f7576b4a7aade07d29fbd69" target="_top" xlink:title="Adds the process to the ready queue if it isn&#39;t already there.">
<polygon fill="white" stroke="#666666" points="252,-197.25 152,-197.25 152,-178 252,-178 252,-197.25"/>
<text text-anchor="middle" x="202" y="-183.75" font-family="Helvetica,sans-Serif" font-size="10.00">FCFS::addProcess</text>
<polygon fill="white" stroke="#666666" points="252,-73.88 152,-73.88 152,-54.62 252,-54.62 252,-73.88"/>
<text text-anchor="middle" x="202" y="-60.38" font-family="Helvetica,sans-Serif" font-size="10.00">FCFS::addProcess</text>
</a>
</g>
</g>
@@ -48,26 +48,26 @@
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node2&#45;&gt;Node3</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M105.65,-127.36C123.79,-138.83 154.19,-158.04 175.79,-171.69"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="173.69,-175.14 184.01,-177.52 177.43,-169.22 173.69,-175.14"/>
<path fill="none" stroke="#63b8ff" d="M105.65,-47.89C115.03,-49.5 127.69,-51.67 140.71,-53.91"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="139.73,-57.29 150.18,-55.53 140.91,-50.39 139.73,-57.29"/>
</a>
</g>
</g>
<!-- Node8 -->
<g id="Node000008" class="node">
<title>Node8</title>
<g id="a_Node000008"><a xlink:href="../../dd/dca/class_f_c_f_s.html#aa25dbe30ba9930b5a7c1a6d11758bd91" target="_top" xlink:title="Algorithm for scheduling CPU processes according to the First Come First Serve(FCFS) scheduling algor...">
<polygon fill="white" stroke="#666666" points="262.5,-78.25 141.5,-78.25 141.5,-59 262.5,-59 262.5,-78.25"/>
<text text-anchor="middle" x="202" y="-64.75" font-family="Helvetica,sans-Serif" font-size="10.00">FCFS::scheduleForFcfs</text>
<!-- Node7 -->
<g id="Node000007" class="node">
<title>Node7</title>
<g id="a_Node000007"><a xlink:href="../../dd/dca/class_f_c_f_s.html#aa25dbe30ba9930b5a7c1a6d11758bd91" target="_top" xlink:title="Algorithm for scheduling CPU processes according to the First Come First Serve(FCFS) scheduling algor...">
<polygon fill="white" stroke="#666666" points="262.5,-36.88 141.5,-36.88 141.5,-17.62 262.5,-17.62 262.5,-36.88"/>
<text text-anchor="middle" x="202" y="-23.38" font-family="Helvetica,sans-Serif" font-size="10.00">FCFS::scheduleForFcfs</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node8 -->
<g id="edge7_Node000002_Node000008" class="edge">
<title>Node2&#45;&gt;Node8</title>
<g id="a_edge7_Node000002_Node000008"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M105.65,-110.81C121.82,-103.66 147.72,-92.2 168.45,-83.02"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="169.72,-85.85 177.45,-78.6 166.89,-79.45 169.72,-85.85"/>
<!-- Node2&#45;&gt;Node7 -->
<g id="edge6_Node000002_Node000007" class="edge">
<title>Node2&#45;&gt;Node7</title>
<g id="a_edge6_Node000002_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M105.65,-42.75C112.41,-41.65 120.87,-40.27 129.95,-38.8"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="130.45,-42.26 139.75,-37.2 129.32,-35.35 130.45,-42.26"/>
</a>
</g>
</g>
@@ -75,8 +75,8 @@
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_set/end.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="417.25,-289.25 298.5,-289.25 298.5,-270 417.25,-270 417.25,-289.25"/>
<text text-anchor="middle" x="357.88" y="-275.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_set::end</text>
<polygon fill="white" stroke="#666666" points="417.25,-116.88 298.5,-116.88 298.5,-97.62 417.25,-97.62 417.25,-116.88"/>
<text text-anchor="middle" x="357.88" y="-103.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_set::end</text>
</a>
</g>
</g>
@@ -84,8 +84,8 @@
<g id="edge3_Node000003_Node000004" class="edge">
<title>Node3&#45;&gt;Node4</title>
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M213.62,-197.72C230.42,-213.19 264.69,-242.87 298.5,-260.62 302.01,-262.47 305.73,-264.18 309.53,-265.75"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="308.08,-269.32 318.67,-269.6 310.56,-262.78 308.08,-269.32"/>
<path fill="none" stroke="#63b8ff" d="M239.08,-74.33C260.22,-80.24 287.17,-87.77 309.95,-94.14"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="308.73,-97.43 319.3,-96.75 310.61,-90.69 308.73,-97.43"/>
</a>
</g>
</g>
@@ -93,9 +93,9 @@
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_set/find.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="406.38,-251.88 309.38,-251.88 309.38,-221.38 406.38,-221.38 406.38,-251.88"/>
<text text-anchor="start" x="317.38" y="-238.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_set</text>
<text text-anchor="middle" x="357.88" y="-227.12" font-family="Helvetica,sans-Serif" font-size="10.00">::find</text>
<polygon fill="white" stroke="#666666" points="406.38,-79.5 309.38,-79.5 309.38,-49 406.38,-49 406.38,-79.5"/>
<text text-anchor="start" x="317.38" y="-66" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_set</text>
<text text-anchor="middle" x="357.88" y="-54.75" font-family="Helvetica,sans-Serif" font-size="10.00">::find</text>
</a>
</g>
</g>
@@ -103,8 +103,8 @@
<g id="edge4_Node000003_Node000005" class="edge">
<title>Node3&#45;&gt;Node5</title>
<g id="a_edge4_Node000003_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M234.51,-197.66C252.95,-203.53 276.81,-211.13 298.55,-218.05"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="297.44,-221.69 308.03,-221.39 299.56,-215.02 297.44,-221.69"/>
<path fill="none" stroke="#63b8ff" d="M252.11,-64.25C266.62,-64.25 282.65,-64.25 297.72,-64.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="297.51,-67.75 307.51,-64.25 297.51,-60.75 297.51,-67.75"/>
</a>
</g>
</g>
@@ -112,9 +112,9 @@
<g id="Node000006" class="node">
<title>Node6</title>
<g id="a_Node000006"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/unordered_set/insert.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="406.38,-202.88 309.38,-202.88 309.38,-172.38 406.38,-172.38 406.38,-202.88"/>
<text text-anchor="start" x="317.38" y="-189.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_set</text>
<text text-anchor="middle" x="357.88" y="-178.12" font-family="Helvetica,sans-Serif" font-size="10.00">::insert</text>
<polygon fill="white" stroke="#666666" points="406.38,-30.5 309.38,-30.5 309.38,0 406.38,0 406.38,-30.5"/>
<text text-anchor="start" x="317.38" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">std::unordered_set</text>
<text text-anchor="middle" x="357.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::insert</text>
</a>
</g>
</g>
@@ -122,82 +122,8 @@
<g id="edge5_Node000003_Node000006" class="edge">
<title>Node3&#45;&gt;Node6</title>
<g id="a_edge5_Node000003_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M252.11,-187.62C266.76,-187.62 282.97,-187.62 298.17,-187.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="298.02,-191.13 308.02,-187.62 298.02,-184.13 298.02,-191.13"/>
</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/priority_queue/push.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="406,-153.88 309.75,-153.88 309.75,-123.38 406,-123.38 406,-153.88"/>
<text text-anchor="start" x="317.75" y="-140.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::priority_queue</text>
<text text-anchor="middle" x="357.88" y="-129.12" font-family="Helvetica,sans-Serif" font-size="10.00">::push</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node7 -->
<g id="edge6_Node000003_Node000007" class="edge">
<title>Node3&#45;&gt;Node7</title>
<g id="a_edge6_Node000003_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M234.51,-177.59C253.11,-171.67 277.22,-163.99 299.12,-157.02"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="299.86,-160.14 308.33,-153.77 297.74,-153.47 299.86,-160.14"/>
</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/priority_queue/empty.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="406,-104.88 309.75,-104.88 309.75,-74.38 406,-74.38 406,-104.88"/>
<text text-anchor="start" x="317.75" y="-91.38" font-family="Helvetica,sans-Serif" font-size="10.00">std::priority_queue</text>
<text text-anchor="middle" x="357.88" y="-80.12" font-family="Helvetica,sans-Serif" font-size="10.00">::empty</text>
</a>
</g>
</g>
<!-- Node8&#45;&gt;Node9 -->
<g id="edge8_Node000008_Node000009" class="edge">
<title>Node8&#45;&gt;Node9</title>
<g id="a_edge8_Node000008_Node000009"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M262.93,-76.8C274.82,-78.43 287.28,-80.13 299.09,-81.74"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="298.35,-85.31 308.73,-83.19 299.29,-78.37 298.35,-85.31"/>
</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/priority_queue/pop.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="416.88,-56.25 298.88,-56.25 298.88,-37 416.88,-37 416.88,-56.25"/>
<text text-anchor="middle" x="357.88" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::priority_queue::pop</text>
</a>
</g>
</g>
<!-- Node8&#45;&gt;Node10 -->
<g id="edge9_Node000008_Node000010" class="edge">
<title>Node8&#45;&gt;Node10</title>
<g id="a_edge9_Node000008_Node000010"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M262.93,-60.06C271.09,-58.89 279.51,-57.69 287.81,-56.5"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="288.22,-59.83 297.62,-54.95 287.23,-52.9 288.22,-59.83"/>
</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/priority_queue/top.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="415.75,-19.25 300,-19.25 300,0 415.75,0 415.75,-19.25"/>
<text text-anchor="middle" x="357.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::priority_queue::top</text>
</a>
</g>
</g>
<!-- Node8&#45;&gt;Node11 -->
<g id="edge10_Node000008_Node000011" class="edge">
<title>Node8&#45;&gt;Node11</title>
<g id="a_edge10_Node000008_Node000011"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M224.73,-58.51C243.92,-49.77 272.76,-37.09 298.5,-27.62 302.76,-26.06 307.22,-24.52 311.7,-23.03"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="312.65,-26.08 321.1,-19.68 310.51,-19.41 312.65,-26.08"/>
<path fill="none" stroke="#63b8ff" d="M236.71,-54.2C245.15,-51.65 254.16,-48.88 262.5,-46.25 274.34,-42.52 286.98,-38.43 299.03,-34.49"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="300.05,-37.84 308.46,-31.39 297.87,-31.19 300.05,-37.84"/>
</a>
</g>
</g>

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

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.7"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Algorithms_in_C++: data_structures/stack.hpp File Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
@@ -41,7 +41,7 @@ MathJax.Hub.Config({
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.7 -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
@@ -132,7 +132,7 @@ Classes</h2></td></tr>
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="../../dir_2e746e9d06bf2d8ff842208bcc6ebcfc.html">data_structures</a></li><li class="navelem"><a class="el" href="../../df/d47/stack_8hpp.html">stack.hpp</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.7 </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.8 </li>
</ul>
</div>
</body>

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.7"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Algorithms_in_C++: data_structures/stack.hpp Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
@@ -41,7 +41,7 @@ MathJax.Hub.Config({
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.7 -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
@@ -58,6 +58,11 @@ $(function() {
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(1); });
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
@@ -118,17 +123,20 @@ $(document).ready(function(){initNavTree('df/d47/stack_8hpp_source.html','../../
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment"> * contain</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="comment"> */</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="keyword">template</span> &lt;<span class="keyword">class</span> ValueType&gt;</div>
<div class="foldopen" id="foldopen00019" data-start="{" data-end="};">
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="../../d1/dc2/classstack.html"> 19</a></span><span class="keyword">class </span><a class="code hl_class" href="../../d1/dc2/classstack.html">stack</a> {</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> <span class="keyword">using </span>value_type = ValueType;</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="comment"></span> </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="comment"> /** Show stack */</span></div>
<div class="foldopen" id="foldopen00024" data-start="{" data-end="}">
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="../../d1/dc2/classstack.html#a8bce109630118a34faae717f72986033"> 24</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d1/dc2/classstack.html#a8bce109630118a34faae717f72986033">display</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</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;Top --&gt; &quot;</span>;</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> display_all(this-&gt;<a class="code hl_variable" href="../../d1/dc2/classstack.html#aefb3dac828e32b4ec014ff4b5d43a6b8">stackTop</a>.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/memory/shared_ptr/get.html">get</a>());</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</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="charliteral">&#39;\n&#39;</span>;</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</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;Size of stack: &quot;</span> &lt;&lt; <a class="code hl_variable" href="../../d1/dc2/classstack.html#a0a6b2b93ec970296940798ee98a5072e">size</a> &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="l00029" name="l00029"></a><span class="lineno"> 29</span> }</div>
</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> </div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;value_type&gt;</a> toVector()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> <span class="keywordflow">return</span> push_all_to_vector(this-&gt;<a class="code hl_variable" href="../../d1/dc2/classstack.html#aefb3dac828e32b4ec014ff4b5d43a6b8">stackTop</a>.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/memory/shared_ptr/get.html">get</a>(), this-&gt;size);</div>
@@ -146,6 +154,7 @@ $(document).ready(function(){initNavTree('df/d47/stack_8hpp_source.html','../../
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="../../d1/dc2/classstack.html#a163eb9a6206c874c9bf98d032fca11c5"> 44</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="../../d1/dc2/classstack.html#a163eb9a6206c874c9bf98d032fca11c5">isEmptyStack</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (<a class="code hl_variable" href="../../d1/dc2/classstack.html#aefb3dac828e32b4ec014ff4b5d43a6b8">stackTop</a> == <span class="keyword">nullptr</span>); }</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span><span class="comment"></span> </div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span><span class="comment"> /** Add new item to the stack */</span></div>
<div class="foldopen" id="foldopen00047" data-start="{" data-end="}">
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="../../d1/dc2/classstack.html#a90df277532c23519aa7ac3c08ed90a1d"> 47</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d1/dc2/classstack.html#a90df277532c23519aa7ac3c08ed90a1d">push</a>(<span class="keyword">const</span> value_type&amp; item) {</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <span class="keyword">auto</span> newNode = std::make_shared&lt;Node&lt;value_type&gt;&gt;();</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> newNode-&gt;data = item;</div>
@@ -153,31 +162,41 @@ $(document).ready(function(){initNavTree('df/d47/stack_8hpp_source.html','../../
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <a class="code hl_variable" href="../../d1/dc2/classstack.html#aefb3dac828e32b4ec014ff4b5d43a6b8">stackTop</a> = newNode;</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <a class="code hl_variable" href="../../d1/dc2/classstack.html#a0a6b2b93ec970296940798ee98a5072e">size</a>++;</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> }</div>
</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span><span class="comment"></span> </div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span><span class="comment"> /** Return the top element of the stack */</span></div>
<div class="foldopen" id="foldopen00056" data-start="{" data-end="}">
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"><a class="line" href="../../d1/dc2/classstack.html#ae09630c4384903d187801921b2ddc709"> 56</a></span> value_type <a class="code hl_function" href="../../d1/dc2/classstack.html#ae09630c4384903d187801921b2ddc709">top</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> ensureNotEmpty();</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="../../d1/dc2/classstack.html#aefb3dac828e32b4ec014ff4b5d43a6b8">stackTop</a>-&gt;data;</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> }</div>
</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span><span class="comment"></span> </div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span><span class="comment"> /** Remove the top element of the stack */</span></div>
<div class="foldopen" id="foldopen00062" data-start="{" data-end="}">
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"><a class="line" href="../../d1/dc2/classstack.html#a3647fb4418890f19e0dc414b8092b8b0"> 62</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d1/dc2/classstack.html#a3647fb4418890f19e0dc414b8092b8b0">pop</a>() {</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> ensureNotEmpty();</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <a class="code hl_variable" href="../../d1/dc2/classstack.html#aefb3dac828e32b4ec014ff4b5d43a6b8">stackTop</a> = <a class="code hl_variable" href="../../d1/dc2/classstack.html#aefb3dac828e32b4ec014ff4b5d43a6b8">stackTop</a>-&gt;next;</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> <a class="code hl_variable" href="../../d1/dc2/classstack.html#a0a6b2b93ec970296940798ee98a5072e">size</a>--;</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> }</div>
</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span><span class="comment"></span> </div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span><span class="comment"> /** Clear stack */</span></div>
<div class="foldopen" id="foldopen00069" data-start="{" data-end="}">
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="../../d1/dc2/classstack.html#a6f13157faa1a762c59e67da8b9516092"> 69</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d1/dc2/classstack.html#a6f13157faa1a762c59e67da8b9516092">clear</a>() {</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <a class="code hl_variable" href="../../d1/dc2/classstack.html#aefb3dac828e32b4ec014ff4b5d43a6b8">stackTop</a> = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <a class="code hl_variable" href="../../d1/dc2/classstack.html#a0a6b2b93ec970296940798ee98a5072e">size</a> = 0;</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> }</div>
</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> </div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <span class="keyword">private</span>:</div>
<div class="foldopen" id="foldopen00075" data-start="{" data-end="};">
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"><a class="line" href="../../d1/dc2/classstack.html#aefb3dac828e32b4ec014ff4b5d43a6b8"> 75</a></span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;Node&lt;value_type&gt;</a>&gt; <a class="code hl_variable" href="../../d1/dc2/classstack.html#aefb3dac828e32b4ec014ff4b5d43a6b8">stackTop</a> =</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> {}; <span class="comment">/**&lt; Pointer to the stack */</span></div>
</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="../../d1/dc2/classstack.html#a0a6b2b93ec970296940798ee98a5072e"> 77</a></span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> <a class="code hl_variable" href="../../d1/dc2/classstack.html#a0a6b2b93ec970296940798ee98a5072e">size</a> = 0; <span class="comment">///&lt; size of stack</span></div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span>};</div>
</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> </div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span><span class="preprocessor">#endif </span><span class="comment">// DATA_STRUCTURES_STACK_HPP_</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>
@@ -203,7 +222,7 @@ $(document).ready(function(){initNavTree('df/d47/stack_8hpp_source.html','../../
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="../../dir_2e746e9d06bf2d8ff842208bcc6ebcfc.html">data_structures</a></li><li class="navelem"><a class="el" href="../../df/d47/stack_8hpp.html">stack.hpp</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.7 </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.8 </li>
</ul>
</div>
</body>