mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-03-22 12:52:48 +08:00
265 lines
16 KiB
XML
265 lines
16 KiB
XML
<?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 7.0.6 (20230106.0513)
|
|
-->
|
|
<!-- Title: stack< ValueType > Pages: 1 -->
|
|
<!--zoomable 536 -->
|
|
<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 = 252;
|
|
var viewHeight = 536;
|
|
var sectionId = 'dynsection-0';
|
|
</script>
|
|
<script xlink:href="../../svgpan.js"/>
|
|
<svg id="graph" class="graph">
|
|
<g id="viewport">
|
|
<title>stack< ValueType ></title>
|
|
<!-- Node1 -->
|
|
<g id="node1" class="node">
|
|
<title>Node1</title>
|
|
<g id="a_node1"><a xlink:title=" ">
|
|
<polygon fill="#999999" stroke="#666666" points="161,-19 57,-19 57,0 161,0 161,-19"/>
|
|
<text text-anchor="middle" x="109" y="-7" font-family="Helvetica,sans-Serif" font-size="10.00">stack< ValueType ></text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node2 -->
|
|
<g id="node2" class="node">
|
|
<title>Node2</title>
|
|
<g id="a_node2"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html" xlink:title=" ">
|
|
<polygon fill="white" stroke="#666666" points="112,-96 0,-96 0,-66 112,-66 112,-96"/>
|
|
<text text-anchor="start" x="8" y="-84" font-family="Helvetica,sans-Serif" font-size="10.00">std::shared_ptr< node</text>
|
|
<text text-anchor="middle" x="56" y="-73" font-family="Helvetica,sans-Serif" font-size="10.00">< value_type > ></text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node2->Node1 -->
|
|
<g id="edge1" class="edge">
|
|
<title>Node2->Node1</title>
|
|
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M69.79,-56.02C73.79,-49.65 78.34,-42.9 83,-37 87.95,-30.73 94.21,-24.31 99.34,-19.37"/>
|
|
<polygon fill="#9a32cd" stroke="#9a32cd" points="66.99,-53.88 64.81,-64.25 72.98,-57.5 66.99,-53.88"/>
|
|
<text text-anchor="middle" x="104.5" y="-40" font-family="Helvetica,sans-Serif" font-size="10.00"> stackTop</text>
|
|
</g>
|
|
<!-- Node3 -->
|
|
<g id="node3" class="node">
|
|
<title>Node3</title>
|
|
<g id="a_node3"><a xlink:href="../../d5/da1/structnode.html" target="_top" xlink:title=" ">
|
|
<polygon fill="white" stroke="#666666" points="107.5,-162 4.5,-162 4.5,-143 107.5,-143 107.5,-162"/>
|
|
<text text-anchor="middle" x="56" y="-150" font-family="Helvetica,sans-Serif" font-size="10.00">node< value_type ></text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node3->Node2 -->
|
|
<g id="edge2" class="edge">
|
|
<title>Node3->Node2</title>
|
|
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M56,-131.39C56,-120.15 56,-106.41 56,-96.27"/>
|
|
<polygon fill="#9a32cd" stroke="#9a32cd" points="52.5,-131.18 56,-141.18 59.5,-131.18 52.5,-131.18"/>
|
|
<text text-anchor="middle" x="63.5" y="-117" font-family="Helvetica,sans-Serif" font-size="10.00"> ptr</text>
|
|
</g>
|
|
<!-- Node3->Node3 -->
|
|
<g id="edge10" class="edge">
|
|
<title>Node3->Node3</title>
|
|
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M118.97,-156.89C123.04,-155.86 125.5,-154.4 125.5,-152.5 125.5,-149.21 118.14,-147.24 107.83,-146.57"/>
|
|
<polygon fill="#9a32cd" stroke="#9a32cd" points="118.75,-153.38 109.33,-158.22 119.71,-160.32 118.75,-153.38"/>
|
|
<text text-anchor="middle" x="136.5" y="-150" font-family="Helvetica,sans-Serif" font-size="10.00"> next</text>
|
|
</g>
|
|
<!-- Node4 -->
|
|
<g id="node4" class="node">
|
|
<title>Node4</title>
|
|
<g id="a_node4"><a xlink:href="../../d5/da1/structnode.html" target="_top" xlink:title="for std::vector">
|
|
<polygon fill="white" stroke="#666666" points="156.5,-504.5 81.5,-504.5 81.5,-485.5 156.5,-485.5 156.5,-504.5"/>
|
|
<text text-anchor="middle" x="119" y="-492.5" font-family="Helvetica,sans-Serif" font-size="10.00">node< Kind ></text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node4->Node3 -->
|
|
<g id="edge3" class="edge">
|
|
<title>Node4->Node3</title>
|
|
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M107.7,-475.36C93.16,-450.23 68.64,-403.58 59,-360 42.42,-285.08 51.46,-191.12 54.88,-162.3"/>
|
|
<polygon fill="#9a32cd" stroke="#9a32cd" points="104.54,-476.9 112.64,-483.73 110.57,-473.34 104.54,-476.9"/>
|
|
<text text-anchor="middle" x="67" y="-315" font-family="Helvetica,sans-Serif" font-size="10.00"> left</text>
|
|
<text text-anchor="middle" x="67" y="-304" font-family="Helvetica,sans-Serif" font-size="10.00">link</text>
|
|
<text text-anchor="middle" x="67" y="-293" font-family="Helvetica,sans-Serif" font-size="10.00">next</text>
|
|
<text text-anchor="middle" x="67" y="-282" font-family="Helvetica,sans-Serif" font-size="10.00">parent</text>
|
|
<text text-anchor="middle" x="67" y="-271" font-family="Helvetica,sans-Serif" font-size="10.00">prev</text>
|
|
<text text-anchor="middle" x="67" y="-260" font-family="Helvetica,sans-Serif" font-size="10.00">right</text>
|
|
</g>
|
|
<!-- Node4->Node4 -->
|
|
<g id="edge4" class="edge">
|
|
<title>Node4->Node4</title>
|
|
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M142.1,-509.14C158.38,-513.57 174.5,-508.86 174.5,-495 174.5,-478.1 150.54,-474.8 131.54,-485.1"/>
|
|
<polygon fill="#9a32cd" stroke="#9a32cd" points="143.53,-505.94 132.95,-505.46 140.93,-512.44 143.53,-505.94"/>
|
|
<text text-anchor="middle" x="188.5" y="-520" font-family="Helvetica,sans-Serif" font-size="10.00"> left</text>
|
|
<text text-anchor="middle" x="188.5" y="-509" font-family="Helvetica,sans-Serif" font-size="10.00">link</text>
|
|
<text text-anchor="middle" x="188.5" y="-498" font-family="Helvetica,sans-Serif" font-size="10.00">next</text>
|
|
<text text-anchor="middle" x="188.5" y="-487" font-family="Helvetica,sans-Serif" font-size="10.00">parent</text>
|
|
<text text-anchor="middle" x="188.5" y="-476" font-family="Helvetica,sans-Serif" font-size="10.00">prev</text>
|
|
<text text-anchor="middle" x="188.5" y="-465" font-family="Helvetica,sans-Serif" font-size="10.00">right</text>
|
|
</g>
|
|
<!-- Node6 -->
|
|
<g id="node6" class="node">
|
|
<title>Node6</title>
|
|
<g id="a_node6"><a xlink:href="../../d5/da1/structnode.html" target="_top" xlink:title=" ">
|
|
<polygon fill="white" stroke="#666666" points="169.5,-360 68.5,-360 68.5,-341 169.5,-341 169.5,-360"/>
|
|
<text text-anchor="middle" x="119" y="-348" font-family="Helvetica,sans-Serif" font-size="10.00">node< ValueType ></text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node4->Node6 -->
|
|
<g id="edge7" class="edge">
|
|
<title>Node4->Node6</title>
|
|
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M119,-473.85C119,-442.4 119,-382.9 119,-360.41"/>
|
|
<polygon fill="#9a32cd" stroke="#9a32cd" points="115.5,-473.57 119,-483.57 122.5,-473.57 115.5,-473.57"/>
|
|
<text text-anchor="middle" x="133" y="-436" font-family="Helvetica,sans-Serif" font-size="10.00"> left</text>
|
|
<text text-anchor="middle" x="133" y="-425" font-family="Helvetica,sans-Serif" font-size="10.00">link</text>
|
|
<text text-anchor="middle" x="133" y="-414" font-family="Helvetica,sans-Serif" font-size="10.00">next</text>
|
|
<text text-anchor="middle" x="133" y="-403" font-family="Helvetica,sans-Serif" font-size="10.00">parent</text>
|
|
<text text-anchor="middle" x="133" y="-392" font-family="Helvetica,sans-Serif" font-size="10.00">prev</text>
|
|
<text text-anchor="middle" x="133" y="-381" font-family="Helvetica,sans-Serif" font-size="10.00">right</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/memory/shared_ptr.html" xlink:title=" ">
|
|
<polygon fill="white" stroke="#666666" points="189,-239 77,-239 77,-209 189,-209 189,-239"/>
|
|
<text text-anchor="start" x="85" y="-227" font-family="Helvetica,sans-Serif" font-size="10.00">std::shared_ptr< node</text>
|
|
<text text-anchor="middle" x="133" y="-216" font-family="Helvetica,sans-Serif" font-size="10.00">< ValueType > ></text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node5->Node3 -->
|
|
<g id="edge11" class="edge">
|
|
<title>Node5->Node3</title>
|
|
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M108.88,-201.23C94.25,-188.03 76.39,-171.9 65.62,-162.18"/>
|
|
<polygon fill="#9a32cd" stroke="#9a32cd" points="106.15,-203.48 115.92,-207.59 110.84,-198.29 106.15,-203.48"/>
|
|
<text text-anchor="middle" x="107" y="-183" font-family="Helvetica,sans-Serif" font-size="10.00"> next</text>
|
|
</g>
|
|
<!-- Node5->Node4 -->
|
|
<g id="edge5" class="edge">
|
|
<title>Node5->Node4</title>
|
|
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M161.51,-246.01C191.89,-271.2 233.74,-315.59 219,-360 200.8,-414.82 150.47,-465.38 128.96,-485.18"/>
|
|
<polygon fill="#9a32cd" stroke="#9a32cd" points="164.09,-243.59 154.1,-240.08 159.72,-249.06 164.09,-243.59"/>
|
|
<text text-anchor="middle" x="233" y="-348" font-family="Helvetica,sans-Serif" font-size="10.00"> next</text>
|
|
</g>
|
|
<!-- Node5->Node6 -->
|
|
<g id="edge9" class="edge">
|
|
<title>Node5->Node6</title>
|
|
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M130.1,-250.75C126.96,-278.75 122.09,-321.99 120.01,-340.55"/>
|
|
<polygon fill="#9a32cd" stroke="#9a32cd" points="133.57,-251.28 131.21,-240.95 126.61,-250.5 133.57,-251.28"/>
|
|
<text text-anchor="middle" x="140" y="-287.5" font-family="Helvetica,sans-Serif" font-size="10.00"> next</text>
|
|
</g>
|
|
<!-- Node6->Node5 -->
|
|
<g id="edge6" class="edge">
|
|
<title>Node6->Node5</title>
|
|
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M108.33,-330.26C107.38,-327.87 106.56,-325.42 106,-323 99.37,-294.43 95.93,-284.55 106,-257 108.4,-250.45 112.79,-244.31 117.35,-239.19"/>
|
|
<polygon fill="#9a32cd" stroke="#9a32cd" points="105.16,-331.74 112.68,-339.21 111.45,-328.68 105.16,-331.74"/>
|
|
<text text-anchor="middle" x="113.5" y="-287.5" font-family="Helvetica,sans-Serif" font-size="10.00"> ptr</text>
|
|
</g>
|
|
<!-- Node6->Node6 -->
|
|
<g id="edge8" class="edge">
|
|
<title>Node6->Node6</title>
|
|
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M157.07,-361.71C173.47,-362.62 187.5,-358.88 187.5,-350.5 187.5,-340.28 166.64,-336.96 146.07,-340.56"/>
|
|
<polygon fill="#9a32cd" stroke="#9a32cd" points="157.91,-358.28 147.58,-360.62 157.11,-365.24 157.91,-358.28"/>
|
|
<text text-anchor="middle" x="198.5" y="-348" font-family="Helvetica,sans-Serif" font-size="10.00"> next</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/types/size_t.html" xlink:title=" ">
|
|
<polygon fill="white" stroke="#bfbfbf" points="192,-90.5 130,-90.5 130,-71.5 192,-71.5 192,-90.5"/>
|
|
<text text-anchor="middle" x="161" y="-78.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::size_t</text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node7->Node1 -->
|
|
<g id="edge12" class="edge">
|
|
<title>Node7->Node1</title>
|
|
<path fill="none" stroke="#9a32cd" stroke-dasharray="5,2" d="M147.71,-62.23C137.47,-48.56 123.75,-30.22 115.7,-19.45"/>
|
|
<polygon fill="#9a32cd" stroke="#9a32cd" points="144.71,-64.08 153.51,-69.99 150.32,-59.88 144.71,-64.08"/>
|
|
<text text-anchor="middle" x="147" y="-40" font-family="Helvetica,sans-Serif" font-size="10.00"> size</text>
|
|
</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="classstack__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>
|