Documentation for 54a20b447e

This commit is contained in:
realstealthninja
2024-09-01 04:39:22 +00:00
parent 0e621dc6a3
commit 2a5773d8eb
339 changed files with 3051 additions and 1676 deletions

View File

@@ -0,0 +1,517 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.12.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Algorithms_in_C++: data_structures::Stack&lt; T &gt; Class Template Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">Algorithms_in_C++<span id="projectnumber">&#160;1.0.0</span>
</div>
<div id="projectbrief">Set of algorithms implemented in C++.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.12.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('../../',true,false,'search.php','Search',true);
$(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('d2/dc8/classdata__structures_1_1_stack.html','../../'); initResizable(true); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="../../d3/d25/classdata__structures_1_1_stack-members.html">List of all members</a> </div>
<div class="headertitle"><div class="title">data_structures::Stack&lt; T &gt; Class Template Reference</div></div>
</div><!--header-->
<div class="contents">
<p>Class representation of a stack.
<a href="#details">More...</a></p>
<div class="dynheader">
Collaboration diagram for data_structures::Stack&lt; T &gt;:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d3/d11/classdata__structures_1_1_stack__coll__graph.svg" width="196" height="214"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<center><span class="legend">[<a target="top" href="../../graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a8cb0602c8a9c1603d0315938177ecc6a" id="r_a8cb0602c8a9c1603d0315938177ecc6a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a8cb0602c8a9c1603d0315938177ecc6a">Stack</a> (int size)</td></tr>
<tr class="memdesc:a8cb0602c8a9c1603d0315938177ecc6a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a new <a class="el" href="../../d2/dc8/classdata__structures_1_1_stack.html" title="Class representation of a stack.">Stack</a> object. <br /></td></tr>
<tr class="separator:a8cb0602c8a9c1603d0315938177ecc6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa753346c8ee5f21d4f4482398fe6d5c1" id="r_aa753346c8ee5f21d4f4482398fe6d5c1"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa753346c8ee5f21d4f4482398fe6d5c1">full</a> () const</td></tr>
<tr class="memdesc:aa753346c8ee5f21d4f4482398fe6d5c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if the stack is full. <br /></td></tr>
<tr class="separator:aa753346c8ee5f21d4f4482398fe6d5c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04e2e7cb58b2de6d3a15053bfaaf6080" id="r_a04e2e7cb58b2de6d3a15053bfaaf6080"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a04e2e7cb58b2de6d3a15053bfaaf6080">empty</a> () const</td></tr>
<tr class="memdesc:a04e2e7cb58b2de6d3a15053bfaaf6080"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if the stack is empty. <br /></td></tr>
<tr class="separator:a04e2e7cb58b2de6d3a15053bfaaf6080"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9f9b087e9e7c00628e1289f0f1de3b2" id="r_aa9f9b087e9e7c00628e1289f0f1de3b2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa9f9b087e9e7c00628e1289f0f1de3b2">push</a> (T element)</td></tr>
<tr class="memdesc:aa9f9b087e9e7c00628e1289f0f1de3b2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pushes an element onto the stack. <br /></td></tr>
<tr class="separator:aa9f9b087e9e7c00628e1289f0f1de3b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac46842bdd9c655d84f865fa3a03da19b" id="r_ac46842bdd9c655d84f865fa3a03da19b"><td class="memItemLeft" align="right" valign="top">T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac46842bdd9c655d84f865fa3a03da19b">pop</a> ()</td></tr>
<tr class="memdesc:ac46842bdd9c655d84f865fa3a03da19b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pops an element from the stack. <br /></td></tr>
<tr class="separator:ac46842bdd9c655d84f865fa3a03da19b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb86ed67d9d97112897a09cfb10ff586" id="r_abb86ed67d9d97112897a09cfb10ff586"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#abb86ed67d9d97112897a09cfb10ff586">show</a> () const</td></tr>
<tr class="memdesc:abb86ed67d9d97112897a09cfb10ff586"><td class="mdescLeft">&#160;</td><td class="mdescRight">Displays all elements in the stack. <br /></td></tr>
<tr class="separator:abb86ed67d9d97112897a09cfb10ff586"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61dc70e128ee64c9684f03a4c04818b0" id="r_a61dc70e128ee64c9684f03a4c04818b0"><td class="memItemLeft" align="right" valign="top">T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a61dc70e128ee64c9684f03a4c04818b0">topmost</a> () const</td></tr>
<tr class="memdesc:a61dc70e128ee64c9684f03a4c04818b0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Displays the topmost element of the stack. <br /></td></tr>
<tr class="separator:a61dc70e128ee64c9684f03a4c04818b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ac469fcc2229d273450e429139d90e6" id="r_a2ac469fcc2229d273450e429139d90e6"><td class="memItemLeft" align="right" valign="top">T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a2ac469fcc2229d273450e429139d90e6">bottom</a> () const</td></tr>
<tr class="memdesc:a2ac469fcc2229d273450e429139d90e6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Displays the bottom element of the stack. <br /></td></tr>
<tr class="separator:a2ac469fcc2229d273450e429139d90e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a3f912a0e9bed5b24b206584e3010dce3" id="r_a3f912a0e9bed5b24b206584e3010dce3"><td class="memItemLeft" align="right" valign="top"><a id="a3f912a0e9bed5b24b206584e3010dce3" name="a3f912a0e9bed5b24b206584e3010dce3"></a>
<a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr</a>&lt; T[]&gt;&#160;</td><td class="memItemRight" valign="bottom"><b>stack</b></td></tr>
<tr class="memdesc:a3f912a0e9bed5b24b206584e3010dce3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Smart pointer to the stack array. <br /></td></tr>
<tr class="separator:a3f912a0e9bed5b24b206584e3010dce3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a88a10062c0662a385f172669f2f19b86" id="r_a88a10062c0662a385f172669f2f19b86"><td class="memItemLeft" align="right" valign="top"><a id="a88a10062c0662a385f172669f2f19b86" name="a88a10062c0662a385f172669f2f19b86"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>stackSize</b></td></tr>
<tr class="memdesc:a88a10062c0662a385f172669f2f19b86"><td class="mdescLeft">&#160;</td><td class="mdescRight">Maximum size of the stack. <br /></td></tr>
<tr class="separator:a88a10062c0662a385f172669f2f19b86"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71afc94746d47fb2c0c4fa4b612edee6" id="r_a71afc94746d47fb2c0c4fa4b612edee6"><td class="memItemLeft" align="right" valign="top"><a id="a71afc94746d47fb2c0c4fa4b612edee6" name="a71afc94746d47fb2c0c4fa4b612edee6"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>stackIndex</b></td></tr>
<tr class="memdesc:a71afc94746d47fb2c0c4fa4b612edee6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Index pointing to the top element of the stack. <br /></td></tr>
<tr class="separator:a71afc94746d47fb2c0c4fa4b612edee6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;typename T&gt;<br />
class data_structures::Stack&lt; T &gt;</div><p>Class representation of a stack. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">T</td><td>The type of the elements in the stack </td></tr>
</table>
</dd>
</dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a8cb0602c8a9c1603d0315938177ecc6a" name="a8cb0602c8a9c1603d0315938177ecc6a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8cb0602c8a9c1603d0315938177ecc6a">&#9670;&#160;</a></span>Stack()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="../../d2/dc8/classdata__structures_1_1_stack.html">data_structures::Stack</a>&lt; T &gt;::Stack </td>
<td>(</td>
<td class="paramtype">int</td> <td class="paramname"><span class="paramname"><em>size</em></span></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructs a new <a class="el" href="../../d2/dc8/classdata__structures_1_1_stack.html" title="Class representation of a stack.">Stack</a> object. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">size</td><td>Maximum size of the stack </td></tr>
</table>
</dd>
</dl>
<div class="fragment"><div class="line"><span class="lineno"> 28</span>: <a class="code hl_variable" href="#a88a10062c0662a385f172669f2f19b86">stackSize</a>(size), <a class="code hl_variable" href="#a71afc94746d47fb2c0c4fa4b612edee6">stackIndex</a>(-1), <a class="code hl_variable" href="#a3f912a0e9bed5b24b206584e3010dce3">stack</a>(<span class="keyword">new</span> T[size]) {}</div>
<div class="ttc" id="aclassdata__structures_1_1_stack_html_a3f912a0e9bed5b24b206584e3010dce3"><div class="ttname"><a href="#a3f912a0e9bed5b24b206584e3010dce3">data_structures::Stack::stack</a></div><div class="ttdeci">std::unique_ptr&lt; T[]&gt; stack</div><div class="ttdoc">Smart pointer to the stack array.</div><div class="ttdef"><b>Definition</b> stack_using_array.cpp:18</div></div>
<div class="ttc" id="aclassdata__structures_1_1_stack_html_a71afc94746d47fb2c0c4fa4b612edee6"><div class="ttname"><a href="#a71afc94746d47fb2c0c4fa4b612edee6">data_structures::Stack::stackIndex</a></div><div class="ttdeci">int stackIndex</div><div class="ttdoc">Index pointing to the top element of the stack.</div><div class="ttdef"><b>Definition</b> stack_using_array.cpp:20</div></div>
<div class="ttc" id="aclassdata__structures_1_1_stack_html_a88a10062c0662a385f172669f2f19b86"><div class="ttname"><a href="#a88a10062c0662a385f172669f2f19b86">data_structures::Stack::stackSize</a></div><div class="ttdeci">int stackSize</div><div class="ttdoc">Maximum size of the stack.</div><div class="ttdef"><b>Definition</b> stack_using_array.cpp:19</div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a2ac469fcc2229d273450e429139d90e6" name="a2ac469fcc2229d273450e429139d90e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2ac469fcc2229d273450e429139d90e6">&#9670;&#160;</a></span>bottom()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">T <a class="el" href="../../d2/dc8/classdata__structures_1_1_stack.html">data_structures::Stack</a>&lt; T &gt;::bottom </td>
<td>(</td>
<td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Displays the bottom element of the stack. </p>
<dl class="section return"><dt>Returns</dt><dd>The bottom element of the stack </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/error/out_of_range.html">std::out_of_range</a></td><td>if the stack is empty </td></tr>
</table>
</dd>
</dl>
<div class="fragment"><div class="line"><span class="lineno"> 97</span> {</div>
<div class="line"><span class="lineno"> 98</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="#a04e2e7cb58b2de6d3a15053bfaaf6080">empty</a>()) {</div>
<div class="line"><span class="lineno"> 99</span> <span class="keywordflow">throw</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/error/out_of_range.html">std::out_of_range</a>(<span class="stringliteral">&quot;Stack underflow&quot;</span>);</div>
<div class="line"><span class="lineno"> 100</span> }</div>
<div class="line"><span class="lineno"> 101</span> <span class="keywordflow">return</span> <a class="code hl_class" href="../../d1/dc2/classstack.html">stack</a>[0];</div>
<div class="line"><span class="lineno"> 102</span> }</div>
<div class="ttc" id="aclassdata__structures_1_1_stack_html_a04e2e7cb58b2de6d3a15053bfaaf6080"><div class="ttname"><a href="#a04e2e7cb58b2de6d3a15053bfaaf6080">data_structures::Stack::empty</a></div><div class="ttdeci">bool empty() const</div><div class="ttdoc">Checks if the stack is empty.</div><div class="ttdef"><b>Definition</b> stack_using_array.cpp:41</div></div>
<div class="ttc" id="aclassstack_html"><div class="ttname"><a href="../../d1/dc2/classstack.html">stack</a></div><div class="ttdoc">for std::invalid_argument</div><div class="ttdef"><b>Definition</b> stack.hpp:19</div></div>
<div class="ttc" id="aout_of_range_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/error/out_of_range.html">std::out_of_range</a></div></div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d2/dc8/classdata__structures_1_1_stack_a2ac469fcc2229d273450e429139d90e6_cgraph.svg" width="366" height="52"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</div>
<a id="a04e2e7cb58b2de6d3a15053bfaaf6080" name="a04e2e7cb58b2de6d3a15053bfaaf6080"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a04e2e7cb58b2de6d3a15053bfaaf6080">&#9670;&#160;</a></span>empty()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="../../d2/dc8/classdata__structures_1_1_stack.html">data_structures::Stack</a>&lt; T &gt;::empty </td>
<td>(</td>
<td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Checks if the stack is empty. </p>
<dl class="section return"><dt>Returns</dt><dd>true if the stack is empty, false otherwise </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 41</span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="#a71afc94746d47fb2c0c4fa4b612edee6">stackIndex</a> == -1; }</div>
</div><!-- fragment -->
</div>
</div>
<a id="aa753346c8ee5f21d4f4482398fe6d5c1" name="aa753346c8ee5f21d4f4482398fe6d5c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa753346c8ee5f21d4f4482398fe6d5c1">&#9670;&#160;</a></span>full()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="../../d2/dc8/classdata__structures_1_1_stack.html">data_structures::Stack</a>&lt; T &gt;::full </td>
<td>(</td>
<td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Checks if the stack is full. </p>
<dl class="section return"><dt>Returns</dt><dd>true if the stack is full, false otherwise </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 35</span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="#a71afc94746d47fb2c0c4fa4b612edee6">stackIndex</a> == <a class="code hl_variable" href="#a88a10062c0662a385f172669f2f19b86">stackSize</a> - 1; }</div>
</div><!-- fragment -->
</div>
</div>
<a id="ac46842bdd9c655d84f865fa3a03da19b" name="ac46842bdd9c655d84f865fa3a03da19b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac46842bdd9c655d84f865fa3a03da19b">&#9670;&#160;</a></span>pop()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">T <a class="el" href="../../d2/dc8/classdata__structures_1_1_stack.html">data_structures::Stack</a>&lt; T &gt;::pop </td>
<td>(</td>
<td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Pops an element from the stack. </p>
<dl class="section return"><dt>Returns</dt><dd>The popped element </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/error/out_of_range.html">std::out_of_range</a></td><td>if the stack is empty </td></tr>
</table>
</dd>
</dl>
<div class="fragment"><div class="line"><span class="lineno"> 62</span> {</div>
<div class="line"><span class="lineno"> 63</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="#a04e2e7cb58b2de6d3a15053bfaaf6080">empty</a>()) {</div>
<div class="line"><span class="lineno"> 64</span> <span class="keywordflow">throw</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/error/out_of_range.html">std::out_of_range</a>(<span class="stringliteral">&quot;Stack underflow&quot;</span>);</div>
<div class="line"><span class="lineno"> 65</span> }</div>
<div class="line"><span class="lineno"> 66</span> <span class="keywordflow">return</span> <a class="code hl_class" href="../../d1/dc2/classstack.html">stack</a>[<a class="code hl_variable" href="#a71afc94746d47fb2c0c4fa4b612edee6">stackIndex</a>--];</div>
<div class="line"><span class="lineno"> 67</span> }</div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d2/dc8/classdata__structures_1_1_stack_ac46842bdd9c655d84f865fa3a03da19b_cgraph.svg" width="395" height="52"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</div>
<a id="aa9f9b087e9e7c00628e1289f0f1de3b2" name="aa9f9b087e9e7c00628e1289f0f1de3b2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa9f9b087e9e7c00628e1289f0f1de3b2">&#9670;&#160;</a></span>push()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="../../d2/dc8/classdata__structures_1_1_stack.html">data_structures::Stack</a>&lt; T &gt;::push </td>
<td>(</td>
<td class="paramtype">T</td> <td class="paramname"><span class="paramname"><em>element</em></span></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Pushes an element onto the stack. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">element</td><td>Element to push onto the stack </td></tr>
</table>
</dd>
</dl>
<div class="fragment"><div class="line"><span class="lineno"> 48</span> {</div>
<div class="line"><span class="lineno"> 49</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="#aa753346c8ee5f21d4f4482398fe6d5c1">full</a>()) {</div>
<div class="line"><span class="lineno"> 50</span> <span class="keywordflow">throw</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/error/out_of_range.html">std::out_of_range</a>(<span class="stringliteral">&quot;Stack overflow&quot;</span>);</div>
<div class="line"><span class="lineno"> 51</span> } <span class="keywordflow">else</span> {</div>
<div class="line"><span class="lineno"> 52</span> <a class="code hl_class" href="../../d1/dc2/classstack.html">stack</a>[++<a class="code hl_variable" href="#a71afc94746d47fb2c0c4fa4b612edee6">stackIndex</a>] = element;</div>
<div class="line"><span class="lineno"> 53</span> }</div>
<div class="line"><span class="lineno"> 54</span> }</div>
<div class="ttc" id="aclassdata__structures_1_1_stack_html_aa753346c8ee5f21d4f4482398fe6d5c1"><div class="ttname"><a href="#aa753346c8ee5f21d4f4482398fe6d5c1">data_structures::Stack::full</a></div><div class="ttdeci">bool full() const</div><div class="ttdoc">Checks if the stack is full.</div><div class="ttdef"><b>Definition</b> stack_using_array.cpp:35</div></div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d2/dc8/classdata__structures_1_1_stack_aa9f9b087e9e7c00628e1289f0f1de3b2_cgraph.svg" width="366" height="52"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</div>
<a id="abb86ed67d9d97112897a09cfb10ff586" name="abb86ed67d9d97112897a09cfb10ff586"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abb86ed67d9d97112897a09cfb10ff586">&#9670;&#160;</a></span>show()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="../../d2/dc8/classdata__structures_1_1_stack.html">data_structures::Stack</a>&lt; T &gt;::show </td>
<td>(</td>
<td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Displays all elements in the stack. </p>
<div class="fragment"><div class="line"><span class="lineno"> 72</span> {</div>
<div class="line"><span class="lineno"> 73</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt;= <a class="code hl_variable" href="#a71afc94746d47fb2c0c4fa4b612edee6">stackIndex</a>; i++) {</div>
<div class="line"><span class="lineno"> 74</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <a class="code hl_class" href="../../d1/dc2/classstack.html">stack</a>[i] &lt;&lt; <span class="stringliteral">&quot;\n&quot;</span>;</div>
<div class="line"><span class="lineno"> 75</span> }</div>
<div class="line"><span class="lineno"> 76</span> }</div>
<div class="ttc" id="abasic_ostream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a61dc70e128ee64c9684f03a4c04818b0" name="a61dc70e128ee64c9684f03a4c04818b0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a61dc70e128ee64c9684f03a4c04818b0">&#9670;&#160;</a></span>topmost()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">T <a class="el" href="../../d2/dc8/classdata__structures_1_1_stack.html">data_structures::Stack</a>&lt; T &gt;::topmost </td>
<td>(</td>
<td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Displays the topmost element of the stack. </p>
<dl class="section return"><dt>Returns</dt><dd>The topmost element of the stack </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/error/out_of_range.html">std::out_of_range</a></td><td>if the stack is empty </td></tr>
</table>
</dd>
</dl>
<div class="fragment"><div class="line"><span class="lineno"> 84</span> {</div>
<div class="line"><span class="lineno"> 85</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="#a04e2e7cb58b2de6d3a15053bfaaf6080">empty</a>()) {</div>
<div class="line"><span class="lineno"> 86</span> <span class="keywordflow">throw</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/error/out_of_range.html">std::out_of_range</a>(<span class="stringliteral">&quot;Stack underflow&quot;</span>);</div>
<div class="line"><span class="lineno"> 87</span> }</div>
<div class="line"><span class="lineno"> 88</span> <span class="keywordflow">return</span> <a class="code hl_class" href="../../d1/dc2/classstack.html">stack</a>[<a class="code hl_variable" href="#a71afc94746d47fb2c0c4fa4b612edee6">stackIndex</a>];</div>
<div class="line"><span class="lineno"> 89</span> }</div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d2/dc8/classdata__structures_1_1_stack_a61dc70e128ee64c9684f03a4c04818b0_cgraph.svg" width="366" height="52"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>data_structures/<b>stack_using_array.cpp</b></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="../../d5/d3c/namespacedata__structures.html">data_structures</a></li><li class="navelem"><a class="el" href="../../d2/dc8/classdata__structures_1_1_stack.html">Stack</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.12.0 </li>
</ul>
</div>
</body>
</html>

View File

@@ -0,0 +1,14 @@
var classdata__structures_1_1_stack =
[
[ "Stack", "d2/dc8/classdata__structures_1_1_stack.html#a8cb0602c8a9c1603d0315938177ecc6a", null ],
[ "bottom", "d2/dc8/classdata__structures_1_1_stack.html#a2ac469fcc2229d273450e429139d90e6", null ],
[ "empty", "d2/dc8/classdata__structures_1_1_stack.html#a04e2e7cb58b2de6d3a15053bfaaf6080", null ],
[ "full", "d2/dc8/classdata__structures_1_1_stack.html#aa753346c8ee5f21d4f4482398fe6d5c1", null ],
[ "pop", "d2/dc8/classdata__structures_1_1_stack.html#ac46842bdd9c655d84f865fa3a03da19b", null ],
[ "push", "d2/dc8/classdata__structures_1_1_stack.html#aa9f9b087e9e7c00628e1289f0f1de3b2", null ],
[ "show", "d2/dc8/classdata__structures_1_1_stack.html#abb86ed67d9d97112897a09cfb10ff586", null ],
[ "topmost", "d2/dc8/classdata__structures_1_1_stack.html#a61dc70e128ee64c9684f03a4c04818b0", null ],
[ "stack", "d2/dc8/classdata__structures_1_1_stack.html#a3f912a0e9bed5b24b206584e3010dce3", null ],
[ "stackIndex", "d2/dc8/classdata__structures_1_1_stack.html#a71afc94746d47fb2c0c4fa4b612edee6", null ],
[ "stackSize", "d2/dc8/classdata__structures_1_1_stack.html#a88a10062c0662a385f172669f2f19b86", null ]
];

View File

@@ -0,0 +1,5 @@
<map id="data_structures::Stack::bottom" name="data_structures::Stack::bottom">
<area shape="rect" id="Node000001" title="Displays the bottom element of the stack." alt="" coords="5,5,159,46"/>
<area shape="rect" id="Node000002" href="$d2/dc8/classdata__structures_1_1_stack.html#a04e2e7cb58b2de6d3a15053bfaaf6080" title="Checks if the stack is empty." alt="" coords="207,5,360,46"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="159,23,191,23,191,28,159,28"/>
</map>

View File

@@ -0,0 +1 @@
512dee9322fc30c83b03c7723d356ea5

View File

@@ -0,0 +1,67 @@
<?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 12.1.0 (20240811.2233)
-->
<!-- Title: data_structures::Stack::bottom Pages: 1 -->
<svg width="274pt" height="39pt"
viewBox="0.00 0.00 274.00 38.50" 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">
<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 34.5)">
<title>data_structures::Stack::bottom</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Displays the bottom element of the stack.">
<polygon fill="#999999" stroke="#666666" points="115,-30.5 0,-30.5 0,0 115,0 115,-30.5"/>
<text text-anchor="start" x="8" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Stack</text>
<text text-anchor="middle" x="57.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::bottom</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../d2/dc8/classdata__structures_1_1_stack.html#a04e2e7cb58b2de6d3a15053bfaaf6080" target="_top" xlink:title="Checks if the stack is empty.">
<polygon fill="white" stroke="#666666" points="266,-30.5 151,-30.5 151,0 266,0 266,-30.5"/>
<text text-anchor="start" x="159" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Stack</text>
<text text-anchor="middle" x="208.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::empty</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="M115.26,-15.25C123.19,-15.25 131.42,-15.25 139.53,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="139.39,-18.75 149.39,-15.25 139.39,-11.75 139.39,-18.75"/>
</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>

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@@ -0,0 +1,41 @@
<?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 12.1.0 (20240811.2233)
-->
<!-- Title: data_structures::Stack::bottom Pages: 1 -->
<svg width="274pt" height="39pt"
viewBox="0.00 0.00 274.00 38.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 34.5)">
<title>data_structures::Stack::bottom</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Displays the bottom element of the stack.">
<polygon fill="#999999" stroke="#666666" points="115,-30.5 0,-30.5 0,0 115,0 115,-30.5"/>
<text text-anchor="start" x="8" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Stack</text>
<text text-anchor="middle" x="57.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::bottom</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../d2/dc8/classdata__structures_1_1_stack.html#a04e2e7cb58b2de6d3a15053bfaaf6080" target="_top" xlink:title="Checks if the stack is empty.">
<polygon fill="white" stroke="#666666" points="266,-30.5 151,-30.5 151,0 266,0 266,-30.5"/>
<text text-anchor="start" x="159" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Stack</text>
<text text-anchor="middle" x="208.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::empty</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="M115.26,-15.25C123.19,-15.25 131.42,-15.25 139.53,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="139.39,-18.75 149.39,-15.25 139.39,-11.75 139.39,-18.75"/>
</a>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@@ -0,0 +1,5 @@
<map id="data_structures::Stack::topmost" name="data_structures::Stack::topmost">
<area shape="rect" id="Node000001" title="Displays the topmost element of the stack." alt="" coords="5,5,159,46"/>
<area shape="rect" id="Node000002" href="$d2/dc8/classdata__structures_1_1_stack.html#a04e2e7cb58b2de6d3a15053bfaaf6080" title="Checks if the stack is empty." alt="" coords="207,5,360,46"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="159,23,191,23,191,28,159,28"/>
</map>

View File

@@ -0,0 +1 @@
0bf4679a8dd8bec2876299055859fed6

View File

@@ -0,0 +1,67 @@
<?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 12.1.0 (20240811.2233)
-->
<!-- Title: data_structures::Stack::topmost Pages: 1 -->
<svg width="274pt" height="39pt"
viewBox="0.00 0.00 274.00 38.50" 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">
<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 34.5)">
<title>data_structures::Stack::topmost</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Displays the topmost element of the stack.">
<polygon fill="#999999" stroke="#666666" points="115,-30.5 0,-30.5 0,0 115,0 115,-30.5"/>
<text text-anchor="start" x="8" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Stack</text>
<text text-anchor="middle" x="57.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::topmost</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../d2/dc8/classdata__structures_1_1_stack.html#a04e2e7cb58b2de6d3a15053bfaaf6080" target="_top" xlink:title="Checks if the stack is empty.">
<polygon fill="white" stroke="#666666" points="266,-30.5 151,-30.5 151,0 266,0 266,-30.5"/>
<text text-anchor="start" x="159" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Stack</text>
<text text-anchor="middle" x="208.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::empty</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="M115.26,-15.25C123.19,-15.25 131.42,-15.25 139.53,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="139.39,-18.75 149.39,-15.25 139.39,-11.75 139.39,-18.75"/>
</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>

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@@ -0,0 +1,41 @@
<?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 12.1.0 (20240811.2233)
-->
<!-- Title: data_structures::Stack::topmost Pages: 1 -->
<svg width="274pt" height="39pt"
viewBox="0.00 0.00 274.00 38.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 34.5)">
<title>data_structures::Stack::topmost</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Displays the topmost element of the stack.">
<polygon fill="#999999" stroke="#666666" points="115,-30.5 0,-30.5 0,0 115,0 115,-30.5"/>
<text text-anchor="start" x="8" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Stack</text>
<text text-anchor="middle" x="57.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::topmost</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../d2/dc8/classdata__structures_1_1_stack.html#a04e2e7cb58b2de6d3a15053bfaaf6080" target="_top" xlink:title="Checks if the stack is empty.">
<polygon fill="white" stroke="#666666" points="266,-30.5 151,-30.5 151,0 266,0 266,-30.5"/>
<text text-anchor="start" x="159" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Stack</text>
<text text-anchor="middle" x="208.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::empty</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="M115.26,-15.25C123.19,-15.25 131.42,-15.25 139.53,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="139.39,-18.75 149.39,-15.25 139.39,-11.75 139.39,-18.75"/>
</a>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@@ -0,0 +1,5 @@
<map id="data_structures::Stack::push" name="data_structures::Stack::push">
<area shape="rect" id="Node000001" title="Pushes an element onto the stack." alt="" coords="5,5,159,46"/>
<area shape="rect" id="Node000002" href="$d2/dc8/classdata__structures_1_1_stack.html#aa753346c8ee5f21d4f4482398fe6d5c1" title="Checks if the stack is full." alt="" coords="207,5,360,46"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="159,23,191,23,191,28,159,28"/>
</map>

View File

@@ -0,0 +1 @@
04111dff9752fdbb83c636f658bb2c4c

View File

@@ -0,0 +1,67 @@
<?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 12.1.0 (20240811.2233)
-->
<!-- Title: data_structures::Stack::push Pages: 1 -->
<svg width="274pt" height="39pt"
viewBox="0.00 0.00 274.00 38.50" 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">
<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 34.5)">
<title>data_structures::Stack::push</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Pushes an element onto the stack.">
<polygon fill="#999999" stroke="#666666" points="115,-30.5 0,-30.5 0,0 115,0 115,-30.5"/>
<text text-anchor="start" x="8" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Stack</text>
<text text-anchor="middle" x="57.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::push</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../d2/dc8/classdata__structures_1_1_stack.html#aa753346c8ee5f21d4f4482398fe6d5c1" target="_top" xlink:title="Checks if the stack is full.">
<polygon fill="white" stroke="#666666" points="266,-30.5 151,-30.5 151,0 266,0 266,-30.5"/>
<text text-anchor="start" x="159" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Stack</text>
<text text-anchor="middle" x="208.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::full</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="M115.26,-15.25C123.19,-15.25 131.42,-15.25 139.53,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="139.39,-18.75 149.39,-15.25 139.39,-11.75 139.39,-18.75"/>
</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>

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@@ -0,0 +1,41 @@
<?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 12.1.0 (20240811.2233)
-->
<!-- Title: data_structures::Stack::push Pages: 1 -->
<svg width="274pt" height="39pt"
viewBox="0.00 0.00 274.00 38.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 34.5)">
<title>data_structures::Stack::push</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Pushes an element onto the stack.">
<polygon fill="#999999" stroke="#666666" points="115,-30.5 0,-30.5 0,0 115,0 115,-30.5"/>
<text text-anchor="start" x="8" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Stack</text>
<text text-anchor="middle" x="57.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::push</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../d2/dc8/classdata__structures_1_1_stack.html#aa753346c8ee5f21d4f4482398fe6d5c1" target="_top" xlink:title="Checks if the stack is full.">
<polygon fill="white" stroke="#666666" points="266,-30.5 151,-30.5 151,0 266,0 266,-30.5"/>
<text text-anchor="start" x="159" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Stack</text>
<text text-anchor="middle" x="208.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::full</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="M115.26,-15.25C123.19,-15.25 131.42,-15.25 139.53,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="139.39,-18.75 149.39,-15.25 139.39,-11.75 139.39,-18.75"/>
</a>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@@ -0,0 +1,5 @@
<map id="data_structures::Stack::pop" name="data_structures::Stack::pop">
<area shape="rect" id="Node000001" title="Pops an element from the stack." alt="" coords="5,13,188,38"/>
<area shape="rect" id="Node000002" href="$d2/dc8/classdata__structures_1_1_stack.html#a04e2e7cb58b2de6d3a15053bfaaf6080" title="Checks if the stack is empty." alt="" coords="236,5,389,46"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="188,23,220,23,220,28,188,28"/>
</map>

View File

@@ -0,0 +1 @@
c0b0e361825dc1db439c164ff12ea73f

View File

@@ -0,0 +1,66 @@
<?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 12.1.0 (20240811.2233)
-->
<!-- Title: data_structures::Stack::pop Pages: 1 -->
<svg width="296pt" height="39pt"
viewBox="0.00 0.00 295.75 38.50" 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">
<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 34.5)">
<title>data_structures::Stack::pop</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Pops an element from the stack.">
<polygon fill="#999999" stroke="#666666" points="136.75,-24.88 0,-24.88 0,-5.63 136.75,-5.63 136.75,-24.88"/>
<text text-anchor="middle" x="68.38" y="-11.38" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Stack::pop</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../d2/dc8/classdata__structures_1_1_stack.html#a04e2e7cb58b2de6d3a15053bfaaf6080" target="_top" xlink:title="Checks if the stack is empty.">
<polygon fill="white" stroke="#666666" points="287.75,-30.5 172.75,-30.5 172.75,0 287.75,0 287.75,-30.5"/>
<text text-anchor="start" x="180.75" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Stack</text>
<text text-anchor="middle" x="230.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::empty</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="M137.18,-15.25C145.07,-15.25 153.12,-15.25 161.02,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="160.92,-18.75 170.92,-15.25 160.92,-11.75 160.92,-18.75"/>
</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>

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@@ -0,0 +1,40 @@
<?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 12.1.0 (20240811.2233)
-->
<!-- Title: data_structures::Stack::pop Pages: 1 -->
<svg width="296pt" height="39pt"
viewBox="0.00 0.00 295.75 38.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 34.5)">
<title>data_structures::Stack::pop</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Pops an element from the stack.">
<polygon fill="#999999" stroke="#666666" points="136.75,-24.88 0,-24.88 0,-5.63 136.75,-5.63 136.75,-24.88"/>
<text text-anchor="middle" x="68.38" y="-11.38" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Stack::pop</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../d2/dc8/classdata__structures_1_1_stack.html#a04e2e7cb58b2de6d3a15053bfaaf6080" target="_top" xlink:title="Checks if the stack is empty.">
<polygon fill="white" stroke="#666666" points="287.75,-30.5 172.75,-30.5 172.75,0 287.75,0 287.75,-30.5"/>
<text text-anchor="start" x="180.75" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Stack</text>
<text text-anchor="middle" x="230.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">::empty</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="M137.18,-15.25C145.07,-15.25 153.12,-15.25 161.02,-15.25"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="160.92,-18.75 170.92,-15.25 160.92,-11.75 160.92,-18.75"/>
</a>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB