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++: operations_on_datastructures/circular_linked_list.cpp File Reference</title>
<title>TheAlgorithms/C++: operations_on_datastructures/circular_linked_list.cpp File 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>
@@ -122,7 +139,9 @@ Include dependency graph for circular_linked_list.cpp:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d2/d53/circular__linked__list_8cpp__incl.svg" width="252" height="126"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div><table class="memberdecls">
</div>
<p><a href="../../de/d33/circular__linked__list_8cpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html">operations_on_datastructures::circular_linked_list::Node</a></td></tr>
@@ -135,7 +154,7 @@ Classes</h2></td></tr>
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d6d/namespaceoperations__on__datastructures.html">operations_on_datastructures</a></td></tr>
<tr class="memdesc:da/d6d/namespaceoperations__on__datastructures"><td class="mdescLeft">&#160;</td><td class="mdescRight">for <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a> <br /></td></tr>
<tr class="memdesc:da/d6d/namespaceoperations__on__datastructures"><td class="mdescLeft">&#160;</td><td class="mdescRight">for std::vector <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/dcd/namespacecircular__linked__list.html">circular_linked_list</a></td></tr>
<tr class="memdesc:d4/dcd/namespacecircular__linked__list"><td class="mdescLeft">&#160;</td><td class="mdescRight">Functions for the <a href="https://www.geeksforgeeks.org/circular-linked-list/" target="_blank">Circular Linked List</a> implementation. <br /></td></tr>
@@ -171,6 +190,8 @@ Functions</h2></td></tr>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Implementation for a <a href="https://www.geeksforgeeks.org/circular-linked-list/" target="_blank">Circular Linked List</a>. </p>
<p>A Circular Linked List is a variation on the regular linked list, in which the last node has a pointer to the first node, which creates a full circle. Consequently, this allows any node to be used as the starting point for the list. </p><dl class="section author"><dt>Author</dt><dd><a href="https://github.com/polarvoid" target="_blank">Alvin</a> </dd></dl>
<p class="definition">Definition in file <a class="el" href="../../de/d33/circular__linked__list_8cpp_source.html">circular_linked_list.cpp</a>.</p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="ae66f6b31b5ad750f1fe042a706a4e3d4" name="ae66f6b31b5ad750f1fe042a706a4e3d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae66f6b31b5ad750f1fe042a706a4e3d4">&#9670;&#160;</a></span>main()</h2>
@@ -189,17 +210,14 @@ Functions</h2></td></tr>
<p>main function </p>
<dl class="section return"><dt>Returns</dt><dd>0 on exit </dd></dl>
<p class="definition">Definition at line <a class="el" href="../../de/d33/circular__linked__list_8cpp_source.html#l00345">345</a> of file <a class="el" href="../../de/d33/circular__linked__list_8cpp_source.html">circular_linked_list.cpp</a>.</p>
<div class="fragment"><div class="line"><span class="lineno"> 345</span> {</div>
<div class="line"><span class="lineno"> 346</span> <a class="code hl_function" href="#aa8dca7b867074164d5f45b0f3851269d">test</a>(); <span class="comment">// run self-test implementations</span></div>
<div class="line"><span class="lineno"> 347</span> <span class="keywordflow">return</span> 0;</div>
<div class="line"><span class="lineno"> 348</span>}</div>
<div class="ttc" id="acircular__linked__list_8cpp_html_aa8dca7b867074164d5f45b0f3851269d"><div class="ttname"><a href="#aa8dca7b867074164d5f45b0f3851269d">test</a></div><div class="ttdeci">static void test()</div><div class="ttdoc">Function to test the correctness of the Circular Linked List.</div><div class="ttdef"><b>Definition</b> circular_linked_list.cpp:333</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="../../de/d33/circular__linked__list_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg" width="490" height="234"><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="acircular__linked__list_8cpp_html_aa8dca7b867074164d5f45b0f3851269d"><div class="ttname"><a href="#aa8dca7b867074164d5f45b0f3851269d">test</a></div><div class="ttdeci">static void test()</div><div class="ttdoc">Function to test the correctness of the Circular Linked List.</div><div class="ttdef"><b>Definition</b> <a href="../../de/d33/circular__linked__list_8cpp_source.html#l00333">circular_linked_list.cpp:333</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="aa8dca7b867074164d5f45b0f3851269d" name="aa8dca7b867074164d5f45b0f3851269d"></a>
@@ -227,6 +245,8 @@ Here is the call graph for this function:</div>
<p>Function to test the correctness of the Circular Linked List. </p>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
<p class="definition">Definition at line <a class="el" href="../../de/d33/circular__linked__list_8cpp_source.html#l00333">333</a> of file <a class="el" href="../../de/d33/circular__linked__list_8cpp_source.html">circular_linked_list.cpp</a>.</p>
<div class="fragment"><div class="line"><span class="lineno"> 333</span> {</div>
<div class="line"><span class="lineno"> 334</span> <a class="code hl_function" href="../../d9/df4/namespacetests.html#a167c24bd817469ae47358d12e034f2d5">tests::test1</a>();</div>
<div class="line"><span class="lineno"> 335</span> <a class="code hl_function" href="../../d9/df4/namespacetests.html#abdd77344d4af8fd56d14a5cabbf2f669">tests::test2</a>();</div>
@@ -234,17 +254,12 @@ Here is the call graph for this function:</div>
<div class="line"><span class="lineno"> 337</span> <a class="code hl_function" href="../../d9/df4/namespacetests.html#a2b9769e44683dcb67fe1083ad91e134d">tests::test4</a>();</div>
<div class="line"><span class="lineno"> 338</span> <a class="code hl_function" href="../../d9/df4/namespacetests.html#af7b81d7a1534216af6a36a80135beb86">tests::test5</a>();</div>
<div class="line"><span class="lineno"> 339</span>}</div>
<div class="ttc" id="anamespacetests_html_a167c24bd817469ae47358d12e034f2d5"><div class="ttname"><a href="../../d9/df4/namespacetests.html#a167c24bd817469ae47358d12e034f2d5">tests::test1</a></div><div class="ttdeci">void test1()</div><div class="ttdoc">A Test to check an simple case.</div><div class="ttdef"><b>Definition</b> array_left_rotation.cpp:75</div></div>
<div class="ttc" id="anamespacetests_html_a2b9769e44683dcb67fe1083ad91e134d"><div class="ttname"><a href="../../d9/df4/namespacetests.html#a2b9769e44683dcb67fe1083ad91e134d">tests::test4</a></div><div class="ttdeci">void test4()</div><div class="ttdoc">A Test to check a very large input.</div><div class="ttdef"><b>Definition</b> array_left_rotation.cpp:120</div></div>
<div class="ttc" id="anamespacetests_html_aa515639572647508b94986489aab6d76"><div class="ttname"><a href="../../d9/df4/namespacetests.html#aa515639572647508b94986489aab6d76">tests::test3</a></div><div class="ttdeci">void test3()</div><div class="ttdoc">A Test to check an invalid shift value.</div><div class="ttdef"><b>Definition</b> array_left_rotation.cpp:105</div></div>
<div class="ttc" id="anamespacetests_html_abdd77344d4af8fd56d14a5cabbf2f669"><div class="ttname"><a href="../../d9/df4/namespacetests.html#abdd77344d4af8fd56d14a5cabbf2f669">tests::test2</a></div><div class="ttdeci">void test2()</div><div class="ttdoc">A Test to check an empty vector.</div><div class="ttdef"><b>Definition</b> array_left_rotation.cpp:90</div></div>
<div class="ttc" id="anamespacetests_html_af7b81d7a1534216af6a36a80135beb86"><div class="ttname"><a href="../../d9/df4/namespacetests.html#af7b81d7a1534216af6a36a80135beb86">tests::test5</a></div><div class="ttdeci">void test5()</div><div class="ttdoc">A Test to check a shift of zero.</div><div class="ttdef"><b>Definition</b> array_left_rotation.cpp:143</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="../../de/d33/circular__linked__list_8cpp_aa8dca7b867074164d5f45b0f3851269d_cgraph.svg" width="392" height="234"><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="anamespacetests_html_a167c24bd817469ae47358d12e034f2d5"><div class="ttname"><a href="../../d9/df4/namespacetests.html#a167c24bd817469ae47358d12e034f2d5">tests::test1</a></div><div class="ttdeci">void test1()</div><div class="ttdoc">A Test to check an simple case.</div><div class="ttdef"><b>Definition</b> <a href="../../d9/d14/array__left__rotation_8cpp_source.html#l00075">array_left_rotation.cpp:75</a></div></div>
<div class="ttc" id="anamespacetests_html_a2b9769e44683dcb67fe1083ad91e134d"><div class="ttname"><a href="../../d9/df4/namespacetests.html#a2b9769e44683dcb67fe1083ad91e134d">tests::test4</a></div><div class="ttdeci">void test4()</div><div class="ttdoc">A Test to check a very large input.</div><div class="ttdef"><b>Definition</b> <a href="../../d9/d14/array__left__rotation_8cpp_source.html#l00120">array_left_rotation.cpp:120</a></div></div>
<div class="ttc" id="anamespacetests_html_aa515639572647508b94986489aab6d76"><div class="ttname"><a href="../../d9/df4/namespacetests.html#aa515639572647508b94986489aab6d76">tests::test3</a></div><div class="ttdeci">void test3()</div><div class="ttdoc">A Test to check an invalid shift value.</div><div class="ttdef"><b>Definition</b> <a href="../../d9/d14/array__left__rotation_8cpp_source.html#l00105">array_left_rotation.cpp:105</a></div></div>
<div class="ttc" id="anamespacetests_html_abdd77344d4af8fd56d14a5cabbf2f669"><div class="ttname"><a href="../../d9/df4/namespacetests.html#abdd77344d4af8fd56d14a5cabbf2f669">tests::test2</a></div><div class="ttdeci">void test2()</div><div class="ttdoc">A Test to check an empty vector.</div><div class="ttdef"><b>Definition</b> <a href="../../d9/d14/array__left__rotation_8cpp_source.html#l00090">array_left_rotation.cpp:90</a></div></div>
<div class="ttc" id="anamespacetests_html_af7b81d7a1534216af6a36a80135beb86"><div class="ttname"><a href="../../d9/df4/namespacetests.html#af7b81d7a1534216af6a36a80135beb86">tests::test5</a></div><div class="ttdeci">void test5()</div><div class="ttdoc">A Test to check a shift of zero.</div><div class="ttdef"><b>Definition</b> <a href="../../d9/d14/array__left__rotation_8cpp_source.html#l00143">array_left_rotation.cpp:143</a></div></div>
</div><!-- fragment -->
</div>
</div>
</div><!-- contents -->

View File

@@ -1,15 +0,0 @@
<map id="test" name="test">
<area shape="rect" id="Node000001" title="Function to test the correctness of the Circular Linked List." alt="" coords="5,104,49,130"/>
<area shape="rect" id="Node000002" href="$d9/df4/namespacetests.html#a167c24bd817469ae47358d12e034f2d5" title="A Test to check an simple case." alt="" coords="97,5,184,31"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="36,102,61,72,95,40,98,38,101,42,98,44,65,76,40,105"/>
<area shape="rect" id="Node000003" href="$d9/df4/namespacetests.html#abdd77344d4af8fd56d14a5cabbf2f669" title="A Test to check an empty vector." alt="" coords="97,55,184,80"/>
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="48,105,94,85,96,90,50,110"/>
<area shape="rect" id="Node000004" href="$d9/df4/namespacetests.html#aa515639572647508b94986489aab6d76" title="A Test to check an invalid shift value." alt="" coords="97,104,184,130"/>
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="49,114,81,114,81,120,49,120"/>
<area shape="rect" id="Node000005" href="$d9/df4/namespacetests.html#a2b9769e44683dcb67fe1083ad91e134d" title="A Test to check a very large input." alt="" coords="97,153,184,179"/>
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="50,124,96,144,94,149,48,129"/>
<area shape="rect" id="Node000007" href="$d9/df4/namespacetests.html#af7b81d7a1534216af6a36a80135beb86" title="A Test to check a shift of zero." alt="" coords="97,203,184,228"/>
<area shape="poly" id="edge6_Node000001_Node000007" title=" " alt="" coords="40,128,65,158,98,189,101,191,98,196,95,194,61,162,36,132"/>
<area shape="rect" id="Node000006" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/push_back.html#" title=" " alt="" coords="232,153,386,179"/>
<area shape="poly" id="edge5_Node000005_Node000006" title=" " alt="" coords="184,164,216,164,216,169,184,169"/>
</map>

View File

@@ -1 +0,0 @@
5348230967bad27d038932a2089c6e13

View File

@@ -1,155 +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: test Pages: 1 -->
<svg width="294pt" height="175pt"
viewBox="0.00 0.00 293.75 175.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve">
<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 171.25)">
<title>test</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Function to test the correctness of the Circular Linked List.">
<polygon fill="#999999" stroke="#666666" points="32.5,-93.25 0,-93.25 0,-74 32.5,-74 32.5,-93.25"/>
<text text-anchor="middle" x="16.25" y="-79.75" font-family="Helvetica,sans-Serif" font-size="10.00">test</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../d9/df4/namespacetests.html#a167c24bd817469ae47358d12e034f2d5" target="_top" xlink:title="A Test to check an simple case.">
<polygon fill="white" stroke="#666666" points="134,-167.25 68.5,-167.25 68.5,-148 134,-148 134,-167.25"/>
<text text-anchor="middle" x="101.25" y="-153.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests::test1</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="M24.78,-93.61C34.13,-105.55 50.98,-125.66 68.5,-139.62 69.17,-140.16 69.86,-140.68 70.56,-141.2"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="68.61,-144.11 78.89,-146.67 72.45,-138.26 68.61,-144.11"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:href="../../d9/df4/namespacetests.html#abdd77344d4af8fd56d14a5cabbf2f669" target="_top" xlink:title="A Test to check an empty vector.">
<polygon fill="white" stroke="#666666" points="134,-130.25 68.5,-130.25 68.5,-111 134,-111 134,-130.25"/>
<text text-anchor="middle" x="101.25" y="-116.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests::test2</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge2_Node000001_Node000003" class="edge">
<title>Node1&#45;&gt;Node3</title>
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M32.86,-90.58C42.57,-94.91 55.42,-100.64 67.3,-105.94"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="65.87,-109.13 76.43,-110.01 68.72,-102.74 65.87,-109.13"/>
</a>
</g>
</g>
<!-- Node4 -->
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a xlink:href="../../d9/df4/namespacetests.html#aa515639572647508b94986489aab6d76" target="_top" xlink:title="A Test to check an invalid shift value.">
<polygon fill="white" stroke="#666666" points="134,-93.25 68.5,-93.25 68.5,-74 134,-74 134,-93.25"/>
<text text-anchor="middle" x="101.25" y="-79.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests::test3</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<g id="edge3_Node000001_Node000004" class="edge">
<title>Node1&#45;&gt;Node4</title>
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M32.86,-83.62C39.78,-83.62 48.31,-83.62 56.93,-83.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="56.69,-87.13 66.69,-83.63 56.69,-80.13 56.69,-87.13"/>
</a>
</g>
</g>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a xlink:href="../../d9/df4/namespacetests.html#a2b9769e44683dcb67fe1083ad91e134d" target="_top" xlink:title="A Test to check a very large input.">
<polygon fill="white" stroke="#666666" points="134,-56.25 68.5,-56.25 68.5,-37 134,-37 134,-56.25"/>
<text text-anchor="middle" x="101.25" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests::test4</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node5 -->
<g id="edge4_Node000001_Node000005" class="edge">
<title>Node1&#45;&gt;Node5</title>
<g id="a_edge4_Node000001_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M32.86,-76.67C42.57,-72.34 55.42,-66.61 67.3,-61.31"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="68.72,-64.51 76.43,-57.24 65.87,-58.12 68.72,-64.51"/>
</a>
</g>
</g>
<!-- Node7 -->
<g id="Node000007" class="node">
<title>Node7</title>
<g id="a_Node000007"><a xlink:href="../../d9/df4/namespacetests.html#af7b81d7a1534216af6a36a80135beb86" target="_top" xlink:title="A Test to check a shift of zero.">
<polygon fill="white" stroke="#666666" points="134,-19.25 68.5,-19.25 68.5,0 134,0 134,-19.25"/>
<text text-anchor="middle" x="101.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests::test5</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node7 -->
<g id="edge6_Node000001_Node000007" class="edge">
<title>Node1&#45;&gt;Node7</title>
<g id="a_edge6_Node000001_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M24.78,-73.64C34.13,-61.7 50.98,-41.59 68.5,-27.62 69.17,-27.09 69.86,-26.57 70.56,-26.05"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="72.45,-28.99 78.89,-20.58 68.61,-23.14 72.45,-28.99"/>
</a>
</g>
</g>
<!-- Node6 -->
<g id="Node000006" class="node">
<title>Node6</title>
<g id="a_Node000006"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/push_back.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="285.75,-56.25 170,-56.25 170,-37 285.75,-37 285.75,-56.25"/>
<text text-anchor="middle" x="227.88" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::push_back</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node6 -->
<g id="edge5_Node000005_Node000006" class="edge">
<title>Node5&#45;&gt;Node6</title>
<g id="a_edge5_Node000005_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M134.34,-46.62C141.78,-46.62 149.98,-46.62 158.32,-46.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="158.23,-50.13 168.23,-46.63 158.23,-43.13 158.23,-50.13"/>
</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: 6.8 KiB

View File

@@ -1,129 +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: test Pages: 1 -->
<svg width="294pt" height="175pt"
viewBox="0.00 0.00 293.75 175.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 171.25)">
<title>test</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Function to test the correctness of the Circular Linked List.">
<polygon fill="#999999" stroke="#666666" points="32.5,-93.25 0,-93.25 0,-74 32.5,-74 32.5,-93.25"/>
<text text-anchor="middle" x="16.25" y="-79.75" font-family="Helvetica,sans-Serif" font-size="10.00">test</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../d9/df4/namespacetests.html#a167c24bd817469ae47358d12e034f2d5" target="_top" xlink:title="A Test to check an simple case.">
<polygon fill="white" stroke="#666666" points="134,-167.25 68.5,-167.25 68.5,-148 134,-148 134,-167.25"/>
<text text-anchor="middle" x="101.25" y="-153.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests::test1</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="M24.78,-93.61C34.13,-105.55 50.98,-125.66 68.5,-139.62 69.17,-140.16 69.86,-140.68 70.56,-141.2"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="68.61,-144.11 78.89,-146.67 72.45,-138.26 68.61,-144.11"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:href="../../d9/df4/namespacetests.html#abdd77344d4af8fd56d14a5cabbf2f669" target="_top" xlink:title="A Test to check an empty vector.">
<polygon fill="white" stroke="#666666" points="134,-130.25 68.5,-130.25 68.5,-111 134,-111 134,-130.25"/>
<text text-anchor="middle" x="101.25" y="-116.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests::test2</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge2_Node000001_Node000003" class="edge">
<title>Node1&#45;&gt;Node3</title>
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M32.86,-90.58C42.57,-94.91 55.42,-100.64 67.3,-105.94"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="65.87,-109.13 76.43,-110.01 68.72,-102.74 65.87,-109.13"/>
</a>
</g>
</g>
<!-- Node4 -->
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a xlink:href="../../d9/df4/namespacetests.html#aa515639572647508b94986489aab6d76" target="_top" xlink:title="A Test to check an invalid shift value.">
<polygon fill="white" stroke="#666666" points="134,-93.25 68.5,-93.25 68.5,-74 134,-74 134,-93.25"/>
<text text-anchor="middle" x="101.25" y="-79.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests::test3</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<g id="edge3_Node000001_Node000004" class="edge">
<title>Node1&#45;&gt;Node4</title>
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M32.86,-83.62C39.78,-83.62 48.31,-83.62 56.93,-83.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="56.69,-87.13 66.69,-83.63 56.69,-80.13 56.69,-87.13"/>
</a>
</g>
</g>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a xlink:href="../../d9/df4/namespacetests.html#a2b9769e44683dcb67fe1083ad91e134d" target="_top" xlink:title="A Test to check a very large input.">
<polygon fill="white" stroke="#666666" points="134,-56.25 68.5,-56.25 68.5,-37 134,-37 134,-56.25"/>
<text text-anchor="middle" x="101.25" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests::test4</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node5 -->
<g id="edge4_Node000001_Node000005" class="edge">
<title>Node1&#45;&gt;Node5</title>
<g id="a_edge4_Node000001_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M32.86,-76.67C42.57,-72.34 55.42,-66.61 67.3,-61.31"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="68.72,-64.51 76.43,-57.24 65.87,-58.12 68.72,-64.51"/>
</a>
</g>
</g>
<!-- Node7 -->
<g id="Node000007" class="node">
<title>Node7</title>
<g id="a_Node000007"><a xlink:href="../../d9/df4/namespacetests.html#af7b81d7a1534216af6a36a80135beb86" target="_top" xlink:title="A Test to check a shift of zero.">
<polygon fill="white" stroke="#666666" points="134,-19.25 68.5,-19.25 68.5,0 134,0 134,-19.25"/>
<text text-anchor="middle" x="101.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests::test5</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node7 -->
<g id="edge6_Node000001_Node000007" class="edge">
<title>Node1&#45;&gt;Node7</title>
<g id="a_edge6_Node000001_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M24.78,-73.64C34.13,-61.7 50.98,-41.59 68.5,-27.62 69.17,-27.09 69.86,-26.57 70.56,-26.05"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="72.45,-28.99 78.89,-20.58 68.61,-23.14 72.45,-28.99"/>
</a>
</g>
</g>
<!-- Node6 -->
<g id="Node000006" class="node">
<title>Node6</title>
<g id="a_Node000006"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/push_back.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="285.75,-56.25 170,-56.25 170,-37 285.75,-37 285.75,-56.25"/>
<text text-anchor="middle" x="227.88" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::push_back</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node6 -->
<g id="edge5_Node000005_Node000006" class="edge">
<title>Node5&#45;&gt;Node6</title>
<g id="a_edge5_Node000005_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M134.34,-46.62C141.78,-46.62 149.98,-46.62 158.32,-46.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="158.23,-50.13 168.23,-46.63 158.23,-43.13 158.23,-50.13"/>
</a>
</g>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 6.0 KiB

View File

@@ -1,17 +0,0 @@
<map id="main" name="main">
<area shape="rect" id="Node000001" title="main function" alt="" coords="5,104,55,130"/>
<area shape="rect" id="Node000002" href="$de/d33/circular__linked__list_8cpp.html#aa8dca7b867074164d5f45b0f3851269d" title="Function to test the correctness of the Circular Linked List." alt="" coords="103,104,146,130"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="55,114,87,114,87,120,55,120"/>
<area shape="rect" id="Node000003" href="$d9/df4/namespacetests.html#a167c24bd817469ae47358d12e034f2d5" title="A Test to check an simple case." alt="" coords="194,5,281,31"/>
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="134,102,159,72,192,40,195,38,198,42,196,44,163,76,138,105"/>
<area shape="rect" id="Node000004" href="$d9/df4/namespacetests.html#abdd77344d4af8fd56d14a5cabbf2f669" title="A Test to check an empty vector." alt="" coords="194,55,281,80"/>
<area shape="poly" id="edge3_Node000002_Node000004" title=" " alt="" coords="145,105,191,85,193,90,148,110"/>
<area shape="rect" id="Node000005" href="$d9/df4/namespacetests.html#aa515639572647508b94986489aab6d76" title="A Test to check an invalid shift value." alt="" coords="194,104,281,130"/>
<area shape="poly" id="edge4_Node000002_Node000005" title=" " alt="" coords="146,114,179,114,179,120,146,120"/>
<area shape="rect" id="Node000006" href="$d9/df4/namespacetests.html#a2b9769e44683dcb67fe1083ad91e134d" title="A Test to check a very large input." alt="" coords="194,153,281,179"/>
<area shape="poly" id="edge5_Node000002_Node000006" title=" " alt="" coords="148,124,193,144,191,149,145,129"/>
<area shape="rect" id="Node000008" href="$d9/df4/namespacetests.html#af7b81d7a1534216af6a36a80135beb86" title="A Test to check a shift of zero." alt="" coords="194,203,281,228"/>
<area shape="poly" id="edge7_Node000002_Node000008" title=" " alt="" coords="138,128,163,158,196,189,198,191,195,196,192,194,159,162,134,132"/>
<area shape="rect" id="Node000007" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/push_back.html#" title=" " alt="" coords="329,153,484,179"/>
<area shape="poly" id="edge6_Node000006_Node000007" title=" " alt="" coords="282,164,314,164,314,169,282,169"/>
</map>

View File

@@ -1 +0,0 @@
1b0c431d9aa3d9427d987d6d637ad925

View File

@@ -1,173 +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: main Pages: 1 -->
<svg width="367pt" height="175pt"
viewBox="0.00 0.00 366.75 175.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve">
<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 171.25)">
<title>main</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="main function">
<polygon fill="#999999" stroke="#666666" points="37,-93.25 0,-93.25 0,-74 37,-74 37,-93.25"/>
<text text-anchor="middle" x="18.5" y="-79.75" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../de/d33/circular__linked__list_8cpp.html#aa8dca7b867074164d5f45b0f3851269d" target="_top" xlink:title="Function to test the correctness of the Circular Linked List.">
<polygon fill="white" stroke="#666666" points="105.5,-93.25 73,-93.25 73,-74 105.5,-74 105.5,-93.25"/>
<text text-anchor="middle" x="89.25" y="-79.75" font-family="Helvetica,sans-Serif" font-size="10.00">test</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="M37.2,-83.62C44.58,-83.62 53.31,-83.62 61.45,-83.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.2,-87.13 71.2,-83.63 61.2,-80.13 61.2,-87.13"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:href="../../d9/df4/namespacetests.html#a167c24bd817469ae47358d12e034f2d5" target="_top" xlink:title="A Test to check an simple case.">
<polygon fill="white" stroke="#666666" points="207,-167.25 141.5,-167.25 141.5,-148 207,-148 207,-167.25"/>
<text text-anchor="middle" x="174.25" y="-153.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests::test1</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node2&#45;&gt;Node3</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M97.78,-93.61C107.13,-105.55 123.98,-125.66 141.5,-139.62 142.17,-140.16 142.86,-140.68 143.56,-141.2"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="141.61,-144.11 151.89,-146.67 145.45,-138.26 141.61,-144.11"/>
</a>
</g>
</g>
<!-- Node4 -->
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a xlink:href="../../d9/df4/namespacetests.html#abdd77344d4af8fd56d14a5cabbf2f669" target="_top" xlink:title="A Test to check an empty vector.">
<polygon fill="white" stroke="#666666" points="207,-130.25 141.5,-130.25 141.5,-111 207,-111 207,-130.25"/>
<text text-anchor="middle" x="174.25" y="-116.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests::test2</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node4 -->
<g id="edge3_Node000002_Node000004" class="edge">
<title>Node2&#45;&gt;Node4</title>
<g id="a_edge3_Node000002_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M105.86,-90.58C115.57,-94.91 128.42,-100.64 140.3,-105.94"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="138.87,-109.13 149.43,-110.01 141.72,-102.74 138.87,-109.13"/>
</a>
</g>
</g>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a xlink:href="../../d9/df4/namespacetests.html#aa515639572647508b94986489aab6d76" target="_top" xlink:title="A Test to check an invalid shift value.">
<polygon fill="white" stroke="#666666" points="207,-93.25 141.5,-93.25 141.5,-74 207,-74 207,-93.25"/>
<text text-anchor="middle" x="174.25" y="-79.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests::test3</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node5 -->
<g id="edge4_Node000002_Node000005" class="edge">
<title>Node2&#45;&gt;Node5</title>
<g id="a_edge4_Node000002_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M105.86,-83.62C112.78,-83.62 121.31,-83.62 129.93,-83.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="129.69,-87.13 139.69,-83.63 129.69,-80.13 129.69,-87.13"/>
</a>
</g>
</g>
<!-- Node6 -->
<g id="Node000006" class="node">
<title>Node6</title>
<g id="a_Node000006"><a xlink:href="../../d9/df4/namespacetests.html#a2b9769e44683dcb67fe1083ad91e134d" target="_top" xlink:title="A Test to check a very large input.">
<polygon fill="white" stroke="#666666" points="207,-56.25 141.5,-56.25 141.5,-37 207,-37 207,-56.25"/>
<text text-anchor="middle" x="174.25" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests::test4</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node6 -->
<g id="edge5_Node000002_Node000006" class="edge">
<title>Node2&#45;&gt;Node6</title>
<g id="a_edge5_Node000002_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M105.86,-76.67C115.57,-72.34 128.42,-66.61 140.3,-61.31"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="141.72,-64.51 149.43,-57.24 138.87,-58.12 141.72,-64.51"/>
</a>
</g>
</g>
<!-- Node8 -->
<g id="Node000008" class="node">
<title>Node8</title>
<g id="a_Node000008"><a xlink:href="../../d9/df4/namespacetests.html#af7b81d7a1534216af6a36a80135beb86" target="_top" xlink:title="A Test to check a shift of zero.">
<polygon fill="white" stroke="#666666" points="207,-19.25 141.5,-19.25 141.5,0 207,0 207,-19.25"/>
<text text-anchor="middle" x="174.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests::test5</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node8 -->
<g id="edge7_Node000002_Node000008" class="edge">
<title>Node2&#45;&gt;Node8</title>
<g id="a_edge7_Node000002_Node000008"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M97.78,-73.64C107.13,-61.7 123.98,-41.59 141.5,-27.62 142.17,-27.09 142.86,-26.57 143.56,-26.05"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="145.45,-28.99 151.89,-20.58 141.61,-23.14 145.45,-28.99"/>
</a>
</g>
</g>
<!-- Node7 -->
<g id="Node000007" class="node">
<title>Node7</title>
<g id="a_Node000007"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/push_back.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="358.75,-56.25 243,-56.25 243,-37 358.75,-37 358.75,-56.25"/>
<text text-anchor="middle" x="300.88" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::push_back</text>
</a>
</g>
</g>
<!-- Node6&#45;&gt;Node7 -->
<g id="edge6_Node000006_Node000007" class="edge">
<title>Node6&#45;&gt;Node7</title>
<g id="a_edge6_Node000006_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M207.34,-46.62C214.78,-46.62 222.98,-46.62 231.32,-46.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="231.23,-50.13 241.23,-46.63 231.23,-43.13 231.23,-50.13"/>
</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: 7.6 KiB

View File

@@ -1,147 +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: main Pages: 1 -->
<svg width="367pt" height="175pt"
viewBox="0.00 0.00 366.75 175.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 171.25)">
<title>main</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="main function">
<polygon fill="#999999" stroke="#666666" points="37,-93.25 0,-93.25 0,-74 37,-74 37,-93.25"/>
<text text-anchor="middle" x="18.5" y="-79.75" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:href="../../de/d33/circular__linked__list_8cpp.html#aa8dca7b867074164d5f45b0f3851269d" target="_top" xlink:title="Function to test the correctness of the Circular Linked List.">
<polygon fill="white" stroke="#666666" points="105.5,-93.25 73,-93.25 73,-74 105.5,-74 105.5,-93.25"/>
<text text-anchor="middle" x="89.25" y="-79.75" font-family="Helvetica,sans-Serif" font-size="10.00">test</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="M37.2,-83.62C44.58,-83.62 53.31,-83.62 61.45,-83.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.2,-87.13 71.2,-83.63 61.2,-80.13 61.2,-87.13"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:href="../../d9/df4/namespacetests.html#a167c24bd817469ae47358d12e034f2d5" target="_top" xlink:title="A Test to check an simple case.">
<polygon fill="white" stroke="#666666" points="207,-167.25 141.5,-167.25 141.5,-148 207,-148 207,-167.25"/>
<text text-anchor="middle" x="174.25" y="-153.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests::test1</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node3 -->
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node2&#45;&gt;Node3</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M97.78,-93.61C107.13,-105.55 123.98,-125.66 141.5,-139.62 142.17,-140.16 142.86,-140.68 143.56,-141.2"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="141.61,-144.11 151.89,-146.67 145.45,-138.26 141.61,-144.11"/>
</a>
</g>
</g>
<!-- Node4 -->
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a xlink:href="../../d9/df4/namespacetests.html#abdd77344d4af8fd56d14a5cabbf2f669" target="_top" xlink:title="A Test to check an empty vector.">
<polygon fill="white" stroke="#666666" points="207,-130.25 141.5,-130.25 141.5,-111 207,-111 207,-130.25"/>
<text text-anchor="middle" x="174.25" y="-116.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests::test2</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node4 -->
<g id="edge3_Node000002_Node000004" class="edge">
<title>Node2&#45;&gt;Node4</title>
<g id="a_edge3_Node000002_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M105.86,-90.58C115.57,-94.91 128.42,-100.64 140.3,-105.94"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="138.87,-109.13 149.43,-110.01 141.72,-102.74 138.87,-109.13"/>
</a>
</g>
</g>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a xlink:href="../../d9/df4/namespacetests.html#aa515639572647508b94986489aab6d76" target="_top" xlink:title="A Test to check an invalid shift value.">
<polygon fill="white" stroke="#666666" points="207,-93.25 141.5,-93.25 141.5,-74 207,-74 207,-93.25"/>
<text text-anchor="middle" x="174.25" y="-79.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests::test3</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node5 -->
<g id="edge4_Node000002_Node000005" class="edge">
<title>Node2&#45;&gt;Node5</title>
<g id="a_edge4_Node000002_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M105.86,-83.62C112.78,-83.62 121.31,-83.62 129.93,-83.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="129.69,-87.13 139.69,-83.63 129.69,-80.13 129.69,-87.13"/>
</a>
</g>
</g>
<!-- Node6 -->
<g id="Node000006" class="node">
<title>Node6</title>
<g id="a_Node000006"><a xlink:href="../../d9/df4/namespacetests.html#a2b9769e44683dcb67fe1083ad91e134d" target="_top" xlink:title="A Test to check a very large input.">
<polygon fill="white" stroke="#666666" points="207,-56.25 141.5,-56.25 141.5,-37 207,-37 207,-56.25"/>
<text text-anchor="middle" x="174.25" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests::test4</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node6 -->
<g id="edge5_Node000002_Node000006" class="edge">
<title>Node2&#45;&gt;Node6</title>
<g id="a_edge5_Node000002_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M105.86,-76.67C115.57,-72.34 128.42,-66.61 140.3,-61.31"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="141.72,-64.51 149.43,-57.24 138.87,-58.12 141.72,-64.51"/>
</a>
</g>
</g>
<!-- Node8 -->
<g id="Node000008" class="node">
<title>Node8</title>
<g id="a_Node000008"><a xlink:href="../../d9/df4/namespacetests.html#af7b81d7a1534216af6a36a80135beb86" target="_top" xlink:title="A Test to check a shift of zero.">
<polygon fill="white" stroke="#666666" points="207,-19.25 141.5,-19.25 141.5,0 207,0 207,-19.25"/>
<text text-anchor="middle" x="174.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests::test5</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node8 -->
<g id="edge7_Node000002_Node000008" class="edge">
<title>Node2&#45;&gt;Node8</title>
<g id="a_edge7_Node000002_Node000008"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M97.78,-73.64C107.13,-61.7 123.98,-41.59 141.5,-27.62 142.17,-27.09 142.86,-26.57 143.56,-26.05"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="145.45,-28.99 151.89,-20.58 141.61,-23.14 145.45,-28.99"/>
</a>
</g>
</g>
<!-- Node7 -->
<g id="Node000007" class="node">
<title>Node7</title>
<g id="a_Node000007"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/push_back.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="358.75,-56.25 243,-56.25 243,-37 358.75,-37 358.75,-56.25"/>
<text text-anchor="middle" x="300.88" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::push_back</text>
</a>
</g>
</g>
<!-- Node6&#45;&gt;Node7 -->
<g id="edge6_Node000006_Node000007" class="edge">
<title>Node6&#45;&gt;Node7</title>
<g id="a_edge6_Node000006_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M207.34,-46.62C214.78,-46.62 222.98,-46.62 231.32,-46.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="231.23,-50.13 241.23,-46.63 231.23,-43.13 231.23,-50.13"/>
</a>
</g>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 6.9 KiB

View File

@@ -0,0 +1,413 @@
<!-- 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>
<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>TheAlgorithms/C++: operations_on_datastructures/circular_linked_list.cpp Source File</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>
<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/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" 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! -->
<div id="titlearea">
<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">TheAlgorithms/C++<span id="projectnumber">&#160;1.0.0</span>
</div>
<div id="projectbrief">All the 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('de/d33/circular__linked__list_8cpp_source.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="headertitle"><div class="title">circular_linked_list.cpp</div></div>
</div><!--header-->
<div class="contents">
<a href="../../de/d33/circular__linked__list_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span> </div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="preprocessor">#include &lt;cassert&gt;</span> </div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="preprocessor">#include &lt;iostream&gt;</span> </div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#include &lt;vector&gt;</span> </div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> </div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../da/d6d/namespaceoperations__on__datastructures.html">operations_on_datastructures</a> {</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../d4/dcd/namespacecircular__linked__list.html">circular_linked_list</a> {</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> </div>
<div class="foldopen" id="foldopen00032" data-start="{" data-end="};">
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html"> 32</a></span><span class="keyword">struct </span><a class="code hl_struct" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html">Node</a> {</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html#a7461292b8b91aed86404d0ab019dfdd1"> 33</a></span> int64_t <a class="code hl_variable" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html#a7461292b8b91aed86404d0ab019dfdd1">data</a>; </div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html#a7c867b8e1034a6f5da490c8b8c09cb77"> 34</a></span> <a class="code hl_struct" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html">Node</a>* <a class="code hl_variable" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html#a7c867b8e1034a6f5da490c8b8c09cb77">next</a>; </div>
<div class="foldopen" id="foldopen00039" data-start="{" data-end="}">
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html#a005dc56b0c58350a13f4796b9b30b6c5"> 39</a></span> <span class="keyword">explicit</span> <a class="code hl_function" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html#a005dc56b0c58350a13f4796b9b30b6c5">Node</a>(int64_t _data) {</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <a class="code hl_variable" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html#a7461292b8b91aed86404d0ab019dfdd1">data</a> = _data; </div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <a class="code hl_variable" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html#a7c867b8e1034a6f5da490c8b8c09cb77">next</a> = <span class="keyword">nullptr</span>; </div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> }</div>
</div>
<div class="foldopen" id="foldopen00048" data-start="{" data-end="}">
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html#a12a06eef5ccaf667f319506eee655d95"> 48</a></span> <span class="keyword">explicit</span> <a class="code hl_function" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html#a12a06eef5ccaf667f319506eee655d95">Node</a>(int64_t _data, <a class="code hl_struct" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html">Node</a>* _next) {</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <a class="code hl_variable" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html#a7461292b8b91aed86404d0ab019dfdd1">data</a> = _data; </div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <a class="code hl_variable" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html#a7c867b8e1034a6f5da490c8b8c09cb77">next</a> = _next; </div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> }</div>
</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span>};</div>
</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> </div>
<div class="foldopen" id="foldopen00057" data-start="{" data-end="};">
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"><a class="line" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html"> 57</a></span><span class="keyword">class </span><a class="code hl_class" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html">CircularLinkedList</a> {</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"><a class="line" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a5d5cebd6bc906c60763fc6be10cfdd13"> 59</a></span> <a class="code hl_struct" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html">Node</a>* <a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a5d5cebd6bc906c60763fc6be10cfdd13">root</a>; </div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"><a class="line" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#ab682f854f39582a20c9c4102f0482208"> 60</a></span> <a class="code hl_struct" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html">Node</a>* <a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#ab682f854f39582a20c9c4102f0482208">end</a>{}; </div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> </div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="keyword">public</span>:</div>
<div class="foldopen" id="foldopen00066" data-start="{" data-end="}">
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"><a class="line" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#aa704319924f97fedfb41caf193a00888"> 66</a></span> <a class="code hl_function" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#aa704319924f97fedfb41caf193a00888">CircularLinkedList</a>() {</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> <a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a5d5cebd6bc906c60763fc6be10cfdd13">root</a> = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#ab682f854f39582a20c9c4102f0482208">end</a> = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> }</div>
</div>
<div class="foldopen" id="foldopen00073" data-start="{" data-end="}">
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"><a class="line" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a142fa439b102c6f86341f421ddcfe0a1"> 73</a></span> <a class="code hl_function" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a142fa439b102c6f86341f421ddcfe0a1">CircularLinkedList</a>(<span class="keyword">const</span> <a class="code hl_class" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html">CircularLinkedList</a>&amp; copy) {</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <a class="code hl_function" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a398d6cc927a2c8e4a156ae2806f48986">erase</a>();</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a5d5cebd6bc906c60763fc6be10cfdd13">root</a> = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> <a class="code hl_struct" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html">Node</a>* <a class="code hl_class" href="../../d5/da1/structnode.html">node</a> = copy.<a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a5d5cebd6bc906c60763fc6be10cfdd13">root</a>;</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <span class="keywordflow">while</span> (<a class="code hl_class" href="../../d5/da1/structnode.html">node</a> != <span class="keyword">nullptr</span>) {</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <a class="code hl_function" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#ac38565472a07d07f63ec0d2fd8a69d4d">insert</a>(<a class="code hl_class" href="../../d5/da1/structnode.html">node</a>-&gt;data);</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <a class="code hl_class" href="../../d5/da1/structnode.html">node</a> = <a class="code hl_class" href="../../d5/da1/structnode.html">node</a>-&gt;next;</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> }</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> }</div>
</div>
<div class="foldopen" id="foldopen00086" data-start="{" data-end="}">
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"><a class="line" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#abde75f6ee432b0378d264da8c7c64db2"> 86</a></span> <a class="code hl_function" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#abde75f6ee432b0378d264da8c7c64db2">CircularLinkedList</a>(<a class="code hl_class" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html">CircularLinkedList</a>&amp;&amp; source) <span class="keyword">noexcept</span> {</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a5d5cebd6bc906c60763fc6be10cfdd13">root</a> = source.root;</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> <a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#ab682f854f39582a20c9c4102f0482208">end</a> = source.end;</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> source.root = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> source.end = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> }</div>
</div>
<div class="foldopen" id="foldopen00097" data-start="{" data-end="}">
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"><a class="line" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a9cc37166f2f73763df39894b675f89c9"> 97</a></span> <a class="code hl_class" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html">CircularLinkedList</a>&amp; <a class="code hl_function" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a9cc37166f2f73763df39894b675f89c9">operator=</a>(<span class="keyword">const</span> <a class="code hl_class" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html">CircularLinkedList</a>&amp; other) {</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <a class="code hl_function" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a398d6cc927a2c8e4a156ae2806f48986">erase</a>();</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a5d5cebd6bc906c60763fc6be10cfdd13">root</a> = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> <a class="code hl_struct" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html">Node</a>* <a class="code hl_class" href="../../d5/da1/structnode.html">node</a> = other.<a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a5d5cebd6bc906c60763fc6be10cfdd13">root</a>;</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> <span class="keywordflow">while</span> (<a class="code hl_class" href="../../d5/da1/structnode.html">node</a> != <span class="keyword">nullptr</span>) {</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> <a class="code hl_function" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#ac38565472a07d07f63ec0d2fd8a69d4d">insert</a>(<a class="code hl_class" href="../../d5/da1/structnode.html">node</a>-&gt;data);</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> <a class="code hl_class" href="../../d5/da1/structnode.html">node</a> = <a class="code hl_class" href="../../d5/da1/structnode.html">node</a>-&gt;next;</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> }</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> }</div>
</div>
<div class="foldopen" id="foldopen00112" data-start="{" data-end="}">
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"><a class="line" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a8f26dc32615abc5bab8ac458ef424bc5"> 112</a></span> <a class="code hl_class" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html">CircularLinkedList</a>&amp; <a class="code hl_function" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a8f26dc32615abc5bab8ac458ef424bc5">operator=</a>(<a class="code hl_class" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html">CircularLinkedList</a>&amp;&amp; other) <span class="keyword">noexcept</span> {</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> <a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a5d5cebd6bc906c60763fc6be10cfdd13">root</a> = other.root;</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> <a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#ab682f854f39582a20c9c4102f0482208">end</a> = other.end;</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> other.root = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> other.end = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> }</div>
</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"><a class="line" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a46195fcf11b636064c7172cb74b55dd0"> 122</a></span> <a class="code hl_function" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a46195fcf11b636064c7172cb74b55dd0">~CircularLinkedList</a>() { <a class="code hl_function" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a398d6cc927a2c8e4a156ae2806f48986">erase</a>(); }</div>
<div class="foldopen" id="foldopen00126" data-start="{" data-end="}">
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"><a class="line" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a398d6cc927a2c8e4a156ae2806f48986"> 126</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a398d6cc927a2c8e4a156ae2806f48986">erase</a>() {</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a5d5cebd6bc906c60763fc6be10cfdd13">root</a> == <span class="keyword">nullptr</span>) {</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> <span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> }</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> <a class="code hl_struct" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html">Node</a>* <a class="code hl_class" href="../../d5/da1/structnode.html">node</a> = <a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a5d5cebd6bc906c60763fc6be10cfdd13">root</a>;</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> <span class="keywordflow">do</span> {</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> <a class="code hl_struct" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html">Node</a>* temp = <a class="code hl_typedef" href="../../d8/dee/avltree_8cpp.html#a74f0cf18a0e5b832d9994e2f2d022287">node</a>;</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> <a class="code hl_class" href="../../d5/da1/structnode.html">node</a> = <a class="code hl_class" href="../../d5/da1/structnode.html">node</a>-&gt;next;</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> <span class="keyword">delete</span> (temp);</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> } <span class="keywordflow">while</span> (<a class="code hl_class" href="../../d5/da1/structnode.html">node</a> != <a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a5d5cebd6bc906c60763fc6be10cfdd13">root</a>);</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> <a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a5d5cebd6bc906c60763fc6be10cfdd13">root</a> = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> <a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#ab682f854f39582a20c9c4102f0482208">end</a> = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> }</div>
</div>
<div class="foldopen" id="foldopen00146" data-start="{" data-end="}">
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"><a class="line" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#ac38565472a07d07f63ec0d2fd8a69d4d"> 146</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#ac38565472a07d07f63ec0d2fd8a69d4d">insert</a>(<span class="keyword">const</span> std::vector&lt;int64_t&gt;&amp; <a class="code hl_function" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a53611ec1fef92eeeb875aea1bde1e4de">values</a>) {</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> <span class="keywordflow">for</span> (int64_t value : <a class="code hl_function" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a53611ec1fef92eeeb875aea1bde1e4de">values</a>) {</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> <a class="code hl_function" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#ac38565472a07d07f63ec0d2fd8a69d4d">insert</a>(value);</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> }</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> }</div>
</div>
<div class="foldopen" id="foldopen00158" data-start="{" data-end="}">
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"><a class="line" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a3b7bbb0918c261bc216aef9e6dd39aa4"> 158</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a3b7bbb0918c261bc216aef9e6dd39aa4">insert</a>(int64_t <a class="code hl_variable" href="../../d1/df3/hash__search_8cpp.html#a6e1a77282bc65ad359d753d25df23243">data</a>) {</div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> <a class="code hl_struct" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html">Node</a>* <a class="code hl_class" href="../../d5/da1/structnode.html">node</a> = <span class="keyword">new</span> <a class="code hl_struct" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html">Node</a>(<a class="code hl_variable" href="../../d1/df3/hash__search_8cpp.html#a6e1a77282bc65ad359d753d25df23243">data</a>, <a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a5d5cebd6bc906c60763fc6be10cfdd13">root</a>);</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> <a class="code hl_function" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#ac38565472a07d07f63ec0d2fd8a69d4d">insert</a>(<a class="code hl_class" href="../../d5/da1/structnode.html">node</a>);</div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> }</div>
</div>
<div class="foldopen" id="foldopen00169" data-start="{" data-end="}">
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"><a class="line" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a15150d6d933c58190c9c1dd7d22c51ae"> 169</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a15150d6d933c58190c9c1dd7d22c51ae">insert</a>(<a class="code hl_struct" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html">Node</a>* <a class="code hl_class" href="../../d5/da1/structnode.html">node</a>) {</div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a5d5cebd6bc906c60763fc6be10cfdd13">root</a> == <span class="keyword">nullptr</span>) {</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> <a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a5d5cebd6bc906c60763fc6be10cfdd13">root</a> = <a class="code hl_typedef" href="../../d8/dee/avltree_8cpp.html#a74f0cf18a0e5b832d9994e2f2d022287">node</a>; </div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> <a class="code hl_class" href="../../d5/da1/structnode.html">node</a>-&gt;next = <a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a5d5cebd6bc906c60763fc6be10cfdd13">root</a>; </div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> <a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#ab682f854f39582a20c9c4102f0482208">end</a> = <a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a5d5cebd6bc906c60763fc6be10cfdd13">root</a>; </div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> } <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> <a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#ab682f854f39582a20c9c4102f0482208">end</a>-&gt;<a class="code hl_variable" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html#a7c867b8e1034a6f5da490c8b8c09cb77">next</a> = <a class="code hl_typedef" href="../../d8/dee/avltree_8cpp.html#a74f0cf18a0e5b832d9994e2f2d022287">node</a>; </div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> <a class="code hl_class" href="../../d5/da1/structnode.html">node</a>-&gt;next = <a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a5d5cebd6bc906c60763fc6be10cfdd13">root</a>; </div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> <a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#ab682f854f39582a20c9c4102f0482208">end</a> = <a class="code hl_typedef" href="../../d8/dee/avltree_8cpp.html#a74f0cf18a0e5b832d9994e2f2d022287">node</a>; </div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> }</div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> }</div>
</div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"><a class="line" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#ac341901e926b3fa3a796c64ca572f592"> 187</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#ac341901e926b3fa3a796c64ca572f592">print</a>() { <a class="code hl_function" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#ac341901e926b3fa3a796c64ca572f592">print</a>(<a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a5d5cebd6bc906c60763fc6be10cfdd13">root</a>); }</div>
<div class="foldopen" id="foldopen00196" data-start="{" data-end="}">
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"><a class="line" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a424b17ddc672b25fe0bd9dc8612fba21"> 196</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a424b17ddc672b25fe0bd9dc8612fba21">print</a>(<a class="code hl_struct" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html">Node</a>* <a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a5d5cebd6bc906c60763fc6be10cfdd13">root</a>) {</div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> <a class="code hl_struct" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html">Node</a>* temp = <a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a5d5cebd6bc906c60763fc6be10cfdd13">root</a>;</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a5d5cebd6bc906c60763fc6be10cfdd13">root</a> == <span class="keyword">nullptr</span>) {</div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> std::cout &lt;&lt; <span class="stringliteral">&quot;Empty List!\n&quot;</span>;</div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> <span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span> }</div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> <span class="keywordflow">do</span> {</div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> std::cout &lt;&lt; temp-&gt;<a class="code hl_variable" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html#a7461292b8b91aed86404d0ab019dfdd1">data</a> &lt;&lt; <span class="stringliteral">&quot; &quot;</span>;</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> temp = temp-&gt;<a class="code hl_variable" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html#a7c867b8e1034a6f5da490c8b8c09cb77">next</a>;</div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> } <span class="keywordflow">while</span> (temp != <a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a5d5cebd6bc906c60763fc6be10cfdd13">root</a>);</div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> std::cout &lt;&lt; <span class="stringliteral">&quot;\n&quot;</span>;</div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span> }</div>
</div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"><a class="line" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a53611ec1fef92eeeb875aea1bde1e4de"> 214</a></span> std::vector&lt;int64_t&gt; <a class="code hl_function" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a53611ec1fef92eeeb875aea1bde1e4de">values</a>() { <span class="keywordflow">return</span> <a class="code hl_function" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a53611ec1fef92eeeb875aea1bde1e4de">values</a>(<a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a5d5cebd6bc906c60763fc6be10cfdd13">root</a>); }</div>
<div class="foldopen" id="foldopen00223" data-start="{" data-end="}">
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"><a class="line" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a03a896b34d27fda69049827e0c4dab42"> 223</a></span> std::vector&lt;int64_t&gt; <a class="code hl_function" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a03a896b34d27fda69049827e0c4dab42">values</a>(<a class="code hl_struct" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html">Node</a>* <a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a5d5cebd6bc906c60763fc6be10cfdd13">root</a>) {</div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span> std::vector&lt;int64_t&gt; res;</div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a5d5cebd6bc906c60763fc6be10cfdd13">root</a> == <span class="keyword">nullptr</span>) {</div>
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span> <span class="keywordflow">return</span> res; </div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span> }</div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> <a class="code hl_struct" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html">Node</a>* temp = <a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a5d5cebd6bc906c60763fc6be10cfdd13">root</a>;</div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span> <span class="keywordflow">do</span> {</div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> res.push_back(temp-&gt;<a class="code hl_variable" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html#a7461292b8b91aed86404d0ab019dfdd1">data</a>);</div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span> temp = temp-&gt;<a class="code hl_variable" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html#a7c867b8e1034a6f5da490c8b8c09cb77">next</a>;</div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"> 232</span> } <span class="keywordflow">while</span> (temp != <a class="code hl_variable" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a5d5cebd6bc906c60763fc6be10cfdd13">root</a>);</div>
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno"> 233</span> <span class="keywordflow">return</span> res;</div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"> 234</span> }</div>
</div>
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span>};</div>
</div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> </div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span>} <span class="comment">// namespace circular_linked_list</span></div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> </div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span>} <span class="comment">// namespace operations_on_datastructures</span></div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span> </div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../d9/df4/namespacetests.html">tests</a> {</div>
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span><span class="keyword">using </span><a class="code hl_class" href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html">operations_on_datastructures::circular_linked_list::CircularLinkedList</a>;</div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span><span class="keyword">using </span><a class="code hl_struct" href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html">operations_on_datastructures::circular_linked_list::Node</a>;</div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span><span class="keywordtype">void</span> <a class="code hl_function" href="../../d9/df4/namespacetests.html#a167c24bd817469ae47358d12e034f2d5">test1</a>() {</div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"> 253</span> std::cout &lt;&lt; <span class="stringliteral">&quot;TEST CASE 1\n&quot;</span>;</div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span> std::cout &lt;&lt; <span class="stringliteral">&quot;Intialized a = {2}\n&quot;</span>;</div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span> std::cout &lt;&lt; <span class="stringliteral">&quot;Expected result: {2}\n&quot;</span>;</div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span> CircularLinkedList a;</div>
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span> std::vector&lt;int64_t&gt; res = {2};</div>
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"> 258</span> a.insert(2);</div>
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"> 259</span> assert(a.values() == res);</div>
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"> 260</span> a.print();</div>
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"> 261</span> std::cout &lt;&lt; <span class="stringliteral">&quot;TEST PASSED!\n\n&quot;</span>;</div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"> 262</span>}</div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"> 267</span><span class="keywordtype">void</span> <a class="code hl_function" href="../../d9/df4/namespacetests.html#abdd77344d4af8fd56d14a5cabbf2f669">test2</a>() {</div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno"> 268</span> std::cout &lt;&lt; <span class="stringliteral">&quot;TEST CASE 2\n&quot;</span>;</div>
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"> 269</span> std::cout &lt;&lt; <span class="stringliteral">&quot;Intialized a = {2, 5, 6}\n&quot;</span>;</div>
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno"> 270</span> std::cout &lt;&lt; <span class="stringliteral">&quot;Expected result: {2, 5, 6}\n&quot;</span>;</div>
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno"> 271</span> CircularLinkedList a;</div>
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno"> 272</span> std::vector&lt;int64_t&gt; res = {2, 5, 6};</div>
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno"> 273</span> a.insert(2);</div>
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno"> 274</span> a.insert(5);</div>
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno"> 275</span> a.insert(6);</div>
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno"> 276</span> assert(a.values() == res);</div>
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno"> 277</span> a.print();</div>
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno"> 278</span> std::cout &lt;&lt; <span class="stringliteral">&quot;TEST PASSED!\n\n&quot;</span>;</div>
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno"> 279</span>}</div>
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"> 284</span><span class="keywordtype">void</span> <a class="code hl_function" href="../../d9/df4/namespacetests.html#aa515639572647508b94986489aab6d76">test3</a>() {</div>
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"> 285</span> std::cout &lt;&lt; <span class="stringliteral">&quot;TEST CASE 3\n&quot;</span>;</div>
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno"> 286</span> std::cout &lt;&lt; <span class="stringliteral">&quot;Intialized a = {2, 7, 8, 3, 2, 6}\n&quot;</span>;</div>
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno"> 287</span> std::cout &lt;&lt; <span class="stringliteral">&quot;Expected result: {2, 7, 8, 3, 2, 6}\n&quot;</span>;</div>
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno"> 288</span> CircularLinkedList a;</div>
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno"> 289</span> std::vector&lt;int64_t&gt; res = {2, 7, 8, 3, 2, 6};</div>
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno"> 290</span> a.insert({2, 7, 8, 3, 2, 6});</div>
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno"> 291</span> a.print();</div>
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno"> 292</span> assert(a.values() == res);</div>
<div class="line"><a id="l00293" name="l00293"></a><span class="lineno"> 293</span> std::cout &lt;&lt; <span class="stringliteral">&quot;TEST PASSED!\n\n&quot;</span>;</div>
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno"> 294</span>}</div>
<div class="line"><a id="l00299" name="l00299"></a><span class="lineno"> 299</span><span class="keywordtype">void</span> <a class="code hl_function" href="../../d9/df4/namespacetests.html#a2b9769e44683dcb67fe1083ad91e134d">test4</a>() {</div>
<div class="line"><a id="l00300" name="l00300"></a><span class="lineno"> 300</span> std::cout &lt;&lt; <span class="stringliteral">&quot;TEST CASE 4\n&quot;</span>;</div>
<div class="line"><a id="l00301" name="l00301"></a><span class="lineno"> 301</span> std::cout &lt;&lt; <span class="stringliteral">&quot;Intialized a = {2, 5}\n&quot;</span>;</div>
<div class="line"><a id="l00302" name="l00302"></a><span class="lineno"> 302</span> std::cout &lt;&lt; <span class="stringliteral">&quot;Expected result: {5, 2}\n&quot;</span>;</div>
<div class="line"><a id="l00303" name="l00303"></a><span class="lineno"> 303</span> CircularLinkedList a;</div>
<div class="line"><a id="l00304" name="l00304"></a><span class="lineno"> 304</span> std::vector&lt;int64_t&gt; res = {5, 2};</div>
<div class="line"><a id="l00305" name="l00305"></a><span class="lineno"> 305</span> a.insert(2);</div>
<div class="line"><a id="l00306" name="l00306"></a><span class="lineno"> 306</span> <a class="code hl_class" href="../../db/d8b/struct_node.html">Node</a>* start = <span class="keyword">new</span> <a class="code hl_class" href="../../db/d8b/struct_node.html">Node</a>(5); </div>
<div class="line"><a id="l00307" name="l00307"></a><span class="lineno"> 307</span> a.insert(start);</div>
<div class="line"><a id="l00308" name="l00308"></a><span class="lineno"> 308</span> assert(a.values(start) == res);</div>
<div class="line"><a id="l00309" name="l00309"></a><span class="lineno"> 309</span> a.print(start);</div>
<div class="line"><a id="l00310" name="l00310"></a><span class="lineno"> 310</span> std::cout &lt;&lt; <span class="stringliteral">&quot;TEST PASSED!\n\n&quot;</span>;</div>
<div class="line"><a id="l00311" name="l00311"></a><span class="lineno"> 311</span>}</div>
<div class="line"><a id="l00312" name="l00312"></a><span class="lineno"> 312</span> </div>
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno"> 317</span><span class="keywordtype">void</span> <a class="code hl_function" href="../../d9/df4/namespacetests.html#af7b81d7a1534216af6a36a80135beb86">test5</a>() {</div>
<div class="line"><a id="l00318" name="l00318"></a><span class="lineno"> 318</span> std::cout &lt;&lt; <span class="stringliteral">&quot;TEST CASE 5\n&quot;</span>;</div>
<div class="line"><a id="l00319" name="l00319"></a><span class="lineno"> 319</span> std::cout &lt;&lt; <span class="stringliteral">&quot;Intialized a = {}\n&quot;</span>;</div>
<div class="line"><a id="l00320" name="l00320"></a><span class="lineno"> 320</span> std::cout &lt;&lt; <span class="stringliteral">&quot;Expected result: Empty List!\n&quot;</span>;</div>
<div class="line"><a id="l00321" name="l00321"></a><span class="lineno"> 321</span> CircularLinkedList a;</div>
<div class="line"><a id="l00322" name="l00322"></a><span class="lineno"> 322</span> std::vector&lt;int64_t&gt; res = {};</div>
<div class="line"><a id="l00323" name="l00323"></a><span class="lineno"> 323</span> assert(a.values() == res);</div>
<div class="line"><a id="l00324" name="l00324"></a><span class="lineno"> 324</span> a.print();</div>
<div class="line"><a id="l00325" name="l00325"></a><span class="lineno"> 325</span> std::cout &lt;&lt; <span class="stringliteral">&quot;TEST PASSED!\n\n&quot;</span>;</div>
<div class="line"><a id="l00326" name="l00326"></a><span class="lineno"> 326</span>}</div>
<div class="line"><a id="l00327" name="l00327"></a><span class="lineno"> 327</span>} <span class="comment">// namespace tests</span></div>
<div class="line"><a id="l00328" name="l00328"></a><span class="lineno"> 328</span> </div>
<div class="foldopen" id="foldopen00333" data-start="{" data-end="}">
<div class="line"><a id="l00333" name="l00333"></a><span class="lineno"><a class="line" href="../../de/d33/circular__linked__list_8cpp.html#aa8dca7b867074164d5f45b0f3851269d"> 333</a></span><span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../de/d33/circular__linked__list_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a>() {</div>
<div class="line"><a id="l00334" name="l00334"></a><span class="lineno"> 334</span> <a class="code hl_function" href="../../d9/df4/namespacetests.html#a167c24bd817469ae47358d12e034f2d5">tests::test1</a>();</div>
<div class="line"><a id="l00335" name="l00335"></a><span class="lineno"> 335</span> <a class="code hl_function" href="../../d9/df4/namespacetests.html#abdd77344d4af8fd56d14a5cabbf2f669">tests::test2</a>();</div>
<div class="line"><a id="l00336" name="l00336"></a><span class="lineno"> 336</span> <a class="code hl_function" href="../../d9/df4/namespacetests.html#aa515639572647508b94986489aab6d76">tests::test3</a>();</div>
<div class="line"><a id="l00337" name="l00337"></a><span class="lineno"> 337</span> <a class="code hl_function" href="../../d9/df4/namespacetests.html#a2b9769e44683dcb67fe1083ad91e134d">tests::test4</a>();</div>
<div class="line"><a id="l00338" name="l00338"></a><span class="lineno"> 338</span> <a class="code hl_function" href="../../d9/df4/namespacetests.html#af7b81d7a1534216af6a36a80135beb86">tests::test5</a>();</div>
<div class="line"><a id="l00339" name="l00339"></a><span class="lineno"> 339</span>}</div>
</div>
<div class="line"><a id="l00340" name="l00340"></a><span class="lineno"> 340</span> </div>
<div class="foldopen" id="foldopen00345" data-start="{" data-end="}">
<div class="line"><a id="l00345" name="l00345"></a><span class="lineno"><a class="line" href="../../de/d33/circular__linked__list_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4"> 345</a></span><span class="keywordtype">int</span> <a class="code hl_function" href="../../de/d33/circular__linked__list_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a>() {</div>
<div class="line"><a id="l00346" name="l00346"></a><span class="lineno"> 346</span> <a class="code hl_function" href="../../de/d33/circular__linked__list_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a>(); <span class="comment">// run self-test implementations</span></div>
<div class="line"><a id="l00347" name="l00347"></a><span class="lineno"> 347</span> <span class="keywordflow">return</span> 0;</div>
<div class="line"><a id="l00348" name="l00348"></a><span class="lineno"> 348</span>}</div>
</div>
<div class="ttc" id="aavltree_8cpp_html_a74f0cf18a0e5b832d9994e2f2d022287"><div class="ttname"><a href="../../d8/dee/avltree_8cpp.html#a74f0cf18a0e5b832d9994e2f2d022287">node</a></div><div class="ttdeci">struct node { int data; int height; struct node *left; struct node *right;} node</div><div class="ttdoc">for std::queue</div><div class="ttdef"><b>Definition</b> <a href="../../d8/dee/avltree_8cpp_source.html#l00013">avltree.cpp:13</a></div></div>
<div class="ttc" id="acircular__linked__list_8cpp_html_aa8dca7b867074164d5f45b0f3851269d"><div class="ttname"><a href="../../de/d33/circular__linked__list_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a></div><div class="ttdeci">static void test()</div><div class="ttdoc">Function to test the correctness of the Circular Linked List.</div><div class="ttdef"><b>Definition</b> <a href="#l00333">circular_linked_list.cpp:333</a></div></div>
<div class="ttc" id="acircular__linked__list_8cpp_html_ae66f6b31b5ad750f1fe042a706a4e3d4"><div class="ttname"><a href="../../de/d33/circular__linked__list_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a></div><div class="ttdeci">int main()</div><div class="ttdoc">main function</div><div class="ttdef"><b>Definition</b> <a href="#l00345">circular_linked_list.cpp:345</a></div></div>
<div class="ttc" id="aclassoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list_html"><div class="ttname"><a href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html">operations_on_datastructures::circular_linked_list::CircularLinkedList</a></div><div class="ttdoc">A class that implements a Circular Linked List.</div><div class="ttdef"><b>Definition</b> <a href="#l00057">circular_linked_list.cpp:57</a></div></div>
<div class="ttc" id="aclassoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list_html_a03a896b34d27fda69049827e0c4dab42"><div class="ttname"><a href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a03a896b34d27fda69049827e0c4dab42">operations_on_datastructures::circular_linked_list::CircularLinkedList::values</a></div><div class="ttdeci">std::vector&lt; int64_t &gt; values(Node *root)</div><div class="ttdoc">Returns a std::vector of the values of the Circular Linked List, beginning from a given Node.</div><div class="ttdef"><b>Definition</b> <a href="#l00223">circular_linked_list.cpp:223</a></div></div>
<div class="ttc" id="aclassoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list_html_a142fa439b102c6f86341f421ddcfe0a1"><div class="ttname"><a href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a142fa439b102c6f86341f421ddcfe0a1">operations_on_datastructures::circular_linked_list::CircularLinkedList::CircularLinkedList</a></div><div class="ttdeci">CircularLinkedList(const CircularLinkedList &amp;copy)</div><div class="ttdoc">Copy constructor for CircularLinkedList.</div><div class="ttdef"><b>Definition</b> <a href="#l00073">circular_linked_list.cpp:73</a></div></div>
<div class="ttc" id="aclassoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list_html_a15150d6d933c58190c9c1dd7d22c51ae"><div class="ttname"><a href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a15150d6d933c58190c9c1dd7d22c51ae">operations_on_datastructures::circular_linked_list::CircularLinkedList::insert</a></div><div class="ttdeci">void insert(Node *node)</div><div class="ttdoc">Inserts a given Node into the Circular Linked List.</div><div class="ttdef"><b>Definition</b> <a href="#l00169">circular_linked_list.cpp:169</a></div></div>
<div class="ttc" id="aclassoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list_html_a398d6cc927a2c8e4a156ae2806f48986"><div class="ttname"><a href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a398d6cc927a2c8e4a156ae2806f48986">operations_on_datastructures::circular_linked_list::CircularLinkedList::erase</a></div><div class="ttdeci">void erase()</div><div class="ttdef"><b>Definition</b> <a href="#l00126">circular_linked_list.cpp:126</a></div></div>
<div class="ttc" id="aclassoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list_html_a3b7bbb0918c261bc216aef9e6dd39aa4"><div class="ttname"><a href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a3b7bbb0918c261bc216aef9e6dd39aa4">operations_on_datastructures::circular_linked_list::CircularLinkedList::insert</a></div><div class="ttdeci">void insert(int64_t data)</div><div class="ttdoc">Inserts a single value into the Circular Linked List.</div><div class="ttdef"><b>Definition</b> <a href="#l00158">circular_linked_list.cpp:158</a></div></div>
<div class="ttc" id="aclassoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list_html_a424b17ddc672b25fe0bd9dc8612fba21"><div class="ttname"><a href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a424b17ddc672b25fe0bd9dc8612fba21">operations_on_datastructures::circular_linked_list::CircularLinkedList::print</a></div><div class="ttdeci">void print(Node *root)</div><div class="ttdoc">Prints the values of the Circular Linked List, beginning from a given Node to be used as the root.</div><div class="ttdef"><b>Definition</b> <a href="#l00196">circular_linked_list.cpp:196</a></div></div>
<div class="ttc" id="aclassoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list_html_a46195fcf11b636064c7172cb74b55dd0"><div class="ttname"><a href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a46195fcf11b636064c7172cb74b55dd0">operations_on_datastructures::circular_linked_list::CircularLinkedList::~CircularLinkedList</a></div><div class="ttdeci">~CircularLinkedList()</div><div class="ttdoc">Cleans up memory when destroyed.</div><div class="ttdef"><b>Definition</b> <a href="#l00122">circular_linked_list.cpp:122</a></div></div>
<div class="ttc" id="aclassoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list_html_a53611ec1fef92eeeb875aea1bde1e4de"><div class="ttname"><a href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a53611ec1fef92eeeb875aea1bde1e4de">operations_on_datastructures::circular_linked_list::CircularLinkedList::values</a></div><div class="ttdeci">std::vector&lt; int64_t &gt; values()</div><div class="ttdoc">Returns a std::vector of the values of the Circular Linked List.</div><div class="ttdef"><b>Definition</b> <a href="#l00214">circular_linked_list.cpp:214</a></div></div>
<div class="ttc" id="aclassoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list_html_a5d5cebd6bc906c60763fc6be10cfdd13"><div class="ttname"><a href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a5d5cebd6bc906c60763fc6be10cfdd13">operations_on_datastructures::circular_linked_list::CircularLinkedList::root</a></div><div class="ttdeci">Node * root</div><div class="ttdoc">Pointer to the root Node.</div><div class="ttdef"><b>Definition</b> <a href="#l00059">circular_linked_list.cpp:59</a></div></div>
<div class="ttc" id="aclassoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list_html_a8f26dc32615abc5bab8ac458ef424bc5"><div class="ttname"><a href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a8f26dc32615abc5bab8ac458ef424bc5">operations_on_datastructures::circular_linked_list::CircularLinkedList::operator=</a></div><div class="ttdeci">CircularLinkedList &amp; operator=(CircularLinkedList &amp;&amp;other) noexcept</div><div class="ttdoc">Move assignment operator.</div><div class="ttdef"><b>Definition</b> <a href="#l00112">circular_linked_list.cpp:112</a></div></div>
<div class="ttc" id="aclassoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list_html_a9cc37166f2f73763df39894b675f89c9"><div class="ttname"><a href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#a9cc37166f2f73763df39894b675f89c9">operations_on_datastructures::circular_linked_list::CircularLinkedList::operator=</a></div><div class="ttdeci">CircularLinkedList &amp; operator=(const CircularLinkedList &amp;other)</div><div class="ttdoc">Copy assignment operator.</div><div class="ttdef"><b>Definition</b> <a href="#l00097">circular_linked_list.cpp:97</a></div></div>
<div class="ttc" id="aclassoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list_html_aa704319924f97fedfb41caf193a00888"><div class="ttname"><a href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#aa704319924f97fedfb41caf193a00888">operations_on_datastructures::circular_linked_list::CircularLinkedList::CircularLinkedList</a></div><div class="ttdeci">CircularLinkedList()</div><div class="ttdoc">Creates an empty CircularLinkedList.</div><div class="ttdef"><b>Definition</b> <a href="#l00066">circular_linked_list.cpp:66</a></div></div>
<div class="ttc" id="aclassoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list_html_ab682f854f39582a20c9c4102f0482208"><div class="ttname"><a href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#ab682f854f39582a20c9c4102f0482208">operations_on_datastructures::circular_linked_list::CircularLinkedList::end</a></div><div class="ttdeci">Node * end</div><div class="ttdoc">Pointer to the last Node.</div><div class="ttdef"><b>Definition</b> <a href="#l00060">circular_linked_list.cpp:60</a></div></div>
<div class="ttc" id="aclassoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list_html_abde75f6ee432b0378d264da8c7c64db2"><div class="ttname"><a href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#abde75f6ee432b0378d264da8c7c64db2">operations_on_datastructures::circular_linked_list::CircularLinkedList::CircularLinkedList</a></div><div class="ttdeci">CircularLinkedList(CircularLinkedList &amp;&amp;source) noexcept</div><div class="ttdoc">Move constructor for CircularLinkedList.</div><div class="ttdef"><b>Definition</b> <a href="#l00086">circular_linked_list.cpp:86</a></div></div>
<div class="ttc" id="aclassoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list_html_ac341901e926b3fa3a796c64ca572f592"><div class="ttname"><a href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#ac341901e926b3fa3a796c64ca572f592">operations_on_datastructures::circular_linked_list::CircularLinkedList::print</a></div><div class="ttdeci">void print()</div><div class="ttdoc">Prints the values of the Circular Linked List, beginning from the root Node.</div><div class="ttdef"><b>Definition</b> <a href="#l00187">circular_linked_list.cpp:187</a></div></div>
<div class="ttc" id="aclassoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list_html_ac38565472a07d07f63ec0d2fd8a69d4d"><div class="ttname"><a href="../../d8/d7c/classoperations__on__datastructures_1_1circular__linked__list_1_1_circular_linked_list.html#ac38565472a07d07f63ec0d2fd8a69d4d">operations_on_datastructures::circular_linked_list::CircularLinkedList::insert</a></div><div class="ttdeci">void insert(const std::vector&lt; int64_t &gt; &amp;values)</div><div class="ttdoc">Inserts all the values from a vector into the Circular Linked List.</div><div class="ttdef"><b>Definition</b> <a href="#l00146">circular_linked_list.cpp:146</a></div></div>
<div class="ttc" id="ahash__search_8cpp_html_a6e1a77282bc65ad359d753d25df23243"><div class="ttname"><a href="../../d1/df3/hash__search_8cpp.html#a6e1a77282bc65ad359d753d25df23243">data</a></div><div class="ttdeci">int data[MAX]</div><div class="ttdoc">test data</div><div class="ttdef"><b>Definition</b> <a href="../../d1/df3/hash__search_8cpp_source.html#l00024">hash_search.cpp:24</a></div></div>
<div class="ttc" id="anamespacecircular__linked__list_html"><div class="ttname"><a href="../../d4/dcd/namespacecircular__linked__list.html">circular_linked_list</a></div><div class="ttdoc">Functions for the Circular Linked List implementation.</div></div>
<div class="ttc" id="anamespaceoperations__on__datastructures_html"><div class="ttname"><a href="../../da/d6d/namespaceoperations__on__datastructures.html">operations_on_datastructures</a></div><div class="ttdoc">for std::vector</div></div>
<div class="ttc" id="anamespacetests_html"><div class="ttname"><a href="../../d9/df4/namespacetests.html">tests</a></div><div class="ttdoc">Testcases to check Union of Two Arrays.</div></div>
<div class="ttc" id="anamespacetests_html_a167c24bd817469ae47358d12e034f2d5"><div class="ttname"><a href="../../d9/df4/namespacetests.html#a167c24bd817469ae47358d12e034f2d5">tests::test1</a></div><div class="ttdeci">void test1()</div><div class="ttdoc">A Test to check an simple case.</div><div class="ttdef"><b>Definition</b> <a href="../../d9/d14/array__left__rotation_8cpp_source.html#l00075">array_left_rotation.cpp:75</a></div></div>
<div class="ttc" id="anamespacetests_html_a2b9769e44683dcb67fe1083ad91e134d"><div class="ttname"><a href="../../d9/df4/namespacetests.html#a2b9769e44683dcb67fe1083ad91e134d">tests::test4</a></div><div class="ttdeci">void test4()</div><div class="ttdoc">A Test to check a very large input.</div><div class="ttdef"><b>Definition</b> <a href="../../d9/d14/array__left__rotation_8cpp_source.html#l00120">array_left_rotation.cpp:120</a></div></div>
<div class="ttc" id="anamespacetests_html_aa515639572647508b94986489aab6d76"><div class="ttname"><a href="../../d9/df4/namespacetests.html#aa515639572647508b94986489aab6d76">tests::test3</a></div><div class="ttdeci">void test3()</div><div class="ttdoc">A Test to check an invalid shift value.</div><div class="ttdef"><b>Definition</b> <a href="../../d9/d14/array__left__rotation_8cpp_source.html#l00105">array_left_rotation.cpp:105</a></div></div>
<div class="ttc" id="anamespacetests_html_abdd77344d4af8fd56d14a5cabbf2f669"><div class="ttname"><a href="../../d9/df4/namespacetests.html#abdd77344d4af8fd56d14a5cabbf2f669">tests::test2</a></div><div class="ttdeci">void test2()</div><div class="ttdoc">A Test to check an empty vector.</div><div class="ttdef"><b>Definition</b> <a href="../../d9/d14/array__left__rotation_8cpp_source.html#l00090">array_left_rotation.cpp:90</a></div></div>
<div class="ttc" id="anamespacetests_html_af7b81d7a1534216af6a36a80135beb86"><div class="ttname"><a href="../../d9/df4/namespacetests.html#af7b81d7a1534216af6a36a80135beb86">tests::test5</a></div><div class="ttdeci">void test5()</div><div class="ttdoc">A Test to check a shift of zero.</div><div class="ttdef"><b>Definition</b> <a href="../../d9/d14/array__left__rotation_8cpp_source.html#l00143">array_left_rotation.cpp:143</a></div></div>
<div class="ttc" id="astruct_node_html"><div class="ttname"><a href="../../db/d8b/struct_node.html">Node</a></div><div class="ttdef"><b>Definition</b> <a href="../../d3/dce/linkedlist__implentation__usingarray_8cpp_source.html#l00014">linkedlist_implentation_usingarray.cpp:14</a></div></div>
<div class="ttc" id="astructnode_html"><div class="ttname"><a href="../../d5/da1/structnode.html">node</a></div><div class="ttdef"><b>Definition</b> <a href="../../d3/d26/binary__search__tree_8cpp_source.html#l00011">binary_search_tree.cpp:11</a></div></div>
<div class="ttc" id="astructoperations__on__datastructures_1_1circular__linked__list_1_1_node_html"><div class="ttname"><a href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html">operations_on_datastructures::circular_linked_list::Node</a></div><div class="ttdoc">A Node struct that represents a single Node in a Binary Tree.</div><div class="ttdef"><b>Definition</b> <a href="#l00032">circular_linked_list.cpp:32</a></div></div>
<div class="ttc" id="astructoperations__on__datastructures_1_1circular__linked__list_1_1_node_html_a005dc56b0c58350a13f4796b9b30b6c5"><div class="ttname"><a href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html#a005dc56b0c58350a13f4796b9b30b6c5">operations_on_datastructures::circular_linked_list::Node::Node</a></div><div class="ttdeci">Node(int64_t _data)</div><div class="ttdoc">Creates a new Node with some initial data.</div><div class="ttdef"><b>Definition</b> <a href="#l00039">circular_linked_list.cpp:39</a></div></div>
<div class="ttc" id="astructoperations__on__datastructures_1_1circular__linked__list_1_1_node_html_a12a06eef5ccaf667f319506eee655d95"><div class="ttname"><a href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html#a12a06eef5ccaf667f319506eee655d95">operations_on_datastructures::circular_linked_list::Node::Node</a></div><div class="ttdeci">Node(int64_t _data, Node *_next)</div><div class="ttdoc">Creates a new Node with initial data and a successor.</div><div class="ttdef"><b>Definition</b> <a href="#l00048">circular_linked_list.cpp:48</a></div></div>
<div class="ttc" id="astructoperations__on__datastructures_1_1circular__linked__list_1_1_node_html_a7461292b8b91aed86404d0ab019dfdd1"><div class="ttname"><a href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html#a7461292b8b91aed86404d0ab019dfdd1">operations_on_datastructures::circular_linked_list::Node::data</a></div><div class="ttdeci">int64_t data</div><div class="ttdoc">The value of the Node.</div><div class="ttdef"><b>Definition</b> <a href="#l00033">circular_linked_list.cpp:33</a></div></div>
<div class="ttc" id="astructoperations__on__datastructures_1_1circular__linked__list_1_1_node_html_a7c867b8e1034a6f5da490c8b8c09cb77"><div class="ttname"><a href="../../da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html#a7c867b8e1034a6f5da490c8b8c09cb77">operations_on_datastructures::circular_linked_list::Node::next</a></div><div class="ttdeci">Node * next</div><div class="ttdoc">The Node's successor.</div><div class="ttdef"><b>Definition</b> <a href="#l00034">circular_linked_list.cpp:34</a></div></div>
</div><!-- fragment --></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="../../dir_35422be6552f1b3672c1b6c4aba2da64.html">operations_on_datastructures</a></li><li class="navelem"><a class="el" href="../../de/d33/circular__linked__list_8cpp.html">circular_linked_list.cpp</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0 </li>
</ul>
</div>
</body>
</html>

View File

@@ -1,6 +1,6 @@
<map id="data_structures::linked_list::link" name="data_structures::linked_list::link">
<area shape="rect" id="Node000001" title=" " alt="" coords="5,5,159,46"/>
<area shape="rect" id="Node000002" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/memory/shared_ptr.html" title=" " alt="" coords="6,109,158,165"/>
<area shape="rect" id="Node000002" title=" " alt="" coords="6,109,158,165"/>
<area shape="poly" id="edge2_Node000002_Node000001" title=" " alt="" coords="64,61,60,70,60,89,66,108,61,109,55,90,55,70,59,59"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="79,94,79,46,85,46,85,94"/>
</map>

View File

@@ -1 +1 @@
e1371e25b88c993ec204e63c7a312eaa
6094a54a8b1f8fcceabfe8cc1654460d

View File

@@ -32,7 +32,7 @@
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html" xlink:title=" ">
<g id="a_Node000002"><a xlink:title=" ">
<polygon fill="white" stroke="#666666" points="114.62,-41.75 0.37,-41.75 0.37,0 114.62,0 114.62,-41.75"/>
<text text-anchor="start" x="8.38" y="-28.25" font-family="Helvetica,sans-Serif" font-size="10.00">std::shared_ptr&lt; data</text>
<text text-anchor="start" x="8.38" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">_structures::linked_list</text>

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@@ -21,7 +21,7 @@
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html" xlink:title=" ">
<g id="a_Node000002"><a xlink:title=" ">
<polygon fill="white" stroke="#666666" points="114.62,-41.75 0.37,-41.75 0.37,0 114.62,0 114.62,-41.75"/>
<text text-anchor="start" x="8.38" y="-28.25" font-family="Helvetica,sans-Serif" font-size="10.00">std::shared_ptr&lt; data</text>
<text text-anchor="start" x="8.38" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">_structures::linked_list</text>

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB