Documentation for 53a6c16730

This commit is contained in:
github-actions
2022-01-16 16:05:19 +00:00
parent 778f1be9e5
commit 2cab28c905
3620 changed files with 52045 additions and 41188 deletions

View File

@@ -1,5 +1,10 @@
<map id="range_queries::heavy_light_decomposition::HLD&lt; X &gt;" name="range_queries::heavy_light_decomposition::HLD&lt; X &gt;">
<area shape="rect" id="node1" title="The Heavy&#45;Light Decomposition class." alt="" coords="200,45,347,101"/>
<area shape="rect" id="node2" href="$d1/d51/classrange__queries_1_1heavy__light__decomposition_1_1_tree.html" title="A Basic Tree, which supports binary lifting." alt="" coords="5,5,152,61"/>
<area shape="rect" id="node3" href="$d9/d35/classrange__queries_1_1heavy__light__decomposition_1_1_s_g.html" title="Segment Tree, to store heavy chains." alt="" coords="5,85,152,141"/>
<area shape="rect" id="node1" title="The Heavy&#45;Light Decomposition class." alt="" coords="717,199,864,255"/>
<area shape="rect" id="node2" href="$d1/d51/classrange__queries_1_1heavy__light__decomposition_1_1_tree.html" title="A Basic Tree, which supports binary lifting." alt="" coords="521,109,668,165"/>
<area shape="rect" id="node3" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector" title=" " alt="" coords="243,5,382,47"/>
<area shape="rect" id="node4" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list" title=" " alt="" coords="15,13,118,39"/>
<area shape="rect" id="node5" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector" title=" " alt="" coords="233,149,392,191"/>
<area shape="rect" id="node6" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector" title=" " alt="" coords="5,157,128,183"/>
<area shape="rect" id="node7" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector" title=" " alt="" coords="254,215,371,242"/>
<area shape="rect" id="node8" href="$d9/d35/classrange__queries_1_1heavy__light__decomposition_1_1_s_g.html" title="Segment Tree, to store heavy chains." alt="" coords="521,199,668,255"/>
</map>

View File

@@ -1 +1 @@
0d6902849303905cd17d404a329a289a
ae8721a3a4a4fbf985c96a2199876fa6

View File

@@ -4,19 +4,65 @@
<!-- Generated by graphviz version 2.50.0 (20211204.2007)
-->
<!-- Title: range_queries::heavy_light_decomposition::HLD&lt; X &gt; Pages: 1 -->
<svg width="264pt" height="110pt"
viewBox="0.00 0.00 264.00 110.00" 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 106)">
<!--zoomable 226 -->
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
<style type="text/css"><![CDATA[
.edge:hover path { stroke: red; }
.edge:hover polygon { stroke: red; fill: red; }
]]></style>
<script type="text/javascript"><![CDATA[
var edges = document.getElementsByTagName('g');
if (edges && edges.length) {
for (var i=0;i<edges.length;i++) {
if (edges[i].id.substr(0,4)=='edge') {
edges[i].setAttribute('class','edge');
}
}
}
]]></script>
<defs>
<circle id="rim" cx="0" cy="0" r="7"/>
<circle id="rim2" cx="0" cy="0" r="3.5"/>
<g id="zoomPlus">
<use xlink:href="#rim" fill="#404040">
<set attributeName="fill" to="#808080" begin="zoomplus.mouseover" end="zoomplus.mouseout"/>
</use>
<path d="M-4,0h8M0,-4v8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
</g>
<g id="zoomMin">
<use xlink:href="#rim" fill="#404040">
<set attributeName="fill" to="#808080" begin="zoomminus.mouseover" end="zoomminus.mouseout"/>
</use>
<path d="M-4,0h8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
</g>
<g id="dirArrow">
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="resetDef">
<use xlink:href="#rim2" fill="#404040">
<set attributeName="fill" to="#808080" begin="reset.mouseover" end="reset.mouseout"/>
</use>
</g>
</defs>
<script type="text/javascript">
var viewWidth = 652;
var viewHeight = 226;
var sectionId = 'dynsection-1';
</script>
<script xlink:href="../../svgpan.js"/>
<svg id="graph" class="graph">
<g id="viewport">
<title>range_queries::heavy_light_decomposition::HLD&lt; X &gt;</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-106 260,-106 260,4 -4,4"/>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-221.76 648,-221.76 648,4 -4,4"/>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="The Heavy&#45;Light Decomposition class.">
<polygon fill="#bfbfbf" stroke="black" points="146,-30.5 146,-71.5 256,-71.5 256,-30.5 146,-30.5"/>
<text text-anchor="start" x="154" y="-59.5" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::heavy</text>
<text text-anchor="start" x="154" y="-48.5" font-family="Helvetica,sans-Serif" font-size="10.00">_light_decomposition</text>
<text text-anchor="middle" x="201" y="-37.5" font-family="Helvetica,sans-Serif" font-size="10.00">::HLD&lt; X &gt;</text>
<polygon fill="#bfbfbf" stroke="black" points="534,-30.76 534,-71.76 644,-71.76 644,-30.76 534,-30.76"/>
<text text-anchor="start" x="542" y="-59.76" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::heavy</text>
<text text-anchor="start" x="542" y="-48.76" font-family="Helvetica,sans-Serif" font-size="10.00">_light_decomposition</text>
<text text-anchor="middle" x="589" y="-37.76" font-family="Helvetica,sans-Serif" font-size="10.00">::HLD&lt; X &gt;</text>
</a>
</g>
</g>
@@ -24,35 +70,183 @@
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../d1/d51/classrange__queries_1_1heavy__light__decomposition_1_1_tree.html" target="_top" xlink:title="A Basic Tree, which supports binary lifting.">
<polygon fill="white" stroke="black" points="0,-60.5 0,-101.5 110,-101.5 110,-60.5 0,-60.5"/>
<text text-anchor="start" x="8" y="-89.5" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::heavy</text>
<text text-anchor="start" x="8" y="-78.5" font-family="Helvetica,sans-Serif" font-size="10.00">_light_decomposition</text>
<text text-anchor="middle" x="55" y="-67.5" font-family="Helvetica,sans-Serif" font-size="10.00">::Tree&lt; X &gt;</text>
<polygon fill="white" stroke="black" points="387,-98.76 387,-139.76 497,-139.76 497,-98.76 387,-98.76"/>
<text text-anchor="start" x="395" y="-127.76" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::heavy</text>
<text text-anchor="start" x="395" y="-116.76" font-family="Helvetica,sans-Serif" font-size="10.00">_light_decomposition</text>
<text text-anchor="middle" x="442" y="-105.76" font-family="Helvetica,sans-Serif" font-size="10.00">::Tree&lt; X &gt;</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node1 -->
<g id="edge1" class="edge">
<title>Node2&#45;&gt;Node1</title>
<path fill="none" stroke="midnightblue" d="M119.99,-67.67C128.56,-65.88 137.28,-64.07 145.67,-62.32"/>
<polygon fill="midnightblue" stroke="midnightblue" points="119.11,-64.28 110.03,-69.74 120.53,-71.13 119.11,-64.28"/>
<path fill="none" stroke="midnightblue" d="M496.05,-94.38C511.89,-86.95 529.07,-78.89 544.25,-71.78"/>
<polygon fill="midnightblue" stroke="midnightblue" points="494.47,-91.26 486.9,-98.67 497.44,-97.59 494.47,-91.26"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a xlink:href="../../d9/d35/classrange__queries_1_1heavy__light__decomposition_1_1_s_g.html" target="_top" xlink:title="Segment Tree, to store heavy chains.">
<polygon fill="white" stroke="black" points="0,-0.5 0,-41.5 110,-41.5 110,-0.5 0,-0.5"/>
<text text-anchor="start" x="8" y="-29.5" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::heavy</text>
<text text-anchor="start" x="8" y="-18.5" font-family="Helvetica,sans-Serif" font-size="10.00">_light_decomposition</text>
<text text-anchor="middle" x="55" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">::SG&lt; X &gt;</text>
<g id="a_node3"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector" xlink:title=" ">
<polygon fill="white" stroke="black" points="178.5,-187.26 178.5,-217.26 282.5,-217.26 282.5,-187.26 178.5,-187.26"/>
<text text-anchor="start" x="186.5" y="-205.26" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; std::list</text>
<text text-anchor="middle" x="230.5" y="-194.26" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; int &gt; &gt;</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node1 -->
<!-- Node3&#45;&gt;Node2 -->
<g id="edge2" class="edge">
<title>Node3&#45;&gt;Node1</title>
<path fill="none" stroke="midnightblue" d="M119.99,-34.33C128.56,-36.12 137.28,-37.93 145.67,-39.68"/>
<polygon fill="midnightblue" stroke="midnightblue" points="120.53,-30.87 110.03,-32.26 119.11,-37.72 120.53,-30.87"/>
<title>Node3&#45;&gt;Node2</title>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M292.54,-186.75C316.77,-179.79 344.62,-170.77 369,-160.26 382.34,-154.51 396.36,-146.91 408.45,-139.82"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="291.42,-183.43 282.75,-189.51 293.32,-190.17 291.42,-183.43"/>
<text text-anchor="middle" x="338.5" y="-184.26" font-family="Helvetica,sans-Serif" font-size="10.00"> t_adj</text>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list" xlink:title=" ">
<polygon fill="white" stroke="black" points="7.5,-192.76 7.5,-211.76 84.5,-211.76 84.5,-192.76 7.5,-192.76"/>
<text text-anchor="middle" x="46" y="-199.76" font-family="Helvetica,sans-Serif" font-size="10.00">std::list&lt; int &gt;</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node3 -->
<g id="edge3" class="edge">
<title>Node4&#45;&gt;Node3</title>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M95.03,-202.26C120.64,-202.26 152.16,-202.26 178.24,-202.26"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="94.81,-198.76 84.81,-202.26 94.81,-205.76 94.81,-198.76"/>
<text text-anchor="middle" x="131.5" y="-205.26" font-family="Helvetica,sans-Serif" font-size="10.00"> elements</text>
</g>
<!-- Node5 -->
<g id="node5" class="node">
<title>Node5</title>
<g id="a_node5"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector" xlink:title=" ">
<polygon fill="white" stroke="black" points="171,-79.26 171,-109.26 290,-109.26 290,-79.26 171,-79.26"/>
<text text-anchor="start" x="179" y="-97.26" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; std::vector</text>
<text text-anchor="middle" x="230.5" y="-86.26" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; int &gt; &gt;</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node2 -->
<g id="edge4" class="edge">
<title>Node5&#45;&gt;Node2</title>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M300.28,-102.47C328.34,-105.81 360.32,-109.63 386.69,-112.78"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="300.48,-98.97 290.14,-101.26 299.65,-105.92 300.48,-98.97"/>
<text text-anchor="middle" x="338.5" y="-113.26" font-family="Helvetica,sans-Serif" font-size="10.00"> t_par</text>
</g>
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector" xlink:title=" ">
<polygon fill="white" stroke="black" points="0,-84.76 0,-103.76 92,-103.76 92,-84.76 0,-84.76"/>
<text text-anchor="middle" x="46" y="-91.76" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; int &gt;</text>
</a>
</g>
</g>
<!-- Node6&#45;&gt;Node1 -->
<g id="edge10" class="edge">
<title>Node6&#45;&gt;Node1</title>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M70.34,-79.28C94.52,-64.52 133.9,-42.6 171,-31.26 309.62,11.13 354.56,5.63 497,-21.26 509.1,-23.54 521.8,-27.01 533.76,-30.79"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="68.21,-76.48 61.56,-84.73 71.9,-82.43 68.21,-76.48"/>
<text text-anchor="middle" x="338.5" y="-27.26" font-family="Helvetica,sans-Serif" font-size="10.00"> h_heavychlid</text>
<text text-anchor="middle" x="338.5" y="-16.26" font-family="Helvetica,sans-Serif" font-size="10.00">h_label</text>
<text text-anchor="middle" x="338.5" y="-5.26" font-family="Helvetica,sans-Serif" font-size="10.00">h_parent</text>
</g>
<!-- Node6&#45;&gt;Node2 -->
<g id="edge6" class="edge">
<title>Node6&#45;&gt;Node2</title>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M95.3,-106.13C100.26,-107.24 105.22,-108.3 110,-109.26 223.07,-131.96 253.77,-130.05 369,-125.26 374.76,-125.02 380.78,-124.67 386.78,-124.26"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="95.75,-102.64 85.22,-103.82 94.18,-109.46 95.75,-102.64"/>
<text text-anchor="middle" x="230.5" y="-142.26" font-family="Helvetica,sans-Serif" font-size="10.00"> t_depth</text>
<text text-anchor="middle" x="230.5" y="-131.26" font-family="Helvetica,sans-Serif" font-size="10.00">t_size</text>
</g>
<!-- Node6&#45;&gt;Node5 -->
<g id="edge5" class="edge">
<title>Node6&#45;&gt;Node5</title>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M102.15,-94.26C123.83,-94.26 148.76,-94.26 170.78,-94.26"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="102.11,-90.76 92.11,-94.26 102.11,-97.76 102.11,-90.76"/>
<text text-anchor="middle" x="131.5" y="-97.26" font-family="Helvetica,sans-Serif" font-size="10.00"> elements</text>
</g>
<!-- Node7 -->
<g id="node7" class="node">
<title>Node7</title>
<g id="a_node7"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector" xlink:title=" ">
<polygon fill="white" stroke="black" points="186.5,-40.76 186.5,-59.76 274.5,-59.76 274.5,-40.76 186.5,-40.76"/>
<text text-anchor="middle" x="230.5" y="-47.76" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; X &gt;</text>
</a>
</g>
</g>
<!-- Node7&#45;&gt;Node2 -->
<g id="edge7" class="edge">
<title>Node7&#45;&gt;Node2</title>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M281.41,-62.29C307.74,-69.08 340.41,-78.21 369,-88.26 377.73,-91.33 386.9,-94.95 395.67,-98.62"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="282.21,-58.89 271.66,-59.81 280.49,-65.67 282.21,-58.89"/>
<text text-anchor="middle" x="338.5" y="-91.26" font-family="Helvetica,sans-Serif" font-size="10.00"> t_val</text>
</g>
<!-- Node8 -->
<g id="node8" class="node">
<title>Node8</title>
<g id="a_node8"><a xlink:href="../../d9/d35/classrange__queries_1_1heavy__light__decomposition_1_1_s_g.html" target="_top" xlink:title="Segment Tree, to store heavy chains.">
<polygon fill="white" stroke="black" points="387,-30.76 387,-71.76 497,-71.76 497,-30.76 387,-30.76"/>
<text text-anchor="start" x="395" y="-59.76" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::heavy</text>
<text text-anchor="start" x="395" y="-48.76" font-family="Helvetica,sans-Serif" font-size="10.00">_light_decomposition</text>
<text text-anchor="middle" x="442" y="-37.76" font-family="Helvetica,sans-Serif" font-size="10.00">::SG&lt; X &gt;</text>
</a>
</g>
</g>
<!-- Node7&#45;&gt;Node8 -->
<g id="edge9" class="edge">
<title>Node7&#45;&gt;Node8</title>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M284.9,-50.51C316.09,-50.66 355.36,-50.85 386.71,-51"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="284.67,-47.01 274.65,-50.46 284.64,-54.01 284.67,-47.01"/>
<text text-anchor="middle" x="338.5" y="-54.26" font-family="Helvetica,sans-Serif" font-size="10.00"> s_tree</text>
</g>
<!-- Node8&#45;&gt;Node1 -->
<g id="edge8" class="edge">
<title>Node8&#45;&gt;Node1</title>
<path fill="none" stroke="midnightblue" d="M507.57,-51.26C516.32,-51.26 525.23,-51.26 533.77,-51.26"/>
<polygon fill="midnightblue" stroke="midnightblue" points="507.41,-47.76 497.41,-51.26 507.41,-54.76 507.41,-47.76"/>
</g>
</g>
</svg>
<g id="navigator" transform="translate(0 0)" fill="#404254">
<rect fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width=".5" x="0" y="0" width="60" height="60"/>
<use id="zoomplus" xlink:href="#zoomPlus" x="17" y="9" onmousedown="handleZoom(evt,'in')"/>
<use id="zoomminus" xlink:href="#zoomMin" x="42" y="9" onmousedown="handleZoom(evt,'out')"/>
<use id="reset" xlink:href="#resetDef" x="30" y="36" onmousedown="handleReset()"/>
<g id="arrowUp" xlink:href="#dirArrow" transform="translate(30 24)" onmousedown="handlePan(0,-1)">
<use xlink:href="#rim" fill="#404040">
<set attributeName="fill" to="#808080" begin="arrowUp.mouseover" end="arrowUp.mouseout"/>
</use>
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="arrowRight" xlink:href="#dirArrow" transform="rotate(90) translate(36 -43)" onmousedown="handlePan(1,0)">
<use xlink:href="#rim" fill="#404040">
<set attributeName="fill" to="#808080" begin="arrowRight.mouseover" end="arrowRight.mouseout"/>
</use>
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="arrowDown" xlink:href="#dirArrow" transform="rotate(180) translate(-30 -48)" onmousedown="handlePan(0,1)">
<use xlink:href="#rim" fill="#404040">
<set attributeName="fill" to="#808080" begin="arrowDown.mouseover" end="arrowDown.mouseout"/>
</use>
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
<g id="arrowLeft" xlink:href="#dirArrow" transform="rotate(270) translate(-36 17)" onmousedown="handlePan(-1,0)">
<use xlink:href="#rim" fill="#404040">
<set attributeName="fill" to="#808080" begin="arrowLeft.mouseover" end="arrowLeft.mouseout"/>
</use>
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
</g>
</g>
<svg viewBox="0 0 15 15" width="100%" height="30px" preserveAspectRatio="xMaxYMin meet">
<g id="arrow_out" transform="scale(0.3 0.3)">
<a xlink:href="classrange__queries_1_1heavy__light__decomposition_1_1_h_l_d__coll__graph_org.svg" target="_base">
<rect id="button" ry="5" rx="5" y="6" x="6" height="38" width="38"
fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width="1.0"/>
<path id="arrow"
d="M 11.500037,31.436501 C 11.940474,20.09759 22.043105,11.32322 32.158766,21.979434 L 37.068811,17.246167 C 37.068811,17.246167 37.088388,32 37.088388,32 L 22.160133,31.978069 C 22.160133,31.978069 26.997745,27.140456 26.997745,27.140456 C 18.528582,18.264221 13.291696,25.230495 11.500037,31.436501 z"
style="fill:#404040;"/>
</a>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -0,0 +1,164 @@
<?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 2.50.0 (20211204.2007)
-->
<!-- Title: range_queries::heavy_light_decomposition::HLD&lt; X &gt; Pages: 1 -->
<svg width="652pt" height="226pt"
viewBox="0.00 0.00 652.00 225.76" 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 221.76)">
<title>range_queries::heavy_light_decomposition::HLD&lt; X &gt;</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-221.76 648,-221.76 648,4 -4,4"/>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="The Heavy&#45;Light Decomposition class.">
<polygon fill="#bfbfbf" stroke="black" points="534,-30.76 534,-71.76 644,-71.76 644,-30.76 534,-30.76"/>
<text text-anchor="start" x="542" y="-59.76" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::heavy</text>
<text text-anchor="start" x="542" y="-48.76" font-family="Helvetica,sans-Serif" font-size="10.00">_light_decomposition</text>
<text text-anchor="middle" x="589" y="-37.76" font-family="Helvetica,sans-Serif" font-size="10.00">::HLD&lt; X &gt;</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../d1/d51/classrange__queries_1_1heavy__light__decomposition_1_1_tree.html" target="_top" xlink:title="A Basic Tree, which supports binary lifting.">
<polygon fill="white" stroke="black" points="387,-98.76 387,-139.76 497,-139.76 497,-98.76 387,-98.76"/>
<text text-anchor="start" x="395" y="-127.76" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::heavy</text>
<text text-anchor="start" x="395" y="-116.76" font-family="Helvetica,sans-Serif" font-size="10.00">_light_decomposition</text>
<text text-anchor="middle" x="442" y="-105.76" font-family="Helvetica,sans-Serif" font-size="10.00">::Tree&lt; X &gt;</text>
</a>
</g>
</g>
<!-- Node2&#45;&gt;Node1 -->
<g id="edge1" class="edge">
<title>Node2&#45;&gt;Node1</title>
<path fill="none" stroke="midnightblue" d="M496.05,-94.38C511.89,-86.95 529.07,-78.89 544.25,-71.78"/>
<polygon fill="midnightblue" stroke="midnightblue" points="494.47,-91.26 486.9,-98.67 497.44,-97.59 494.47,-91.26"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector" xlink:title=" ">
<polygon fill="white" stroke="black" points="178.5,-187.26 178.5,-217.26 282.5,-217.26 282.5,-187.26 178.5,-187.26"/>
<text text-anchor="start" x="186.5" y="-205.26" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; std::list</text>
<text text-anchor="middle" x="230.5" y="-194.26" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; int &gt; &gt;</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node2 -->
<g id="edge2" class="edge">
<title>Node3&#45;&gt;Node2</title>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M292.54,-186.75C316.77,-179.79 344.62,-170.77 369,-160.26 382.34,-154.51 396.36,-146.91 408.45,-139.82"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="291.42,-183.43 282.75,-189.51 293.32,-190.17 291.42,-183.43"/>
<text text-anchor="middle" x="338.5" y="-184.26" font-family="Helvetica,sans-Serif" font-size="10.00"> t_adj</text>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list" xlink:title=" ">
<polygon fill="white" stroke="black" points="7.5,-192.76 7.5,-211.76 84.5,-211.76 84.5,-192.76 7.5,-192.76"/>
<text text-anchor="middle" x="46" y="-199.76" font-family="Helvetica,sans-Serif" font-size="10.00">std::list&lt; int &gt;</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node3 -->
<g id="edge3" class="edge">
<title>Node4&#45;&gt;Node3</title>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M95.03,-202.26C120.64,-202.26 152.16,-202.26 178.24,-202.26"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="94.81,-198.76 84.81,-202.26 94.81,-205.76 94.81,-198.76"/>
<text text-anchor="middle" x="131.5" y="-205.26" font-family="Helvetica,sans-Serif" font-size="10.00"> elements</text>
</g>
<!-- Node5 -->
<g id="node5" class="node">
<title>Node5</title>
<g id="a_node5"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector" xlink:title=" ">
<polygon fill="white" stroke="black" points="171,-79.26 171,-109.26 290,-109.26 290,-79.26 171,-79.26"/>
<text text-anchor="start" x="179" y="-97.26" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; std::vector</text>
<text text-anchor="middle" x="230.5" y="-86.26" font-family="Helvetica,sans-Serif" font-size="10.00">&lt; int &gt; &gt;</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node2 -->
<g id="edge4" class="edge">
<title>Node5&#45;&gt;Node2</title>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M300.28,-102.47C328.34,-105.81 360.32,-109.63 386.69,-112.78"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="300.48,-98.97 290.14,-101.26 299.65,-105.92 300.48,-98.97"/>
<text text-anchor="middle" x="338.5" y="-113.26" font-family="Helvetica,sans-Serif" font-size="10.00"> t_par</text>
</g>
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector" xlink:title=" ">
<polygon fill="white" stroke="black" points="0,-84.76 0,-103.76 92,-103.76 92,-84.76 0,-84.76"/>
<text text-anchor="middle" x="46" y="-91.76" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; int &gt;</text>
</a>
</g>
</g>
<!-- Node6&#45;&gt;Node1 -->
<g id="edge10" class="edge">
<title>Node6&#45;&gt;Node1</title>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M70.34,-79.28C94.52,-64.52 133.9,-42.6 171,-31.26 309.62,11.13 354.56,5.63 497,-21.26 509.1,-23.54 521.8,-27.01 533.76,-30.79"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="68.21,-76.48 61.56,-84.73 71.9,-82.43 68.21,-76.48"/>
<text text-anchor="middle" x="338.5" y="-27.26" font-family="Helvetica,sans-Serif" font-size="10.00"> h_heavychlid</text>
<text text-anchor="middle" x="338.5" y="-16.26" font-family="Helvetica,sans-Serif" font-size="10.00">h_label</text>
<text text-anchor="middle" x="338.5" y="-5.26" font-family="Helvetica,sans-Serif" font-size="10.00">h_parent</text>
</g>
<!-- Node6&#45;&gt;Node2 -->
<g id="edge6" class="edge">
<title>Node6&#45;&gt;Node2</title>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M95.3,-106.13C100.26,-107.24 105.22,-108.3 110,-109.26 223.07,-131.96 253.77,-130.05 369,-125.26 374.76,-125.02 380.78,-124.67 386.78,-124.26"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="95.75,-102.64 85.22,-103.82 94.18,-109.46 95.75,-102.64"/>
<text text-anchor="middle" x="230.5" y="-142.26" font-family="Helvetica,sans-Serif" font-size="10.00"> t_depth</text>
<text text-anchor="middle" x="230.5" y="-131.26" font-family="Helvetica,sans-Serif" font-size="10.00">t_size</text>
</g>
<!-- Node6&#45;&gt;Node5 -->
<g id="edge5" class="edge">
<title>Node6&#45;&gt;Node5</title>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M102.15,-94.26C123.83,-94.26 148.76,-94.26 170.78,-94.26"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="102.11,-90.76 92.11,-94.26 102.11,-97.76 102.11,-90.76"/>
<text text-anchor="middle" x="131.5" y="-97.26" font-family="Helvetica,sans-Serif" font-size="10.00"> elements</text>
</g>
<!-- Node7 -->
<g id="node7" class="node">
<title>Node7</title>
<g id="a_node7"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector" xlink:title=" ">
<polygon fill="white" stroke="black" points="186.5,-40.76 186.5,-59.76 274.5,-59.76 274.5,-40.76 186.5,-40.76"/>
<text text-anchor="middle" x="230.5" y="-47.76" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector&lt; X &gt;</text>
</a>
</g>
</g>
<!-- Node7&#45;&gt;Node2 -->
<g id="edge7" class="edge">
<title>Node7&#45;&gt;Node2</title>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M281.41,-62.29C307.74,-69.08 340.41,-78.21 369,-88.26 377.73,-91.33 386.9,-94.95 395.67,-98.62"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="282.21,-58.89 271.66,-59.81 280.49,-65.67 282.21,-58.89"/>
<text text-anchor="middle" x="338.5" y="-91.26" font-family="Helvetica,sans-Serif" font-size="10.00"> t_val</text>
</g>
<!-- Node8 -->
<g id="node8" class="node">
<title>Node8</title>
<g id="a_node8"><a xlink:href="../../d9/d35/classrange__queries_1_1heavy__light__decomposition_1_1_s_g.html" target="_top" xlink:title="Segment Tree, to store heavy chains.">
<polygon fill="white" stroke="black" points="387,-30.76 387,-71.76 497,-71.76 497,-30.76 387,-30.76"/>
<text text-anchor="start" x="395" y="-59.76" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::heavy</text>
<text text-anchor="start" x="395" y="-48.76" font-family="Helvetica,sans-Serif" font-size="10.00">_light_decomposition</text>
<text text-anchor="middle" x="442" y="-37.76" font-family="Helvetica,sans-Serif" font-size="10.00">::SG&lt; X &gt;</text>
</a>
</g>
</g>
<!-- Node7&#45;&gt;Node8 -->
<g id="edge9" class="edge">
<title>Node7&#45;&gt;Node8</title>
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M284.9,-50.51C316.09,-50.66 355.36,-50.85 386.71,-51"/>
<polygon fill="#9a32cd" stroke="#9a32cd" points="284.67,-47.01 274.65,-50.46 284.64,-54.01 284.67,-47.01"/>
<text text-anchor="middle" x="338.5" y="-54.26" font-family="Helvetica,sans-Serif" font-size="10.00"> s_tree</text>
</g>
<!-- Node8&#45;&gt;Node1 -->
<g id="edge8" class="edge">
<title>Node8&#45;&gt;Node1</title>
<path fill="none" stroke="midnightblue" d="M507.57,-51.26C516.32,-51.26 525.23,-51.26 533.77,-51.26"/>
<polygon fill="midnightblue" stroke="midnightblue" points="507.41,-47.76 497.41,-51.26 507.41,-54.76 507.41,-47.76"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 9.8 KiB

View File

@@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.2"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Algorithms_in_C++: sorting/strand_sort.cpp File Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
@@ -30,8 +30,8 @@ MathJax.Hub.Config({
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">Algorithms_in_C++<span id="projectnumber">&#160;1.0.0</span>
</div>
<div id="projectbrief">Set of algorithms implemented in C++.</div>
@@ -41,7 +41,7 @@ MathJax.Hub.Config({
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.2 -->
<!-- Generated by Doxygen 1.9.3 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
@@ -154,10 +154,10 @@ Functions</h2></td></tr>
<p>Main function. </p>
<dl class="section return"><dt>Returns</dt><dd>0 on exit </dd></dl>
<div class="fragment"><div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> {</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <a class="code hl_function" href="../../dc/dd9/strand__sort_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a>();</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> <span class="keywordflow">return</span> 0;</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span>}</div>
<div class="fragment"><div class="line"><span class="lineno"> 84</span> {</div>
<div class="line"><span class="lineno"> 85</span> <a class="code hl_function" href="../../dc/dd9/strand__sort_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a>();</div>
<div class="line"><span class="lineno"> 86</span> <span class="keywordflow">return</span> 0;</div>
<div class="line"><span class="lineno"> 87</span>}</div>
<div class="ttc" id="astrand__sort_8cpp_html_aa8dca7b867074164d5f45b0f3851269d"><div class="ttname"><a href="../../dc/dd9/strand__sort_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a></div><div class="ttdeci">static void test()</div><div class="ttdoc">Function for testing.</div><div class="ttdef"><b>Definition:</b> strand_sort.cpp:64</div></div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
@@ -200,27 +200,27 @@ template&lt;typename T &gt; </div>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Sorted list&lt;T&gt; instance </dd></dl>
<div class="fragment"><div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> {</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <span class="keywordflow">if</span> (lst.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/list/size.html">size</a>() &lt; 2) { <span class="comment">// Returns list if empty or contains only one element</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> <span class="keywordflow">return</span> lst; <span class="comment">// Returns list</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> }</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/list.html">std::list&lt;T&gt;</a> <a class="code hl_function" href="../../de/dc3/fibonacci__sum_8cpp.html#aadb40ac4c74a7efc0680b83eeee138aa">result</a>; <span class="comment">// Define new &quot;result&quot; named list instance.</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/list.html">std::list&lt;T&gt;</a> sorted; <span class="comment">// Define new &quot;sorted&quot; named list instance.</span></div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <span class="keywordflow">while</span>(!lst.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/list/empty.html">empty</a>()) <span class="comment">/* if lst is not empty */</span> {</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> sorted.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/list/push_back.html">push_back</a>(lst.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/list/front.html">front</a>()); <span class="comment">// Adds the first element of &quot;lst&quot; list to the bottom of the &quot;sorted&quot; list.</span></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> lst.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/list/pop_front.html">pop_front</a>(); <span class="comment">// Remove first element of &quot;lst&quot; list.</span></div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="keywordflow">for</span> (<span class="keyword">auto</span> it = lst.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/list/begin.html">begin</a>(); it != lst.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/list/end.html">end</a>(); ) { <span class="comment">// Return the loop as long as the current iterator is not equal to the last literator of the &quot;lst&quot; list.</span></div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <span class="keywordflow">if</span> (sorted.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/list/back.html">back</a>() &lt;= *it) { <span class="comment">// If the last reference of the &quot;sorted&quot; list is less than or equal to the current iterator reference.</span></div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> sorted.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/list/push_back.html">push_back</a>(*it); <span class="comment">// Adds the iterator retrieved in the loop under the &quot;sorted&quot; list.</span></div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> it = lst.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/list/erase.html">erase</a>(it); <span class="comment">// Deletes the element with the current iterator and assigns the deleted element to the iterator.</span></div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> } <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> it++; <span class="comment">// Next iterator.</span></div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> }</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> }</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <a class="code hl_function" href="../../de/dc3/fibonacci__sum_8cpp.html#aadb40ac4c74a7efc0680b83eeee138aa">result</a>.merge(sorted); <span class="comment">// Merge &quot;result&quot; list with &quot;sorted&quot; list.</span></div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> }</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="keywordflow">return</span> <a class="code hl_function" href="../../de/dc3/fibonacci__sum_8cpp.html#aadb40ac4c74a7efc0680b83eeee138aa">result</a>; <span class="comment">// Returns sorted list</span></div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> }</div>
<div class="fragment"><div class="line"><span class="lineno"> 36</span> {</div>
<div class="line"><span class="lineno"> 37</span> <span class="keywordflow">if</span> (lst.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/list/size.html">size</a>() &lt; 2) { <span class="comment">// Returns list if empty or contains only one element</span></div>
<div class="line"><span class="lineno"> 38</span> <span class="keywordflow">return</span> lst; <span class="comment">// Returns list</span></div>
<div class="line"><span class="lineno"> 39</span> }</div>
<div class="line"><span class="lineno"> 40</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/list.html">std::list&lt;T&gt;</a> <a class="code hl_function" href="../../de/dc3/fibonacci__sum_8cpp.html#aadb40ac4c74a7efc0680b83eeee138aa">result</a>; <span class="comment">// Define new &quot;result&quot; named list instance.</span></div>
<div class="line"><span class="lineno"> 41</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/list.html">std::list&lt;T&gt;</a> sorted; <span class="comment">// Define new &quot;sorted&quot; named list instance.</span></div>
<div class="line"><span class="lineno"> 42</span> <span class="keywordflow">while</span>(!lst.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/list/empty.html">empty</a>()) <span class="comment">/* if lst is not empty */</span> {</div>
<div class="line"><span class="lineno"> 43</span> sorted.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/list/push_back.html">push_back</a>(lst.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/list/front.html">front</a>()); <span class="comment">// Adds the first element of &quot;lst&quot; list to the bottom of the &quot;sorted&quot; list.</span></div>
<div class="line"><span class="lineno"> 44</span> lst.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/list/pop_front.html">pop_front</a>(); <span class="comment">// Remove first element of &quot;lst&quot; list.</span></div>
<div class="line"><span class="lineno"> 45</span> <span class="keywordflow">for</span> (<span class="keyword">auto</span> it = lst.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/list/begin.html">begin</a>(); it != lst.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/list/end.html">end</a>(); ) { <span class="comment">// Return the loop as long as the current iterator is not equal to the last literator of the &quot;lst&quot; list.</span></div>
<div class="line"><span class="lineno"> 46</span> <span class="keywordflow">if</span> (sorted.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/list/back.html">back</a>() &lt;= *it) { <span class="comment">// If the last reference of the &quot;sorted&quot; list is less than or equal to the current iterator reference.</span></div>
<div class="line"><span class="lineno"> 47</span> sorted.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/list/push_back.html">push_back</a>(*it); <span class="comment">// Adds the iterator retrieved in the loop under the &quot;sorted&quot; list.</span></div>
<div class="line"><span class="lineno"> 48</span> it = lst.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/list/erase.html">erase</a>(it); <span class="comment">// Deletes the element with the current iterator and assigns the deleted element to the iterator.</span></div>
<div class="line"><span class="lineno"> 49</span> } <span class="keywordflow">else</span> {</div>
<div class="line"><span class="lineno"> 50</span> it++; <span class="comment">// Next iterator.</span></div>
<div class="line"><span class="lineno"> 51</span> }</div>
<div class="line"><span class="lineno"> 52</span> }</div>
<div class="line"><span class="lineno"> 53</span> <a class="code hl_function" href="../../de/dc3/fibonacci__sum_8cpp.html#aadb40ac4c74a7efc0680b83eeee138aa">result</a>.merge(sorted); <span class="comment">// Merge &quot;result&quot; list with &quot;sorted&quot; list.</span></div>
<div class="line"><span class="lineno"> 54</span> }</div>
<div class="line"><span class="lineno"> 55</span> <span class="keywordflow">return</span> <a class="code hl_function" href="../../de/dc3/fibonacci__sum_8cpp.html#aadb40ac4c74a7efc0680b83eeee138aa">result</a>; <span class="comment">// Returns sorted list</span></div>
<div class="line"><span class="lineno"> 56</span> }</div>
<div class="ttc" id="aback_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/list/back.html">std::list::back</a></div><div class="ttdeci">T back(T... args)</div></div>
<div class="ttc" id="abegin_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/list/begin.html">std::list::begin</a></div><div class="ttdeci">T begin(T... args)</div></div>
<div class="ttc" id="aempty_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/list/empty.html">std::list::empty</a></div><div class="ttdeci">T empty(T... args)</div></div>
@@ -266,21 +266,21 @@ Here is the call graph for this function:</div>
<p>Function for testing. </p>
<dl class="section return"><dt>Returns</dt><dd>N/A </dd></dl>
<div class="fragment"><div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> {</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/list.html">std::list&lt;int&gt;</a> lst = { -333, 525, 1, 0, 94, 52, 33 };</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> </div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Before: &quot;</span>;</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <span class="keywordflow">for</span>(<span class="keyword">auto</span> item: lst) {</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; item &lt;&lt; <span class="stringliteral">&quot; &quot;</span>;</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> }</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> </div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> lst = <a class="code hl_function" href="../../dc/dd9/strand__sort_8cpp.html#a2bea2fe5dd38ed63610fdeaddf5785cd">sorting::strand::strand_sort</a>(lst); <span class="comment">// Sort list.</span></div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> </div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;\nAfter: &quot;</span>;</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <span class="keywordflow">for</span>(<span class="keyword">auto</span> item: lst) {</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; item &lt;&lt; <span class="stringliteral">&quot; &quot;</span>;</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> }</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span>}</div>
<div class="fragment"><div class="line"><span class="lineno"> 64</span> {</div>
<div class="line"><span class="lineno"> 65</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/list.html">std::list&lt;int&gt;</a> lst = { -333, 525, 1, 0, 94, 52, 33 };</div>
<div class="line"><span class="lineno"> 66</span> </div>
<div class="line"><span class="lineno"> 67</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Before: &quot;</span>;</div>
<div class="line"><span class="lineno"> 68</span> <span class="keywordflow">for</span>(<span class="keyword">auto</span> item: lst) {</div>
<div class="line"><span class="lineno"> 69</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; item &lt;&lt; <span class="stringliteral">&quot; &quot;</span>;</div>
<div class="line"><span class="lineno"> 70</span> }</div>
<div class="line"><span class="lineno"> 71</span> </div>
<div class="line"><span class="lineno"> 72</span> lst = <a class="code hl_function" href="../../dc/dd9/strand__sort_8cpp.html#a2bea2fe5dd38ed63610fdeaddf5785cd">sorting::strand::strand_sort</a>(lst); <span class="comment">// Sort list.</span></div>
<div class="line"><span class="lineno"> 73</span> </div>
<div class="line"><span class="lineno"> 74</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;\nAfter: &quot;</span>;</div>
<div class="line"><span class="lineno"> 75</span> <span class="keywordflow">for</span>(<span class="keyword">auto</span> item: lst) {</div>
<div class="line"><span class="lineno"> 76</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; item &lt;&lt; <span class="stringliteral">&quot; &quot;</span>;</div>
<div class="line"><span class="lineno"> 77</span> }</div>
<div class="line"><span class="lineno"> 78</span>}</div>
<div class="ttc" id="abasic_ostream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a></div></div>
<div class="ttc" id="astrand__sort_8cpp_html_a2bea2fe5dd38ed63610fdeaddf5785cd"><div class="ttname"><a href="../../dc/dd9/strand__sort_8cpp.html#a2bea2fe5dd38ed63610fdeaddf5785cd">sorting::strand::strand_sort</a></div><div class="ttdeci">std::list&lt; T &gt; strand_sort(std::list&lt; T &gt; lst)</div><div class="ttdoc">Apply sorting.</div><div class="ttdef"><b>Definition:</b> strand_sort.cpp:36</div></div>
</div><!-- fragment -->
@@ -292,7 +292,7 @@ Here is the call graph for this function:</div>
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="../../dir_bb1b521853a9c46347182a9d10420771.html">sorting</a></li><li class="navelem"><a class="el" href="../../dc/dd9/strand__sort_8cpp.html">strand_sort.cpp</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.2 </li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
</ul>
</div>
</body>

View File

@@ -1,12 +1,12 @@
<map id="sorting::strand::strand_sort" name="sorting::strand::strand_sort">
<area shape="rect" id="node1" title="Apply sorting." alt="" coords="5,208,184,235"/>
<area shape="rect" id="node2" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/back.html#" title=" " alt="" coords="249,5,351,32"/>
<area shape="rect" id="node3" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/begin.html#" title=" " alt="" coords="248,56,352,83"/>
<area shape="rect" id="node4" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/empty.html#" title=" " alt="" coords="245,107,355,133"/>
<area shape="rect" id="node5" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/end.html#" title=" " alt="" coords="253,157,347,184"/>
<area shape="rect" id="node6" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/erase.html#" title=" " alt="" coords="247,208,353,235"/>
<area shape="rect" id="node7" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/front.html#" title=" " alt="" coords="251,259,349,285"/>
<area shape="rect" id="node8" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/pop_front.html#" title=" " alt="" coords="237,309,363,336"/>
<area shape="rect" id="node9" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/push_back.html#" title=" " alt="" coords="232,360,368,387"/>
<area shape="rect" id="node10" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/size.html#" title=" " alt="" coords="251,411,349,437"/>
<area shape="rect" id="node2" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/back#" title=" " alt="" coords="249,5,351,32"/>
<area shape="rect" id="node3" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/begin#" title=" " alt="" coords="248,56,352,83"/>
<area shape="rect" id="node4" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/empty#" title=" " alt="" coords="245,107,355,133"/>
<area shape="rect" id="node5" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/end#" title=" " alt="" coords="253,157,347,184"/>
<area shape="rect" id="node6" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/erase#" title=" " alt="" coords="247,208,353,235"/>
<area shape="rect" id="node7" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/front#" title=" " alt="" coords="251,259,349,285"/>
<area shape="rect" id="node8" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/pop_front#" title=" " alt="" coords="237,309,363,336"/>
<area shape="rect" id="node9" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/push_back#" title=" " alt="" coords="232,360,368,387"/>
<area shape="rect" id="node10" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/list/size#" title=" " alt="" coords="251,411,349,437"/>
</map>

View File

@@ -1 +1 @@
6cba79f2c34079394897cf30e4541ece
8fafecc5c0777948fe5af87146c1d693

View File

@@ -27,7 +27,7 @@
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/back.html#" xlink:title=" ">
<g id="a_node2"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/back#" xlink:title=" ">
<polygon fill="white" stroke="black" points="183,-304.5 183,-323.5 259,-323.5 259,-304.5 183,-304.5"/>
<text text-anchor="middle" x="221" y="-311.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::back</text>
</a>
@@ -42,7 +42,7 @@
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/begin.html#" xlink:title=" ">
<g id="a_node3"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/begin#" xlink:title=" ">
<polygon fill="white" stroke="black" points="182,-266.5 182,-285.5 260,-285.5 260,-266.5 182,-266.5"/>
<text text-anchor="middle" x="221" y="-273.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::begin</text>
</a>
@@ -57,7 +57,7 @@
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/empty.html#" xlink:title=" ">
<g id="a_node4"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/empty#" xlink:title=" ">
<polygon fill="white" stroke="black" points="180,-228.5 180,-247.5 262,-247.5 262,-228.5 180,-228.5"/>
<text text-anchor="middle" x="221" y="-235.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::empty</text>
</a>
@@ -72,7 +72,7 @@
<!-- Node5 -->
<g id="node5" class="node">
<title>Node5</title>
<g id="a_node5"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/end.html#" xlink:title=" ">
<g id="a_node5"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/end#" xlink:title=" ">
<polygon fill="white" stroke="black" points="185.5,-190.5 185.5,-209.5 256.5,-209.5 256.5,-190.5 185.5,-190.5"/>
<text text-anchor="middle" x="221" y="-197.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::end</text>
</a>
@@ -87,7 +87,7 @@
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/erase.html#" xlink:title=" ">
<g id="a_node6"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/erase#" xlink:title=" ">
<polygon fill="white" stroke="black" points="181.5,-152.5 181.5,-171.5 260.5,-171.5 260.5,-152.5 181.5,-152.5"/>
<text text-anchor="middle" x="221" y="-159.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::erase</text>
</a>
@@ -102,7 +102,7 @@
<!-- Node7 -->
<g id="node7" class="node">
<title>Node7</title>
<g id="a_node7"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/front.html#" xlink:title=" ">
<g id="a_node7"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/front#" xlink:title=" ">
<polygon fill="white" stroke="black" points="184,-114.5 184,-133.5 258,-133.5 258,-114.5 184,-114.5"/>
<text text-anchor="middle" x="221" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::front</text>
</a>
@@ -117,7 +117,7 @@
<!-- Node8 -->
<g id="node8" class="node">
<title>Node8</title>
<g id="a_node8"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/pop_front.html#" xlink:title=" ">
<g id="a_node8"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/pop_front#" xlink:title=" ">
<polygon fill="white" stroke="black" points="173.5,-76.5 173.5,-95.5 268.5,-95.5 268.5,-76.5 173.5,-76.5"/>
<text text-anchor="middle" x="221" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::pop_front</text>
</a>
@@ -132,7 +132,7 @@
<!-- Node9 -->
<g id="node9" class="node">
<title>Node9</title>
<g id="a_node9"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/push_back.html#" xlink:title=" ">
<g id="a_node9"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/push_back#" xlink:title=" ">
<polygon fill="white" stroke="black" points="170,-38.5 170,-57.5 272,-57.5 272,-38.5 170,-38.5"/>
<text text-anchor="middle" x="221" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::push_back</text>
</a>
@@ -147,7 +147,7 @@
<!-- Node10 -->
<g id="node10" class="node">
<title>Node10</title>
<g id="a_node10"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/size.html#" xlink:title=" ">
<g id="a_node10"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/list/size#" xlink:title=" ">
<polygon fill="white" stroke="black" points="184.5,-0.5 184.5,-19.5 257.5,-19.5 257.5,-0.5 184.5,-0.5"/>
<text text-anchor="middle" x="221" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::list::size</text>
</a>

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 8.1 KiB