Documentation for 8b1eab204b

This commit is contained in:
realstealthninja
2024-11-04 12:43:05 +00:00
parent 4fb6e622e9
commit a7bccf7d01
6732 changed files with 153919 additions and 365711 deletions

View File

@@ -1,3 +1,4 @@
<!-- HTML header for doxygen 1.12.0-->
<!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>
@@ -5,10 +6,15 @@
<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>
<title>TheAlgorithms/C++: data_structures::Stack&lt; T &gt; Class Template Reference</title>
<link rel="icon" href="../../favicon.svg" type="image/x-icon" />
<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="https://cdn.jsdelivr.net/npm/@xpack-3rd-party/doxygen-awesome-css@2.2.0-1/doxygen-awesome-darkmode-toggle.js"></script>
<script type="text/javascript">
DoxygenAwesomeDarkModeToggle.init()
</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>
@@ -18,14 +24,24 @@
<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 type="text/javascript">
window.MathJax = {
options: {
ignoreHtmlClass: 'tex2jax_ignore',
processHtmlClass: 'tex2jax_process'
},
loader: {
load: ['[tex]/ams']
},
tex: {
macros: {},
packages: ['base','configmacros','ams']
}
};
</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>
<script type="text/javascript" id="MathJax-script" async="async" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
<link href="../../doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
@@ -33,10 +49,11 @@ MathJax.Hub.Config({
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectlogo"><img alt="Logo" src="../../project_logo.png"/></td>
<td id="projectalign">
<div id="projectname">Algorithms_in_C++<span id="projectnumber">&#160;1.0.0</span>
<div id="projectname">TheAlgorithms/C++<span id="projectnumber">&#160;1.0.0</span>
</div>
<div id="projectbrief">Set of algorithms implemented in C++.</div>
<div id="projectbrief">All the algorithms implemented in C++</div>
</td>
</tr>
</tbody>
@@ -149,17 +166,14 @@ Public Member Functions</h2></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="memitem:a3f912a0e9bed5b24b206584e3010dce3" id="r_a3f912a0e9bed5b24b206584e3010dce3"><td class="memItemLeft" align="right" valign="top">std::unique_ptr&lt; T[]&gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3f912a0e9bed5b24b206584e3010dce3">stack</a></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="memitem:a88a10062c0662a385f172669f2f19b86" id="r_a88a10062c0662a385f172669f2f19b86"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a88a10062c0662a385f172669f2f19b86">stackSize</a></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="memitem:a71afc94746d47fb2c0c4fa4b612edee6" id="r_a71afc94746d47fb2c0c4fa4b612edee6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a71afc94746d47fb2c0c4fa4b612edee6">stackIndex</a></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>
@@ -171,6 +185,8 @@ class data_structures::Stack&lt; T &gt;</div><p>Class representation of a stack.
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="../../d8/d96/stack__using__array_8cpp_source.html#l00016">16</a> of file <a class="el" href="../../d8/d96/stack__using__array_8cpp_source.html">stack_using_array.cpp</a>.</p>
</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>
@@ -204,10 +220,12 @@ template&lt;typename T &gt; </div>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="../../d8/d96/stack__using__array_8cpp_source.html#l00028">28</a> of file <a class="el" href="../../d8/d96/stack__using__array_8cpp_source.html">stack_using_array.cpp</a>.</p>
<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 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> <a href="../../d8/d96/stack__using__array_8cpp_source.html#l00018">stack_using_array.cpp:18</a></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> <a href="../../d8/d96/stack__using__array_8cpp_source.html#l00020">stack_using_array.cpp:20</a></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> <a href="../../d8/d96/stack__using__array_8cpp_source.html#l00019">stack_using_array.cpp:19</a></div></div>
</div><!-- fragment -->
</div>
</div>
@@ -241,25 +259,21 @@ template&lt;typename T &gt; </div>
<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>
<tr><td class="paramname">std::out_of_range</td><td>if the stack is empty </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="../../d8/d96/stack__using__array_8cpp_source.html#l00097">97</a> of file <a class="el" href="../../d8/d96/stack__using__array_8cpp_source.html">stack_using_array.cpp</a>.</p>
<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"> 99</span> <span class="keywordflow">throw</span> std::out_of_range(<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 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> <a href="../../d8/d96/stack__using__array_8cpp_source.html#l00041">stack_using_array.cpp:41</a></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> <a href="../../df/d47/stack_8hpp_source.html#l00019">stack.hpp:19</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a04e2e7cb58b2de6d3a15053bfaaf6080" name="a04e2e7cb58b2de6d3a15053bfaaf6080"></a>
@@ -289,6 +303,8 @@ template&lt;typename T &gt; </div>
<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>
<p class="definition">Definition at line <a class="el" href="../../d8/d96/stack__using__array_8cpp_source.html#l00041">41</a> of file <a class="el" href="../../d8/d96/stack__using__array_8cpp_source.html">stack_using_array.cpp</a>.</p>
<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>
@@ -320,6 +336,8 @@ template&lt;typename T &gt; </div>
<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>
<p class="definition">Definition at line <a class="el" href="../../d8/d96/stack__using__array_8cpp_source.html#l00035">35</a> of file <a class="el" href="../../d8/d96/stack__using__array_8cpp_source.html">stack_using_array.cpp</a>.</p>
<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>
@@ -353,22 +371,19 @@ template&lt;typename T &gt; </div>
<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>
<tr><td class="paramname">std::out_of_range</td><td>if the stack is empty </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="../../d8/d96/stack__using__array_8cpp_source.html#l00062">62</a> of file <a class="el" href="../../d8/d96/stack__using__array_8cpp_source.html">stack_using_array.cpp</a>.</p>
<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"> 64</span> <span class="keywordflow">throw</span> std::out_of_range(<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><!-- fragment -->
</div>
</div>
<a id="aa9f9b087e9e7c00628e1289f0f1de3b2" name="aa9f9b087e9e7c00628e1289f0f1de3b2"></a>
@@ -403,20 +418,17 @@ template&lt;typename T &gt; </div>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="../../d8/d96/stack__using__array_8cpp_source.html#l00048">48</a> of file <a class="el" href="../../d8/d96/stack__using__array_8cpp_source.html">stack_using_array.cpp</a>.</p>
<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"> 50</span> <span class="keywordflow">throw</span> std::out_of_range(<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 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> <a href="../../d8/d96/stack__using__array_8cpp_source.html#l00035">stack_using_array.cpp:35</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="abb86ed67d9d97112897a09cfb10ff586" name="abb86ed67d9d97112897a09cfb10ff586"></a>
@@ -445,12 +457,13 @@ template&lt;typename T &gt; </div>
</div><div class="memdoc">
<p>Displays all elements in the stack. </p>
<p class="definition">Definition at line <a class="el" href="../../d8/d96/stack__using__array_8cpp_source.html#l00072">72</a> of file <a class="el" href="../../d8/d96/stack__using__array_8cpp_source.html">stack_using_array.cpp</a>.</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"> 74</span> std::cout &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>
@@ -483,26 +496,108 @@ template&lt;typename T &gt; </div>
<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>
<tr><td class="paramname">std::out_of_range</td><td>if the stack is empty </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="../../d8/d96/stack__using__array_8cpp_source.html#l00084">84</a> of file <a class="el" href="../../d8/d96/stack__using__array_8cpp_source.html">stack_using_array.cpp</a>.</p>
<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"> 86</span> <span class="keywordflow">throw</span> std::out_of_range(<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><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a3f912a0e9bed5b24b206584e3010dce3" name="a3f912a0e9bed5b24b206584e3010dce3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f912a0e9bed5b24b206584e3010dce3">&#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">std::unique_ptr&lt;T[]&gt; <a class="el" href="../../d2/dc8/classdata__structures_1_1_stack.html">data_structures::Stack</a>&lt; T &gt;<a class="el" href="../../d1/dc2/classstack.html">::stack</a></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Smart pointer to the stack array. </p>
<p class="definition">Definition at line <a class="el" href="../../d8/d96/stack__using__array_8cpp_source.html#l00018">18</a> of file <a class="el" href="../../d8/d96/stack__using__array_8cpp_source.html">stack_using_array.cpp</a>.</p>
</div>
</div>
<a id="a71afc94746d47fb2c0c4fa4b612edee6" name="a71afc94746d47fb2c0c4fa4b612edee6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a71afc94746d47fb2c0c4fa4b612edee6">&#9670;&#160;</a></span>stackIndex</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">int <a class="el" href="../../d2/dc8/classdata__structures_1_1_stack.html">data_structures::Stack</a>&lt; T &gt;::stackIndex</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Index pointing to the top element of the stack. </p>
<p class="definition">Definition at line <a class="el" href="../../d8/d96/stack__using__array_8cpp_source.html#l00020">20</a> of file <a class="el" href="../../d8/d96/stack__using__array_8cpp_source.html">stack_using_array.cpp</a>.</p>
</div>
</div>
<a id="a88a10062c0662a385f172669f2f19b86" name="a88a10062c0662a385f172669f2f19b86"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a88a10062c0662a385f172669f2f19b86">&#9670;&#160;</a></span>stackSize</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">int <a class="el" href="../../d2/dc8/classdata__structures_1_1_stack.html">data_structures::Stack</a>&lt; T &gt;::stackSize</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Maximum size of the stack. </p>
<p class="definition">Definition at line <a class="el" href="../../d8/d96/stack__using__array_8cpp_source.html#l00019">19</a> of file <a class="el" href="../../d8/d96/stack__using__array_8cpp_source.html">stack_using_array.cpp</a>.</p>
</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>
<li>data_structures/<a class="el" href="../../d8/d96/stack__using__array_8cpp_source.html">stack_using_array.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->

View File

@@ -1,5 +0,0 @@
<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

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

View File

@@ -1,67 +0,0 @@
<?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.2 (20240928.0832)
-->
<!-- 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>

Before

Width:  |  Height:  |  Size: 2.7 KiB

View File

@@ -1,41 +0,0 @@
<?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.2 (20240928.0832)
-->
<!-- 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>

Before

Width:  |  Height:  |  Size: 2.0 KiB

View File

@@ -1,5 +0,0 @@
<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

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

View File

@@ -1,67 +0,0 @@
<?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.2 (20240928.0832)
-->
<!-- 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>

Before

Width:  |  Height:  |  Size: 2.8 KiB

View File

@@ -1,41 +0,0 @@
<?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.2 (20240928.0832)
-->
<!-- 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>

Before

Width:  |  Height:  |  Size: 2.0 KiB

View File

@@ -1,5 +0,0 @@
<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

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

View File

@@ -1,67 +0,0 @@
<?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.2 (20240928.0832)
-->
<!-- 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>

Before

Width:  |  Height:  |  Size: 2.7 KiB

View File

@@ -1,41 +0,0 @@
<?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.2 (20240928.0832)
-->
<!-- 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>

Before

Width:  |  Height:  |  Size: 2.0 KiB

View File

@@ -1,5 +0,0 @@
<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

@@ -1 +0,0 @@
c0b0e361825dc1db439c164ff12ea73f

View File

@@ -1,66 +0,0 @@
<?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.2 (20240928.0832)
-->
<!-- 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>

Before

Width:  |  Height:  |  Size: 2.7 KiB

View File

@@ -1,40 +0,0 @@
<?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.2 (20240928.0832)
-->
<!-- 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>

Before

Width:  |  Height:  |  Size: 1.9 KiB