trpl-zh-cn/img/trpl04-05.svg
2024-11-08 08:29:11 +00:00

96 lines
6.8 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 12.1.2 (20240928.0832)
-->
<!-- Pages: 1 -->
<svg
viewBox="0.00 0.00 1038.00 1342.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(4.16667 4.16667) rotate(0) translate(4 318)">
<polygon fill="white" stroke="none" points="-4,4 -4,-318 245,-318 245,4 -4,4"/>
<g id="clust1" class="cluster">
<title>cluster_heap</title>
</g>
<!-- s -->
<g id="node1" class="node">
<title>s</title>
<polyline fill="none" stroke="black" points="8,-288 94,-288"/>
<text text-anchor="start" x="48.38" y="-293.7" font-family="Times,serif" font-size="14.00">s</text>
<polygon fill="none" stroke="black" points="8,-266 8,-288 59,-288 59,-266 8,-266"/>
<text text-anchor="start" x="18.5" y="-271.7" font-family="Times,serif" font-size="14.00">name</text>
<polygon fill="none" stroke="black" points="59,-266 59,-288 94,-288 94,-266 59,-266"/>
<text text-anchor="start" x="61.88" y="-271.7" font-family="Times,serif" font-size="14.00">value</text>
<polygon fill="none" stroke="black" points="8,-244 8,-266 59,-266 59,-244 8,-244"/>
<text text-anchor="start" x="26" y="-249.7" font-family="Times,serif" font-size="14.00">ptr</text>
<polygon fill="none" stroke="black" points="59,-244 59,-266 94,-266 94,-244 59,-244"/>
<polygon fill="none" stroke="black" points="8,-222 8,-244 59,-244 59,-222 8,-222"/>
<text text-anchor="start" x="25.25" y="-227.7" font-family="Times,serif" font-size="14.00">len</text>
<polygon fill="none" stroke="black" points="59,-222 59,-244 94,-244 94,-222 59,-222"/>
<text text-anchor="start" x="73.12" y="-227.7" font-family="Times,serif" font-size="14.00">4</text>
<polygon fill="none" stroke="black" points="8,-200 8,-222 59,-222 59,-200 8,-200"/>
<text text-anchor="start" x="11" y="-205.7" font-family="Times,serif" font-size="14.00">capacity</text>
<polygon fill="none" stroke="black" points="59,-200 59,-222 94,-222 94,-200 59,-200"/>
<text text-anchor="start" x="73.12" y="-205.7" font-family="Times,serif" font-size="14.00">4</text>
</g>
<!-- ahoy -->
<g id="node3" class="node">
<title>ahoy</title>
<polygon fill="none" stroke="black" points="146,-266 146,-288 182,-288 182,-266 146,-266"/>
<text text-anchor="start" x="149" y="-271.7" font-family="Times,serif" font-size="14.00">index</text>
<polygon fill="none" stroke="black" points="182,-266 182,-288 217,-288 217,-266 182,-266"/>
<text text-anchor="start" x="184.88" y="-271.7" font-family="Times,serif" font-size="14.00">value</text>
<polygon fill="none" stroke="black" points="146,-244 146,-266 182,-266 182,-244 146,-244"/>
<text text-anchor="start" x="160.62" y="-249.7" font-family="Times,serif" font-size="14.00">0</text>
<polygon fill="none" stroke="black" points="182,-244 182,-266 217,-266 217,-244 182,-244"/>
<text text-anchor="start" x="196.5" y="-249.7" font-family="Times,serif" font-size="14.00">a</text>
<polygon fill="none" stroke="black" points="146,-222 146,-244 182,-244 182,-222 146,-222"/>
<text text-anchor="start" x="160.62" y="-227.7" font-family="Times,serif" font-size="14.00">1</text>
<polygon fill="none" stroke="black" points="182,-222 182,-244 217,-244 217,-222 182,-222"/>
<text text-anchor="start" x="196.12" y="-227.7" font-family="Times,serif" font-size="14.00">h</text>
<polygon fill="none" stroke="black" points="146,-200 146,-222 182,-222 182,-200 146,-200"/>
<text text-anchor="start" x="160.62" y="-205.7" font-family="Times,serif" font-size="14.00">2</text>
<polygon fill="none" stroke="black" points="182,-200 182,-222 217,-222 217,-200 182,-200"/>
<text text-anchor="start" x="196.12" y="-205.7" font-family="Times,serif" font-size="14.00">o</text>
<polygon fill="none" stroke="black" points="146,-178 146,-200 182,-200 182,-178 146,-178"/>
<text text-anchor="start" x="160.62" y="-183.7" font-family="Times,serif" font-size="14.00">3</text>
<polygon fill="none" stroke="black" points="182,-178 182,-200 217,-200 217,-178 182,-178"/>
<text text-anchor="start" x="196.12" y="-183.7" font-family="Times,serif" font-size="14.00">y</text>
</g>
<!-- s&#45;&gt;ahoy -->
<g id="edge1" class="edge">
<title>s:c&#45;&gt;ahoy:pointee</title>
<path fill="none" stroke="black" d="M77.5,-255C77.5,-255 106.47,-255 133.85,-255"/>
<polygon fill="black" stroke="black" points="133.49,-258.5 143.49,-255 133.49,-251.5 133.49,-258.5"/>
</g>
<!-- hello -->
<g id="node2" class="node">
<title>hello</title>
<polygon fill="gray" stroke="none" points="146,-20 146,-152 217,-152 217,-20 146,-20"/>
<polygon fill="none" stroke="black" points="146,-130 146,-152 182,-152 182,-130 146,-130"/>
<text text-anchor="start" x="149" y="-135.7" font-family="Times,serif" font-size="14.00">index</text>
<polygon fill="none" stroke="black" points="182,-130 182,-152 217,-152 217,-130 182,-130"/>
<text text-anchor="start" x="184.88" y="-135.7" font-family="Times,serif" font-size="14.00">value</text>
<polygon fill="none" stroke="black" points="146,-108 146,-130 182,-130 182,-108 146,-108"/>
<text text-anchor="start" x="160.62" y="-113.7" font-family="Times,serif" font-size="14.00">0</text>
<polygon fill="none" stroke="black" points="182,-108 182,-130 217,-130 217,-108 182,-108"/>
<text text-anchor="start" x="196.12" y="-113.7" font-family="Times,serif" font-size="14.00">h</text>
<polygon fill="none" stroke="black" points="146,-86 146,-108 182,-108 182,-86 146,-86"/>
<text text-anchor="start" x="160.62" y="-91.7" font-family="Times,serif" font-size="14.00">1</text>
<polygon fill="none" stroke="black" points="182,-86 182,-108 217,-108 217,-86 182,-86"/>
<text text-anchor="start" x="196.5" y="-91.7" font-family="Times,serif" font-size="14.00">e</text>
<polygon fill="none" stroke="black" points="146,-64 146,-86 182,-86 182,-64 146,-64"/>
<text text-anchor="start" x="160.62" y="-69.7" font-family="Times,serif" font-size="14.00">2</text>
<polygon fill="none" stroke="black" points="182,-64 182,-86 217,-86 217,-64 182,-64"/>
<text text-anchor="start" x="197.62" y="-69.7" font-family="Times,serif" font-size="14.00">l</text>
<polygon fill="none" stroke="black" points="146,-42 146,-64 182,-64 182,-42 146,-42"/>
<text text-anchor="start" x="160.62" y="-47.7" font-family="Times,serif" font-size="14.00">3</text>
<polygon fill="none" stroke="black" points="182,-42 182,-64 217,-64 217,-42 182,-42"/>
<text text-anchor="start" x="197.62" y="-47.7" font-family="Times,serif" font-size="14.00">l</text>
<polygon fill="none" stroke="black" points="146,-20 146,-42 182,-42 182,-20 146,-20"/>
<text text-anchor="start" x="160.62" y="-25.7" font-family="Times,serif" font-size="14.00">4</text>
<polygon fill="none" stroke="black" points="182,-20 182,-42 217,-42 217,-20 182,-20"/>
<text text-anchor="start" x="196.12" y="-25.7" font-family="Times,serif" font-size="14.00">o</text>
</g>
</g>
</svg>