mirror of
https://github.com/rust-lang/book.git
synced 2026-11-30 18:44:33 -06:00
Add a short discussion of assignment and ownership in ch. 04
Add a short new section showing how assignment to a mutable variable causes an existing *owned* binding to be freed immediately. Create a new code sample and a new diagram to illustrate the behavior. Fixes #4001.
This commit is contained in:
+54
-31
@@ -1,32 +1,55 @@
|
||||
digraph {
|
||||
rankdir=LR;
|
||||
overlap=false;
|
||||
dpi=300.0;
|
||||
node [shape="plaintext"];
|
||||
|
||||
table0[label=<<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
|
||||
<TR><TD COLSPAN="2" SIDES="B">s</TD></TR>
|
||||
<TR><TD>name</TD><TD>value</TD></TR>
|
||||
<TR><TD>ptr</TD><TD PORT="borrower"></TD></TR>
|
||||
</TABLE>>];
|
||||
table1[label=<<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
|
||||
<TR><TD COLSPAN="2" SIDES="B">s1</TD></TR>
|
||||
<TR><TD>name</TD><TD>value</TD></TR>
|
||||
<TR><TD PORT="borrowee">ptr</TD><TD PORT="pointer"></TD></TR>
|
||||
<TR><TD>len</TD><TD>5</TD></TR>
|
||||
<TR><TD>capacity</TD><TD>5</TD></TR>
|
||||
</TABLE>>];
|
||||
table2[label=<<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
|
||||
<TR><TD>index</TD><TD>value</TD></TR>
|
||||
<TR><TD PORT="pointee">0</TD><TD>h</TD></TR>
|
||||
<TR><TD>1</TD><TD>e</TD></TR>
|
||||
<TR><TD>2</TD><TD>l</TD></TR>
|
||||
<TR><TD>3</TD><TD>l</TD></TR>
|
||||
<TR><TD>4</TD><TD>o</TD></TR>
|
||||
</TABLE>>];
|
||||
|
||||
edge[tailclip="false"];
|
||||
table1:pointer:c -> table2:pointee;
|
||||
table0:borrower:c -> table1:borrowee;
|
||||
}
|
||||
|
||||
rankdir = LR;
|
||||
overlap = false;
|
||||
newrank = true;
|
||||
dpi = 300.0;
|
||||
splines = false;
|
||||
clusterrank = "local";
|
||||
node [shape = "plaintext";];
|
||||
|
||||
subgraph cluster_stack {
|
||||
peripheries = 0;
|
||||
rank = "same";
|
||||
|
||||
// Just to have the right height!
|
||||
a [label = <<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0" BGCOLOR="gray">
|
||||
<TR><TD>a</TD></TR>
|
||||
<TR><TD>0</TD></TR>
|
||||
<TR><TD>1</TD></TR>
|
||||
<TR><TD>2</TD></TR>
|
||||
<TR><TD>3</TD></TR>
|
||||
</TABLE>>;style = invis;];
|
||||
|
||||
s [label = <<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
|
||||
<TR><TD COLSPAN="2" SIDES="B">s</TD></TR>
|
||||
<TR><TD>name</TD><TD>value</TD></TR>
|
||||
<TR><TD>ptr</TD><TD PORT="pointer"></TD></TR>
|
||||
<TR><TD>len</TD><TD>4</TD></TR>
|
||||
<TR><TD>capacity</TD><TD>4</TD></TR>
|
||||
</TABLE>>;];
|
||||
}
|
||||
|
||||
subgraph cluster_heap {
|
||||
peripheries = 0;
|
||||
rank = "same";
|
||||
|
||||
hello [label = <<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0" BGCOLOR="gray">
|
||||
<TR><TD>index</TD><TD>value</TD></TR>
|
||||
<TR><TD PORT="pointee">0</TD><TD>h</TD></TR>
|
||||
<TR><TD>1</TD><TD>e</TD></TR>
|
||||
<TR><TD>2</TD><TD>l</TD></TR>
|
||||
<TR><TD>3</TD><TD>l</TD></TR>
|
||||
<TR><TD>4</TD><TD>o</TD></TR>
|
||||
</TABLE>>;];
|
||||
|
||||
ahoy [label = <<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
|
||||
<TR><TD>index</TD><TD>value</TD></TR>
|
||||
<TR><TD PORT="pointee">0</TD><TD>a</TD></TR>
|
||||
<TR><TD>1</TD><TD>h</TD></TR>
|
||||
<TR><TD>2</TD><TD>o</TD></TR>
|
||||
<TR><TD>3</TD><TD>y</TD></TR>
|
||||
</TABLE>>;];
|
||||
}
|
||||
|
||||
s -> ahoy [tailport = "pointer:c"; headport = "pointee"; tailclip = false;];
|
||||
}
|
||||
+11
-20
@@ -5,37 +5,28 @@ digraph {
|
||||
node [shape="plaintext"];
|
||||
|
||||
table0[label=<<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
|
||||
<TR><TD COLSPAN="2" SIDES="B">world</TD></TR>
|
||||
<TR><TD>name</TD><TD>value</TD></TR>
|
||||
<TR><TD>ptr</TD><TD PORT="pointer2"></TD></TR>
|
||||
<TR><TD>len</TD><TD>5</TD></TR>
|
||||
</TABLE>>];
|
||||
|
||||
table3[label=<<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
|
||||
<TR><TD COLSPAN="2" SIDES="B">s</TD></TR>
|
||||
<TR><TD>name</TD><TD>value</TD></TR>
|
||||
<TR><TD>ptr</TD><TD PORT="pointer"></TD></TR>
|
||||
<TR><TD>len</TD><TD>11</TD></TR>
|
||||
<TR><TD>capacity</TD><TD>11</TD></TR>
|
||||
<TR><TD>ptr</TD><TD PORT="borrower"></TD></TR>
|
||||
</TABLE>>];
|
||||
table4[label=<<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
|
||||
table1[label=<<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
|
||||
<TR><TD COLSPAN="2" SIDES="B">s1</TD></TR>
|
||||
<TR><TD>name</TD><TD>value</TD></TR>
|
||||
<TR><TD PORT="borrowee">ptr</TD><TD PORT="pointer"></TD></TR>
|
||||
<TR><TD>len</TD><TD>5</TD></TR>
|
||||
<TR><TD>capacity</TD><TD>5</TD></TR>
|
||||
</TABLE>>];
|
||||
table2[label=<<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
|
||||
<TR><TD>index</TD><TD>value</TD></TR>
|
||||
<TR><TD PORT="pointee">0</TD><TD>h</TD></TR>
|
||||
<TR><TD>1</TD><TD>e</TD></TR>
|
||||
<TR><TD>2</TD><TD>l</TD></TR>
|
||||
<TR><TD>3</TD><TD>l</TD></TR>
|
||||
<TR><TD>4</TD><TD>o</TD></TR>
|
||||
<TR><TD>5</TD><TD> </TD></TR>
|
||||
<TR><TD PORT="pointee2">6</TD><TD>w</TD></TR>
|
||||
<TR><TD>7</TD><TD>o</TD></TR>
|
||||
<TR><TD>8</TD><TD>r</TD></TR>
|
||||
<TR><TD>9</TD><TD>l</TD></TR>
|
||||
<TR><TD>10</TD><TD>d</TD></TR>
|
||||
</TABLE>>];
|
||||
|
||||
|
||||
edge[tailclip="false"];
|
||||
table0:pointer2:c -> table4:pointee2;
|
||||
table3:pointer:c -> table4:pointee;
|
||||
table1:pointer:c -> table2:pointee;
|
||||
table0:borrower:c -> table1:borrowee;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
digraph {
|
||||
rankdir=LR;
|
||||
overlap=false;
|
||||
dpi=300.0;
|
||||
node [shape="plaintext"];
|
||||
|
||||
table0[label=<<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
|
||||
<TR><TD COLSPAN="2" SIDES="B">world</TD></TR>
|
||||
<TR><TD>name</TD><TD>value</TD></TR>
|
||||
<TR><TD>ptr</TD><TD PORT="pointer2"></TD></TR>
|
||||
<TR><TD>len</TD><TD>5</TD></TR>
|
||||
</TABLE>>];
|
||||
|
||||
table3[label=<<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
|
||||
<TR><TD COLSPAN="2" SIDES="B">s</TD></TR>
|
||||
<TR><TD>name</TD><TD>value</TD></TR>
|
||||
<TR><TD>ptr</TD><TD PORT="pointer"></TD></TR>
|
||||
<TR><TD>len</TD><TD>11</TD></TR>
|
||||
<TR><TD>capacity</TD><TD>11</TD></TR>
|
||||
</TABLE>>];
|
||||
table4[label=<<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
|
||||
<TR><TD>index</TD><TD>value</TD></TR>
|
||||
<TR><TD PORT="pointee">0</TD><TD>h</TD></TR>
|
||||
<TR><TD>1</TD><TD>e</TD></TR>
|
||||
<TR><TD>2</TD><TD>l</TD></TR>
|
||||
<TR><TD>3</TD><TD>l</TD></TR>
|
||||
<TR><TD>4</TD><TD>o</TD></TR>
|
||||
<TR><TD>5</TD><TD> </TD></TR>
|
||||
<TR><TD PORT="pointee2">6</TD><TD>w</TD></TR>
|
||||
<TR><TD>7</TD><TD>o</TD></TR>
|
||||
<TR><TD>8</TD><TD>r</TD></TR>
|
||||
<TR><TD>9</TD><TD>l</TD></TR>
|
||||
<TR><TD>10</TD><TD>d</TD></TR>
|
||||
</TABLE>>];
|
||||
|
||||
|
||||
edge[tailclip="false"];
|
||||
table0:pointer2:c -> table4:pointee2;
|
||||
table3:pointer:c -> table4:pointee;
|
||||
}
|
||||
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
[[package]]
|
||||
name = "ownership"
|
||||
version = "0.1.0"
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
[package]
|
||||
name = "ownership"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
@@ -0,0 +1,8 @@
|
||||
fn main() {
|
||||
// ANCHOR: here
|
||||
let mut s = String::from("hello");
|
||||
s = String::from("ahoy");
|
||||
|
||||
println!("{s}, world!");
|
||||
// ANCHOR_END: here
|
||||
}
|
||||
@@ -356,6 +356,37 @@ In addition, there’s a design choice that’s implied by this: Rust will never
|
||||
automatically create “deep” copies of your data. Therefore, any *automatic*
|
||||
copying can be assumed to be inexpensive in terms of runtime performance.
|
||||
|
||||
#### Scope and Assignment
|
||||
|
||||
The inverse of this is true for the relationship between scoping, ownership, and
|
||||
memory being freed via the `drop` function as well. When you assign a completely
|
||||
new value to an existing variable, Rust will call `drop` and free the original
|
||||
value’s memory immediately. Consider this code, for example:
|
||||
|
||||
```rust
|
||||
{{#rustdoc_include ../listings/ch04-understanding-ownership/no-listing-04b-replacement-drop/src/main.rs:here}}
|
||||
```
|
||||
|
||||
We initially declare a variable `s` and bind it to a `String` with the value
|
||||
`"hello"`. Then we immediately create a new `String` with the value `"ahoy"` and
|
||||
assign it to `s`. At this point, nothing is referring to the original value on
|
||||
the heap at all.
|
||||
|
||||
<img alt="One table s representing the string value on the stack, pointing to
|
||||
the second piece of string data (ahoy) on the heap, with the original string
|
||||
data (hello) grayed out because it cannot be accessed anymore."
|
||||
src="img/trpl04-05.svg"
|
||||
class="center"
|
||||
style="width: 50%;"
|
||||
/>
|
||||
|
||||
<span class="caption">Figure 4-5: Representation in memory after the initial
|
||||
value has been replaced in its entirety.</span>
|
||||
|
||||
The original string thus immediately goes out of scope. Rust will run the `drop`
|
||||
function on it and its memory will be freed right away. When we print the value
|
||||
at the end, it will be `"ahoy, world!"`.
|
||||
|
||||
<!-- Old heading. Do not remove or links may break. -->
|
||||
<a id="ways-variables-and-data-interact-clone"></a>
|
||||
|
||||
|
||||
@@ -24,13 +24,13 @@ First, notice that all the tuple code in the variable declaration and the
|
||||
function return value is gone. Second, note that we pass `&s1` into
|
||||
`calculate_length` and, in its definition, we take `&String` rather than
|
||||
`String`. These ampersands represent *references*, and they allow you to refer
|
||||
to some value without taking ownership of it. Figure 4-5 depicts this concept.
|
||||
to some value without taking ownership of it. Figure 4-6 depicts this concept.
|
||||
|
||||
<img alt="Three tables: the table for s contains only a pointer to the table
|
||||
for s1. The table for s1 contains the stack data for s1 and points to the
|
||||
string data on the heap." src="img/trpl04-05.svg" class="center" />
|
||||
string data on the heap." src="img/trpl04-06.svg" class="center" />
|
||||
|
||||
<span class="caption">Figure 4-5: A diagram of `&String s` pointing at `String
|
||||
<span class="caption">Figure 4-6: A diagram of `&String s` pointing at `String
|
||||
s1`</span>
|
||||
|
||||
> Note: The opposite of referencing by using `&` is *dereferencing*, which is
|
||||
|
||||
@@ -119,15 +119,15 @@ corresponds to `ending_index` minus `starting_index`. So, in the case of `let
|
||||
world = &s[6..11];`, `world` would be a slice that contains a pointer to the
|
||||
byte at index 6 of `s` with a length value of `5`.
|
||||
|
||||
Figure 4-6 shows this in a diagram.
|
||||
Figure 4-7 shows this in a diagram.
|
||||
|
||||
<img alt="Three tables: a table representing the stack data of s, which points
|
||||
to the byte at index 0 in a table of the string data "hello world" on
|
||||
the heap. The third table rep-resents the stack data of the slice world, which
|
||||
has a length value of 5 and points to byte 6 of the heap data table."
|
||||
src="img/trpl04-06.svg" class="center" style="width: 50%;" />
|
||||
src="img/trpl04-07.svg" class="center" style="width: 50%;" />
|
||||
|
||||
<span class="caption">Figure 4-6: String slice referring to part of a
|
||||
<span class="caption">Figure 4-7: String slice referring to part of a
|
||||
`String`</span>
|
||||
|
||||
With Rust’s `..` range syntax, if you want to start at index 0, you can drop
|
||||
|
||||
+86
-74
@@ -1,87 +1,99 @@
|
||||
<?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.40.1 (20161225.0304)
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: %3 Pages: 1 -->
|
||||
<!-- Pages: 1 -->
|
||||
<svg
|
||||
viewBox="0.00 0.00 1500.00 650.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g id="graph0" class="graph" transform="scale(4.1667 4.1667) rotate(0) translate(4 152)">
|
||||
<title>%3</title>
|
||||
<polygon fill="#ffffff" stroke="transparent" points="-4,4 -4,-152 357,-152 357,4 -4,4"/>
|
||||
<!-- table0 -->
|
||||
<g id="node1" class="node">
|
||||
<title>table0</title>
|
||||
<polyline fill="none" stroke="#000000" points="8,-124 80,-124 "/>
|
||||
<text text-anchor="start" x="41.2759" y="-129.8" font-family="Times,serif" font-size="14.00" fill="#000000">s</text>
|
||||
<polygon fill="none" stroke="#000000" points="8,-104 8,-124 44,-124 44,-104 8,-104"/>
|
||||
<text text-anchor="start" x="10.8413" y="-109.8" font-family="Times,serif" font-size="14.00" fill="#000000">name</text>
|
||||
<polygon fill="none" stroke="#000000" points="44,-104 44,-124 80,-124 80,-104 44,-104"/>
|
||||
<text text-anchor="start" x="46.8413" y="-109.8" font-family="Times,serif" font-size="14.00" fill="#000000">value</text>
|
||||
<polygon fill="none" stroke="#000000" points="8,-84 8,-104 44,-104 44,-84 8,-84"/>
|
||||
<text text-anchor="start" x="18.2241" y="-89.8" font-family="Times,serif" font-size="14.00" fill="#000000">ptr</text>
|
||||
<polygon fill="none" stroke="#000000" points="44,-84 44,-104 80,-104 80,-84 44,-84"/>
|
||||
viewBox="0.00 0.00 1104.00 1408.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 334)">
|
||||
<polygon fill="white" stroke="none" points="-4,4 -4,-334 261,-334 261,4 -4,4"/>
|
||||
<g id="clust1" class="cluster">
|
||||
<title>cluster_stack</title>
|
||||
</g>
|
||||
<!-- table1 -->
|
||||
<g id="clust2" class="cluster">
|
||||
<title>cluster_heap</title>
|
||||
</g>
|
||||
<!-- a -->
|
||||
<!-- s -->
|
||||
<g id="node2" class="node">
|
||||
<title>table1</title>
|
||||
<polyline fill="none" stroke="#000000" points="132,-124 220,-124 "/>
|
||||
<text text-anchor="start" x="169.7759" y="-129.8" font-family="Times,serif" font-size="14.00" fill="#000000">s1</text>
|
||||
<polygon fill="none" stroke="#000000" points="132,-104 132,-124 184,-124 184,-104 132,-104"/>
|
||||
<text text-anchor="start" x="142.8413" y="-109.8" font-family="Times,serif" font-size="14.00" fill="#000000">name</text>
|
||||
<polygon fill="none" stroke="#000000" points="184,-104 184,-124 220,-124 220,-104 184,-104"/>
|
||||
<text text-anchor="start" x="186.8413" y="-109.8" font-family="Times,serif" font-size="14.00" fill="#000000">value</text>
|
||||
<polygon fill="none" stroke="#000000" points="132,-84 132,-104 184,-104 184,-84 132,-84"/>
|
||||
<text text-anchor="start" x="150.2241" y="-89.8" font-family="Times,serif" font-size="14.00" fill="#000000">ptr</text>
|
||||
<polygon fill="none" stroke="#000000" points="184,-84 184,-104 220,-104 220,-84 184,-84"/>
|
||||
<polygon fill="none" stroke="#000000" points="132,-64 132,-84 184,-84 184,-64 132,-64"/>
|
||||
<text text-anchor="start" x="149.4482" y="-69.8" font-family="Times,serif" font-size="14.00" fill="#000000">len</text>
|
||||
<polygon fill="none" stroke="#000000" points="184,-64 184,-84 220,-84 220,-64 184,-64"/>
|
||||
<text text-anchor="start" x="198.5" y="-69.8" font-family="Times,serif" font-size="14.00" fill="#000000">5</text>
|
||||
<polygon fill="none" stroke="#000000" points="132,-44 132,-64 184,-64 184,-44 132,-44"/>
|
||||
<text text-anchor="start" x="134.6826" y="-49.8" font-family="Times,serif" font-size="14.00" fill="#000000">capacity</text>
|
||||
<polygon fill="none" stroke="#000000" points="184,-44 184,-64 220,-64 220,-44 184,-44"/>
|
||||
<text text-anchor="start" x="198.5" y="-49.8" font-family="Times,serif" font-size="14.00" fill="#000000">5</text>
|
||||
<title>s</title>
|
||||
<polyline fill="none" stroke="black" points="24,-288 110,-288"/>
|
||||
<text text-anchor="start" x="64.38" y="-293.7" font-family="Times,serif" font-size="14.00">s</text>
|
||||
<polygon fill="none" stroke="black" points="24,-266 24,-288 75,-288 75,-266 24,-266"/>
|
||||
<text text-anchor="start" x="34.5" y="-271.7" font-family="Times,serif" font-size="14.00">name</text>
|
||||
<polygon fill="none" stroke="black" points="75,-266 75,-288 110,-288 110,-266 75,-266"/>
|
||||
<text text-anchor="start" x="77.88" y="-271.7" font-family="Times,serif" font-size="14.00">value</text>
|
||||
<polygon fill="none" stroke="black" points="24,-244 24,-266 75,-266 75,-244 24,-244"/>
|
||||
<text text-anchor="start" x="42" y="-249.7" font-family="Times,serif" font-size="14.00">ptr</text>
|
||||
<polygon fill="none" stroke="black" points="75,-244 75,-266 110,-266 110,-244 75,-244"/>
|
||||
<polygon fill="none" stroke="black" points="24,-222 24,-244 75,-244 75,-222 24,-222"/>
|
||||
<text text-anchor="start" x="41.25" y="-227.7" font-family="Times,serif" font-size="14.00">len</text>
|
||||
<polygon fill="none" stroke="black" points="75,-222 75,-244 110,-244 110,-222 75,-222"/>
|
||||
<text text-anchor="start" x="89.12" y="-227.7" font-family="Times,serif" font-size="14.00">4</text>
|
||||
<polygon fill="none" stroke="black" points="24,-200 24,-222 75,-222 75,-200 24,-200"/>
|
||||
<text text-anchor="start" x="27" y="-205.7" font-family="Times,serif" font-size="14.00">capacity</text>
|
||||
<polygon fill="none" stroke="black" points="75,-200 75,-222 110,-222 110,-200 75,-200"/>
|
||||
<text text-anchor="start" x="89.12" y="-205.7" font-family="Times,serif" font-size="14.00">4</text>
|
||||
</g>
|
||||
<!-- table0->table1 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>table0:c->table1:borrowee</title>
|
||||
<path fill="none" stroke="#000000" d="M62,-94C62,-94 93.1184,-94 121.9514,-94"/>
|
||||
<polygon fill="#000000" stroke="#000000" points="122,-97.5001 132,-94 122,-90.5001 122,-97.5001"/>
|
||||
<!-- ahoy -->
|
||||
<g id="node4" class="node">
|
||||
<title>ahoy</title>
|
||||
<polygon fill="none" stroke="black" points="162,-266 162,-288 198,-288 198,-266 162,-266"/>
|
||||
<text text-anchor="start" x="165" y="-271.7" font-family="Times,serif" font-size="14.00">index</text>
|
||||
<polygon fill="none" stroke="black" points="198,-266 198,-288 233,-288 233,-266 198,-266"/>
|
||||
<text text-anchor="start" x="200.88" y="-271.7" font-family="Times,serif" font-size="14.00">value</text>
|
||||
<polygon fill="none" stroke="black" points="162,-244 162,-266 198,-266 198,-244 162,-244"/>
|
||||
<text text-anchor="start" x="176.62" y="-249.7" font-family="Times,serif" font-size="14.00">0</text>
|
||||
<polygon fill="none" stroke="black" points="198,-244 198,-266 233,-266 233,-244 198,-244"/>
|
||||
<text text-anchor="start" x="212.5" y="-249.7" font-family="Times,serif" font-size="14.00">a</text>
|
||||
<polygon fill="none" stroke="black" points="162,-222 162,-244 198,-244 198,-222 162,-222"/>
|
||||
<text text-anchor="start" x="176.62" y="-227.7" font-family="Times,serif" font-size="14.00">1</text>
|
||||
<polygon fill="none" stroke="black" points="198,-222 198,-244 233,-244 233,-222 198,-222"/>
|
||||
<text text-anchor="start" x="212.12" y="-227.7" font-family="Times,serif" font-size="14.00">h</text>
|
||||
<polygon fill="none" stroke="black" points="162,-200 162,-222 198,-222 198,-200 162,-200"/>
|
||||
<text text-anchor="start" x="176.62" y="-205.7" font-family="Times,serif" font-size="14.00">2</text>
|
||||
<polygon fill="none" stroke="black" points="198,-200 198,-222 233,-222 233,-200 198,-200"/>
|
||||
<text text-anchor="start" x="212.12" y="-205.7" font-family="Times,serif" font-size="14.00">o</text>
|
||||
<polygon fill="none" stroke="black" points="162,-178 162,-200 198,-200 198,-178 162,-178"/>
|
||||
<text text-anchor="start" x="176.62" y="-183.7" font-family="Times,serif" font-size="14.00">3</text>
|
||||
<polygon fill="none" stroke="black" points="198,-178 198,-200 233,-200 233,-178 198,-178"/>
|
||||
<text text-anchor="start" x="212.12" y="-183.7" font-family="Times,serif" font-size="14.00">y</text>
|
||||
</g>
|
||||
<!-- table2 -->
|
||||
<g id="node3" class="node">
|
||||
<title>table2</title>
|
||||
<polygon fill="none" stroke="#000000" points="272.5,-104 272.5,-124 309.5,-124 309.5,-104 272.5,-104"/>
|
||||
<text text-anchor="start" x="275.4482" y="-109.8" font-family="Times,serif" font-size="14.00" fill="#000000">index</text>
|
||||
<polygon fill="none" stroke="#000000" points="309.5,-104 309.5,-124 345.5,-124 345.5,-104 309.5,-104"/>
|
||||
<text text-anchor="start" x="312.3413" y="-109.8" font-family="Times,serif" font-size="14.00" fill="#000000">value</text>
|
||||
<polygon fill="none" stroke="#000000" points="272.5,-84 272.5,-104 309.5,-104 309.5,-84 272.5,-84"/>
|
||||
<text text-anchor="start" x="287.5" y="-89.8" font-family="Times,serif" font-size="14.00" fill="#000000">0</text>
|
||||
<polygon fill="none" stroke="#000000" points="309.5,-84 309.5,-104 345.5,-104 345.5,-84 309.5,-84"/>
|
||||
<text text-anchor="start" x="324" y="-89.8" font-family="Times,serif" font-size="14.00" fill="#000000">h</text>
|
||||
<polygon fill="none" stroke="#000000" points="272.5,-64 272.5,-84 309.5,-84 309.5,-64 272.5,-64"/>
|
||||
<text text-anchor="start" x="287.5" y="-69.8" font-family="Times,serif" font-size="14.00" fill="#000000">1</text>
|
||||
<polygon fill="none" stroke="#000000" points="309.5,-64 309.5,-84 345.5,-84 345.5,-64 309.5,-64"/>
|
||||
<text text-anchor="start" x="324.3931" y="-69.8" font-family="Times,serif" font-size="14.00" fill="#000000">e</text>
|
||||
<polygon fill="none" stroke="#000000" points="272.5,-44 272.5,-64 309.5,-64 309.5,-44 272.5,-44"/>
|
||||
<text text-anchor="start" x="287.5" y="-49.8" font-family="Times,serif" font-size="14.00" fill="#000000">2</text>
|
||||
<polygon fill="none" stroke="#000000" points="309.5,-44 309.5,-64 345.5,-64 345.5,-44 309.5,-44"/>
|
||||
<text text-anchor="start" x="325.5552" y="-49.8" font-family="Times,serif" font-size="14.00" fill="#000000">l</text>
|
||||
<polygon fill="none" stroke="#000000" points="272.5,-24 272.5,-44 309.5,-44 309.5,-24 272.5,-24"/>
|
||||
<text text-anchor="start" x="287.5" y="-29.8" font-family="Times,serif" font-size="14.00" fill="#000000">3</text>
|
||||
<polygon fill="none" stroke="#000000" points="309.5,-24 309.5,-44 345.5,-44 345.5,-24 309.5,-24"/>
|
||||
<text text-anchor="start" x="325.5552" y="-29.8" font-family="Times,serif" font-size="14.00" fill="#000000">l</text>
|
||||
<polygon fill="none" stroke="#000000" points="272.5,-4 272.5,-24 309.5,-24 309.5,-4 272.5,-4"/>
|
||||
<text text-anchor="start" x="287.5" y="-9.8" font-family="Times,serif" font-size="14.00" fill="#000000">4</text>
|
||||
<polygon fill="none" stroke="#000000" points="309.5,-4 309.5,-24 345.5,-24 345.5,-4 309.5,-4"/>
|
||||
<text text-anchor="start" x="324" y="-9.8" font-family="Times,serif" font-size="14.00" fill="#000000">o</text>
|
||||
</g>
|
||||
<!-- table1->table2 -->
|
||||
<!-- s->ahoy -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>table1:c->table2:pointee</title>
|
||||
<path fill="none" stroke="#000000" d="M202,-94C202,-94 233.3406,-94 262.3797,-94"/>
|
||||
<polygon fill="#000000" stroke="#000000" points="262.5,-97.5001 272.5,-94 262.5,-90.5001 262.5,-97.5001"/>
|
||||
<title>s:c->ahoy:pointee</title>
|
||||
<path fill="none" stroke="black" d="M93.5,-255C93.5,-255 130.29,-255 149.55,-255"/>
|
||||
<polygon fill="black" stroke="black" points="149.49,-258.5 159.49,-255 149.49,-251.5 149.49,-258.5"/>
|
||||
</g>
|
||||
<!-- hello -->
|
||||
<g id="node3" class="node">
|
||||
<title>hello</title>
|
||||
<polygon fill="gray" stroke="none" points="162,-20 162,-152 233,-152 233,-20 162,-20"/>
|
||||
<polygon fill="none" stroke="black" points="162,-130 162,-152 198,-152 198,-130 162,-130"/>
|
||||
<text text-anchor="start" x="165" y="-135.7" font-family="Times,serif" font-size="14.00">index</text>
|
||||
<polygon fill="none" stroke="black" points="198,-130 198,-152 233,-152 233,-130 198,-130"/>
|
||||
<text text-anchor="start" x="200.88" y="-135.7" font-family="Times,serif" font-size="14.00">value</text>
|
||||
<polygon fill="none" stroke="black" points="162,-108 162,-130 198,-130 198,-108 162,-108"/>
|
||||
<text text-anchor="start" x="176.62" y="-113.7" font-family="Times,serif" font-size="14.00">0</text>
|
||||
<polygon fill="none" stroke="black" points="198,-108 198,-130 233,-130 233,-108 198,-108"/>
|
||||
<text text-anchor="start" x="212.12" y="-113.7" font-family="Times,serif" font-size="14.00">h</text>
|
||||
<polygon fill="none" stroke="black" points="162,-86 162,-108 198,-108 198,-86 162,-86"/>
|
||||
<text text-anchor="start" x="176.62" y="-91.7" font-family="Times,serif" font-size="14.00">1</text>
|
||||
<polygon fill="none" stroke="black" points="198,-86 198,-108 233,-108 233,-86 198,-86"/>
|
||||
<text text-anchor="start" x="212.5" y="-91.7" font-family="Times,serif" font-size="14.00">e</text>
|
||||
<polygon fill="none" stroke="black" points="162,-64 162,-86 198,-86 198,-64 162,-64"/>
|
||||
<text text-anchor="start" x="176.62" y="-69.7" font-family="Times,serif" font-size="14.00">2</text>
|
||||
<polygon fill="none" stroke="black" points="198,-64 198,-86 233,-86 233,-64 198,-64"/>
|
||||
<text text-anchor="start" x="213.62" y="-69.7" font-family="Times,serif" font-size="14.00">l</text>
|
||||
<polygon fill="none" stroke="black" points="162,-42 162,-64 198,-64 198,-42 162,-42"/>
|
||||
<text text-anchor="start" x="176.62" y="-47.7" font-family="Times,serif" font-size="14.00">3</text>
|
||||
<polygon fill="none" stroke="black" points="198,-42 198,-64 233,-64 233,-42 198,-42"/>
|
||||
<text text-anchor="start" x="213.62" y="-47.7" font-family="Times,serif" font-size="14.00">l</text>
|
||||
<polygon fill="none" stroke="black" points="162,-20 162,-42 198,-42 198,-20 162,-20"/>
|
||||
<text text-anchor="start" x="176.62" y="-25.7" font-family="Times,serif" font-size="14.00">4</text>
|
||||
<polygon fill="none" stroke="black" points="198,-20 198,-42 233,-42 233,-20 198,-20"/>
|
||||
<text text-anchor="start" x="212.12" y="-25.7" font-family="Times,serif" font-size="14.00">o</text>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 6.9 KiB |
+69
-97
@@ -5,111 +5,83 @@
|
||||
-->
|
||||
<!-- Title: %3 Pages: 1 -->
|
||||
<svg
|
||||
viewBox="0.00 0.00 1000.00 1279.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g id="graph0" class="graph" transform="scale(4.1667 4.1667) rotate(0) translate(4 275)">
|
||||
viewBox="0.00 0.00 1500.00 650.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g id="graph0" class="graph" transform="scale(4.1667 4.1667) rotate(0) translate(4 152)">
|
||||
<title>%3</title>
|
||||
<polygon fill="#ffffff" stroke="transparent" points="-4,4 -4,-275 233,-275 233,4 -4,4"/>
|
||||
<polygon fill="#ffffff" stroke="transparent" points="-4,4 -4,-152 357,-152 357,4 -4,4"/>
|
||||
<!-- table0 -->
|
||||
<g id="node1" class="node">
|
||||
<title>table0</title>
|
||||
<polyline fill="none" stroke="#000000" points="16,-121 88,-121 "/>
|
||||
<text text-anchor="start" x="35.6689" y="-126.8" font-family="Times,serif" font-size="14.00" fill="#000000">world</text>
|
||||
<polygon fill="none" stroke="#000000" points="16,-101 16,-121 52,-121 52,-101 16,-101"/>
|
||||
<text text-anchor="start" x="18.8413" y="-106.8" font-family="Times,serif" font-size="14.00" fill="#000000">name</text>
|
||||
<polygon fill="none" stroke="#000000" points="52,-101 52,-121 88,-121 88,-101 52,-101"/>
|
||||
<text text-anchor="start" x="54.8413" y="-106.8" font-family="Times,serif" font-size="14.00" fill="#000000">value</text>
|
||||
<polygon fill="none" stroke="#000000" points="16,-81 16,-101 52,-101 52,-81 16,-81"/>
|
||||
<text text-anchor="start" x="26.2241" y="-86.8" font-family="Times,serif" font-size="14.00" fill="#000000">ptr</text>
|
||||
<polygon fill="none" stroke="#000000" points="52,-81 52,-101 88,-101 88,-81 52,-81"/>
|
||||
<polygon fill="none" stroke="#000000" points="16,-61 16,-81 52,-81 52,-61 16,-61"/>
|
||||
<text text-anchor="start" x="25.4482" y="-66.8" font-family="Times,serif" font-size="14.00" fill="#000000">len</text>
|
||||
<polygon fill="none" stroke="#000000" points="52,-61 52,-81 88,-81 88,-61 52,-61"/>
|
||||
<text text-anchor="start" x="66.5" y="-66.8" font-family="Times,serif" font-size="14.00" fill="#000000">5</text>
|
||||
<polyline fill="none" stroke="#000000" points="8,-124 80,-124 "/>
|
||||
<text text-anchor="start" x="41.2759" y="-129.8" font-family="Times,serif" font-size="14.00" fill="#000000">s</text>
|
||||
<polygon fill="none" stroke="#000000" points="8,-104 8,-124 44,-124 44,-104 8,-104"/>
|
||||
<text text-anchor="start" x="10.8413" y="-109.8" font-family="Times,serif" font-size="14.00" fill="#000000">name</text>
|
||||
<polygon fill="none" stroke="#000000" points="44,-104 44,-124 80,-124 80,-104 44,-104"/>
|
||||
<text text-anchor="start" x="46.8413" y="-109.8" font-family="Times,serif" font-size="14.00" fill="#000000">value</text>
|
||||
<polygon fill="none" stroke="#000000" points="8,-84 8,-104 44,-104 44,-84 8,-84"/>
|
||||
<text text-anchor="start" x="18.2241" y="-89.8" font-family="Times,serif" font-size="14.00" fill="#000000">ptr</text>
|
||||
<polygon fill="none" stroke="#000000" points="44,-84 44,-104 80,-104 80,-84 44,-84"/>
|
||||
</g>
|
||||
<!-- table4 -->
|
||||
<g id="node3" class="node">
|
||||
<title>table4</title>
|
||||
<polygon fill="none" stroke="#000000" points="148.5,-224 148.5,-244 185.5,-244 185.5,-224 148.5,-224"/>
|
||||
<text text-anchor="start" x="151.4482" y="-229.8" font-family="Times,serif" font-size="14.00" fill="#000000">index</text>
|
||||
<polygon fill="none" stroke="#000000" points="185.5,-224 185.5,-244 221.5,-244 221.5,-224 185.5,-224"/>
|
||||
<text text-anchor="start" x="188.3413" y="-229.8" font-family="Times,serif" font-size="14.00" fill="#000000">value</text>
|
||||
<polygon fill="none" stroke="#000000" points="148.5,-204 148.5,-224 185.5,-224 185.5,-204 148.5,-204"/>
|
||||
<text text-anchor="start" x="163.5" y="-209.8" font-family="Times,serif" font-size="14.00" fill="#000000">0</text>
|
||||
<polygon fill="none" stroke="#000000" points="185.5,-204 185.5,-224 221.5,-224 221.5,-204 185.5,-204"/>
|
||||
<text text-anchor="start" x="200" y="-209.8" font-family="Times,serif" font-size="14.00" fill="#000000">h</text>
|
||||
<polygon fill="none" stroke="#000000" points="148.5,-184 148.5,-204 185.5,-204 185.5,-184 148.5,-184"/>
|
||||
<text text-anchor="start" x="163.5" y="-189.8" font-family="Times,serif" font-size="14.00" fill="#000000">1</text>
|
||||
<polygon fill="none" stroke="#000000" points="185.5,-184 185.5,-204 221.5,-204 221.5,-184 185.5,-184"/>
|
||||
<text text-anchor="start" x="200.3931" y="-189.8" font-family="Times,serif" font-size="14.00" fill="#000000">e</text>
|
||||
<polygon fill="none" stroke="#000000" points="148.5,-164 148.5,-184 185.5,-184 185.5,-164 148.5,-164"/>
|
||||
<text text-anchor="start" x="163.5" y="-169.8" font-family="Times,serif" font-size="14.00" fill="#000000">2</text>
|
||||
<polygon fill="none" stroke="#000000" points="185.5,-164 185.5,-184 221.5,-184 221.5,-164 185.5,-164"/>
|
||||
<text text-anchor="start" x="201.5552" y="-169.8" font-family="Times,serif" font-size="14.00" fill="#000000">l</text>
|
||||
<polygon fill="none" stroke="#000000" points="148.5,-144 148.5,-164 185.5,-164 185.5,-144 148.5,-144"/>
|
||||
<text text-anchor="start" x="163.5" y="-149.8" font-family="Times,serif" font-size="14.00" fill="#000000">3</text>
|
||||
<polygon fill="none" stroke="#000000" points="185.5,-144 185.5,-164 221.5,-164 221.5,-144 185.5,-144"/>
|
||||
<text text-anchor="start" x="201.5552" y="-149.8" font-family="Times,serif" font-size="14.00" fill="#000000">l</text>
|
||||
<polygon fill="none" stroke="#000000" points="148.5,-124 148.5,-144 185.5,-144 185.5,-124 148.5,-124"/>
|
||||
<text text-anchor="start" x="163.5" y="-129.8" font-family="Times,serif" font-size="14.00" fill="#000000">4</text>
|
||||
<polygon fill="none" stroke="#000000" points="185.5,-124 185.5,-144 221.5,-144 221.5,-124 185.5,-124"/>
|
||||
<text text-anchor="start" x="200" y="-129.8" font-family="Times,serif" font-size="14.00" fill="#000000">o</text>
|
||||
<polygon fill="none" stroke="#000000" points="148.5,-104 148.5,-124 185.5,-124 185.5,-104 148.5,-104"/>
|
||||
<text text-anchor="start" x="163.5" y="-109.8" font-family="Times,serif" font-size="14.00" fill="#000000">5</text>
|
||||
<polygon fill="none" stroke="#000000" points="185.5,-104 185.5,-124 221.5,-124 221.5,-104 185.5,-104"/>
|
||||
<text text-anchor="start" x="201.75" y="-109.8" font-family="Times,serif" font-size="14.00" fill="#000000"> </text>
|
||||
<polygon fill="none" stroke="#000000" points="148.5,-84 148.5,-104 185.5,-104 185.5,-84 148.5,-84"/>
|
||||
<text text-anchor="start" x="163.5" y="-89.8" font-family="Times,serif" font-size="14.00" fill="#000000">6</text>
|
||||
<polygon fill="none" stroke="#000000" points="185.5,-84 185.5,-104 221.5,-104 221.5,-84 185.5,-84"/>
|
||||
<text text-anchor="start" x="198.4448" y="-89.8" font-family="Times,serif" font-size="14.00" fill="#000000">w</text>
|
||||
<polygon fill="none" stroke="#000000" points="148.5,-64 148.5,-84 185.5,-84 185.5,-64 148.5,-64"/>
|
||||
<text text-anchor="start" x="163.5" y="-69.8" font-family="Times,serif" font-size="14.00" fill="#000000">7</text>
|
||||
<polygon fill="none" stroke="#000000" points="185.5,-64 185.5,-84 221.5,-84 221.5,-64 185.5,-64"/>
|
||||
<text text-anchor="start" x="200" y="-69.8" font-family="Times,serif" font-size="14.00" fill="#000000">o</text>
|
||||
<polygon fill="none" stroke="#000000" points="148.5,-44 148.5,-64 185.5,-64 185.5,-44 148.5,-44"/>
|
||||
<text text-anchor="start" x="163.5" y="-49.8" font-family="Times,serif" font-size="14.00" fill="#000000">8</text>
|
||||
<polygon fill="none" stroke="#000000" points="185.5,-44 185.5,-64 221.5,-64 221.5,-44 185.5,-44"/>
|
||||
<text text-anchor="start" x="201.1689" y="-49.8" font-family="Times,serif" font-size="14.00" fill="#000000">r</text>
|
||||
<polygon fill="none" stroke="#000000" points="148.5,-24 148.5,-44 185.5,-44 185.5,-24 148.5,-24"/>
|
||||
<text text-anchor="start" x="163.5" y="-29.8" font-family="Times,serif" font-size="14.00" fill="#000000">9</text>
|
||||
<polygon fill="none" stroke="#000000" points="185.5,-24 185.5,-44 221.5,-44 221.5,-24 185.5,-24"/>
|
||||
<text text-anchor="start" x="201.5552" y="-29.8" font-family="Times,serif" font-size="14.00" fill="#000000">l</text>
|
||||
<polygon fill="none" stroke="#000000" points="148.5,-4 148.5,-24 185.5,-24 185.5,-4 148.5,-4"/>
|
||||
<text text-anchor="start" x="160" y="-9.8" font-family="Times,serif" font-size="14.00" fill="#000000">10</text>
|
||||
<polygon fill="none" stroke="#000000" points="185.5,-4 185.5,-24 221.5,-24 221.5,-4 185.5,-4"/>
|
||||
<text text-anchor="start" x="200" y="-9.8" font-family="Times,serif" font-size="14.00" fill="#000000">d</text>
|
||||
</g>
|
||||
<!-- table0->table4 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>table0:c->table4:pointee2</title>
|
||||
<path fill="none" stroke="#000000" d="M70,-91C70,-91 105.7964,-93.4639 138.4948,-93.9258"/>
|
||||
<polygon fill="#000000" stroke="#000000" points="138.4743,-97.4257 148.5,-94 138.5263,-90.4259 138.4743,-97.4257"/>
|
||||
</g>
|
||||
<!-- table3 -->
|
||||
<!-- table1 -->
|
||||
<g id="node2" class="node">
|
||||
<title>table3</title>
|
||||
<polyline fill="none" stroke="#000000" points="8,-247 96,-247 "/>
|
||||
<text text-anchor="start" x="49.2759" y="-252.8" font-family="Times,serif" font-size="14.00" fill="#000000">s</text>
|
||||
<polygon fill="none" stroke="#000000" points="8,-227 8,-247 60,-247 60,-227 8,-227"/>
|
||||
<text text-anchor="start" x="18.8413" y="-232.8" font-family="Times,serif" font-size="14.00" fill="#000000">name</text>
|
||||
<polygon fill="none" stroke="#000000" points="60,-227 60,-247 96,-247 96,-227 60,-227"/>
|
||||
<text text-anchor="start" x="62.8413" y="-232.8" font-family="Times,serif" font-size="14.00" fill="#000000">value</text>
|
||||
<polygon fill="none" stroke="#000000" points="8,-207 8,-227 60,-227 60,-207 8,-207"/>
|
||||
<text text-anchor="start" x="26.2241" y="-212.8" font-family="Times,serif" font-size="14.00" fill="#000000">ptr</text>
|
||||
<polygon fill="none" stroke="#000000" points="60,-207 60,-227 96,-227 96,-207 60,-207"/>
|
||||
<polygon fill="none" stroke="#000000" points="8,-187 8,-207 60,-207 60,-187 8,-187"/>
|
||||
<text text-anchor="start" x="25.4482" y="-192.8" font-family="Times,serif" font-size="14.00" fill="#000000">len</text>
|
||||
<polygon fill="none" stroke="#000000" points="60,-187 60,-207 96,-207 96,-187 60,-187"/>
|
||||
<text text-anchor="start" x="71.2563" y="-192.8" font-family="Times,serif" font-size="14.00" fill="#000000">11</text>
|
||||
<polygon fill="none" stroke="#000000" points="8,-167 8,-187 60,-187 60,-167 8,-167"/>
|
||||
<text text-anchor="start" x="10.6826" y="-172.8" font-family="Times,serif" font-size="14.00" fill="#000000">capacity</text>
|
||||
<polygon fill="none" stroke="#000000" points="60,-167 60,-187 96,-187 96,-167 60,-167"/>
|
||||
<text text-anchor="start" x="71.2563" y="-172.8" font-family="Times,serif" font-size="14.00" fill="#000000">11</text>
|
||||
<title>table1</title>
|
||||
<polyline fill="none" stroke="#000000" points="132,-124 220,-124 "/>
|
||||
<text text-anchor="start" x="169.7759" y="-129.8" font-family="Times,serif" font-size="14.00" fill="#000000">s1</text>
|
||||
<polygon fill="none" stroke="#000000" points="132,-104 132,-124 184,-124 184,-104 132,-104"/>
|
||||
<text text-anchor="start" x="142.8413" y="-109.8" font-family="Times,serif" font-size="14.00" fill="#000000">name</text>
|
||||
<polygon fill="none" stroke="#000000" points="184,-104 184,-124 220,-124 220,-104 184,-104"/>
|
||||
<text text-anchor="start" x="186.8413" y="-109.8" font-family="Times,serif" font-size="14.00" fill="#000000">value</text>
|
||||
<polygon fill="none" stroke="#000000" points="132,-84 132,-104 184,-104 184,-84 132,-84"/>
|
||||
<text text-anchor="start" x="150.2241" y="-89.8" font-family="Times,serif" font-size="14.00" fill="#000000">ptr</text>
|
||||
<polygon fill="none" stroke="#000000" points="184,-84 184,-104 220,-104 220,-84 184,-84"/>
|
||||
<polygon fill="none" stroke="#000000" points="132,-64 132,-84 184,-84 184,-64 132,-64"/>
|
||||
<text text-anchor="start" x="149.4482" y="-69.8" font-family="Times,serif" font-size="14.00" fill="#000000">len</text>
|
||||
<polygon fill="none" stroke="#000000" points="184,-64 184,-84 220,-84 220,-64 184,-64"/>
|
||||
<text text-anchor="start" x="198.5" y="-69.8" font-family="Times,serif" font-size="14.00" fill="#000000">5</text>
|
||||
<polygon fill="none" stroke="#000000" points="132,-44 132,-64 184,-64 184,-44 132,-44"/>
|
||||
<text text-anchor="start" x="134.6826" y="-49.8" font-family="Times,serif" font-size="14.00" fill="#000000">capacity</text>
|
||||
<polygon fill="none" stroke="#000000" points="184,-44 184,-64 220,-64 220,-44 184,-44"/>
|
||||
<text text-anchor="start" x="198.5" y="-49.8" font-family="Times,serif" font-size="14.00" fill="#000000">5</text>
|
||||
</g>
|
||||
<!-- table3->table4 -->
|
||||
<!-- table0->table1 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>table3:c->table4:pointee</title>
|
||||
<path fill="none" stroke="#000000" d="M78,-217C78,-217 109.3179,-214.5994 138.3725,-214.0931"/>
|
||||
<polygon fill="#000000" stroke="#000000" points="138.5326,-217.5918 148.5,-214 138.4682,-210.5921 138.5326,-217.5918"/>
|
||||
<title>table0:c->table1:borrowee</title>
|
||||
<path fill="none" stroke="#000000" d="M62,-94C62,-94 93.1184,-94 121.9514,-94"/>
|
||||
<polygon fill="#000000" stroke="#000000" points="122,-97.5001 132,-94 122,-90.5001 122,-97.5001"/>
|
||||
</g>
|
||||
<!-- table2 -->
|
||||
<g id="node3" class="node">
|
||||
<title>table2</title>
|
||||
<polygon fill="none" stroke="#000000" points="272.5,-104 272.5,-124 309.5,-124 309.5,-104 272.5,-104"/>
|
||||
<text text-anchor="start" x="275.4482" y="-109.8" font-family="Times,serif" font-size="14.00" fill="#000000">index</text>
|
||||
<polygon fill="none" stroke="#000000" points="309.5,-104 309.5,-124 345.5,-124 345.5,-104 309.5,-104"/>
|
||||
<text text-anchor="start" x="312.3413" y="-109.8" font-family="Times,serif" font-size="14.00" fill="#000000">value</text>
|
||||
<polygon fill="none" stroke="#000000" points="272.5,-84 272.5,-104 309.5,-104 309.5,-84 272.5,-84"/>
|
||||
<text text-anchor="start" x="287.5" y="-89.8" font-family="Times,serif" font-size="14.00" fill="#000000">0</text>
|
||||
<polygon fill="none" stroke="#000000" points="309.5,-84 309.5,-104 345.5,-104 345.5,-84 309.5,-84"/>
|
||||
<text text-anchor="start" x="324" y="-89.8" font-family="Times,serif" font-size="14.00" fill="#000000">h</text>
|
||||
<polygon fill="none" stroke="#000000" points="272.5,-64 272.5,-84 309.5,-84 309.5,-64 272.5,-64"/>
|
||||
<text text-anchor="start" x="287.5" y="-69.8" font-family="Times,serif" font-size="14.00" fill="#000000">1</text>
|
||||
<polygon fill="none" stroke="#000000" points="309.5,-64 309.5,-84 345.5,-84 345.5,-64 309.5,-64"/>
|
||||
<text text-anchor="start" x="324.3931" y="-69.8" font-family="Times,serif" font-size="14.00" fill="#000000">e</text>
|
||||
<polygon fill="none" stroke="#000000" points="272.5,-44 272.5,-64 309.5,-64 309.5,-44 272.5,-44"/>
|
||||
<text text-anchor="start" x="287.5" y="-49.8" font-family="Times,serif" font-size="14.00" fill="#000000">2</text>
|
||||
<polygon fill="none" stroke="#000000" points="309.5,-44 309.5,-64 345.5,-64 345.5,-44 309.5,-44"/>
|
||||
<text text-anchor="start" x="325.5552" y="-49.8" font-family="Times,serif" font-size="14.00" fill="#000000">l</text>
|
||||
<polygon fill="none" stroke="#000000" points="272.5,-24 272.5,-44 309.5,-44 309.5,-24 272.5,-24"/>
|
||||
<text text-anchor="start" x="287.5" y="-29.8" font-family="Times,serif" font-size="14.00" fill="#000000">3</text>
|
||||
<polygon fill="none" stroke="#000000" points="309.5,-24 309.5,-44 345.5,-44 345.5,-24 309.5,-24"/>
|
||||
<text text-anchor="start" x="325.5552" y="-29.8" font-family="Times,serif" font-size="14.00" fill="#000000">l</text>
|
||||
<polygon fill="none" stroke="#000000" points="272.5,-4 272.5,-24 309.5,-24 309.5,-4 272.5,-4"/>
|
||||
<text text-anchor="start" x="287.5" y="-9.8" font-family="Times,serif" font-size="14.00" fill="#000000">4</text>
|
||||
<polygon fill="none" stroke="#000000" points="309.5,-4 309.5,-24 345.5,-24 345.5,-4 309.5,-4"/>
|
||||
<text text-anchor="start" x="324" y="-9.8" font-family="Times,serif" font-size="14.00" fill="#000000">o</text>
|
||||
</g>
|
||||
<!-- table1->table2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>table1:c->table2:pointee</title>
|
||||
<path fill="none" stroke="#000000" d="M202,-94C202,-94 233.3406,-94 262.3797,-94"/>
|
||||
<polygon fill="#000000" stroke="#000000" points="262.5,-97.5001 272.5,-94 262.5,-90.5001 262.5,-97.5001"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 6.4 KiB |
@@ -0,0 +1,115 @@
|
||||
<?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.40.1 (20161225.0304)
|
||||
-->
|
||||
<!-- Title: %3 Pages: 1 -->
|
||||
<svg
|
||||
viewBox="0.00 0.00 1000.00 1279.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g id="graph0" class="graph" transform="scale(4.1667 4.1667) rotate(0) translate(4 275)">
|
||||
<title>%3</title>
|
||||
<polygon fill="#ffffff" stroke="transparent" points="-4,4 -4,-275 233,-275 233,4 -4,4"/>
|
||||
<!-- table0 -->
|
||||
<g id="node1" class="node">
|
||||
<title>table0</title>
|
||||
<polyline fill="none" stroke="#000000" points="16,-121 88,-121 "/>
|
||||
<text text-anchor="start" x="35.6689" y="-126.8" font-family="Times,serif" font-size="14.00" fill="#000000">world</text>
|
||||
<polygon fill="none" stroke="#000000" points="16,-101 16,-121 52,-121 52,-101 16,-101"/>
|
||||
<text text-anchor="start" x="18.8413" y="-106.8" font-family="Times,serif" font-size="14.00" fill="#000000">name</text>
|
||||
<polygon fill="none" stroke="#000000" points="52,-101 52,-121 88,-121 88,-101 52,-101"/>
|
||||
<text text-anchor="start" x="54.8413" y="-106.8" font-family="Times,serif" font-size="14.00" fill="#000000">value</text>
|
||||
<polygon fill="none" stroke="#000000" points="16,-81 16,-101 52,-101 52,-81 16,-81"/>
|
||||
<text text-anchor="start" x="26.2241" y="-86.8" font-family="Times,serif" font-size="14.00" fill="#000000">ptr</text>
|
||||
<polygon fill="none" stroke="#000000" points="52,-81 52,-101 88,-101 88,-81 52,-81"/>
|
||||
<polygon fill="none" stroke="#000000" points="16,-61 16,-81 52,-81 52,-61 16,-61"/>
|
||||
<text text-anchor="start" x="25.4482" y="-66.8" font-family="Times,serif" font-size="14.00" fill="#000000">len</text>
|
||||
<polygon fill="none" stroke="#000000" points="52,-61 52,-81 88,-81 88,-61 52,-61"/>
|
||||
<text text-anchor="start" x="66.5" y="-66.8" font-family="Times,serif" font-size="14.00" fill="#000000">5</text>
|
||||
</g>
|
||||
<!-- table4 -->
|
||||
<g id="node3" class="node">
|
||||
<title>table4</title>
|
||||
<polygon fill="none" stroke="#000000" points="148.5,-224 148.5,-244 185.5,-244 185.5,-224 148.5,-224"/>
|
||||
<text text-anchor="start" x="151.4482" y="-229.8" font-family="Times,serif" font-size="14.00" fill="#000000">index</text>
|
||||
<polygon fill="none" stroke="#000000" points="185.5,-224 185.5,-244 221.5,-244 221.5,-224 185.5,-224"/>
|
||||
<text text-anchor="start" x="188.3413" y="-229.8" font-family="Times,serif" font-size="14.00" fill="#000000">value</text>
|
||||
<polygon fill="none" stroke="#000000" points="148.5,-204 148.5,-224 185.5,-224 185.5,-204 148.5,-204"/>
|
||||
<text text-anchor="start" x="163.5" y="-209.8" font-family="Times,serif" font-size="14.00" fill="#000000">0</text>
|
||||
<polygon fill="none" stroke="#000000" points="185.5,-204 185.5,-224 221.5,-224 221.5,-204 185.5,-204"/>
|
||||
<text text-anchor="start" x="200" y="-209.8" font-family="Times,serif" font-size="14.00" fill="#000000">h</text>
|
||||
<polygon fill="none" stroke="#000000" points="148.5,-184 148.5,-204 185.5,-204 185.5,-184 148.5,-184"/>
|
||||
<text text-anchor="start" x="163.5" y="-189.8" font-family="Times,serif" font-size="14.00" fill="#000000">1</text>
|
||||
<polygon fill="none" stroke="#000000" points="185.5,-184 185.5,-204 221.5,-204 221.5,-184 185.5,-184"/>
|
||||
<text text-anchor="start" x="200.3931" y="-189.8" font-family="Times,serif" font-size="14.00" fill="#000000">e</text>
|
||||
<polygon fill="none" stroke="#000000" points="148.5,-164 148.5,-184 185.5,-184 185.5,-164 148.5,-164"/>
|
||||
<text text-anchor="start" x="163.5" y="-169.8" font-family="Times,serif" font-size="14.00" fill="#000000">2</text>
|
||||
<polygon fill="none" stroke="#000000" points="185.5,-164 185.5,-184 221.5,-184 221.5,-164 185.5,-164"/>
|
||||
<text text-anchor="start" x="201.5552" y="-169.8" font-family="Times,serif" font-size="14.00" fill="#000000">l</text>
|
||||
<polygon fill="none" stroke="#000000" points="148.5,-144 148.5,-164 185.5,-164 185.5,-144 148.5,-144"/>
|
||||
<text text-anchor="start" x="163.5" y="-149.8" font-family="Times,serif" font-size="14.00" fill="#000000">3</text>
|
||||
<polygon fill="none" stroke="#000000" points="185.5,-144 185.5,-164 221.5,-164 221.5,-144 185.5,-144"/>
|
||||
<text text-anchor="start" x="201.5552" y="-149.8" font-family="Times,serif" font-size="14.00" fill="#000000">l</text>
|
||||
<polygon fill="none" stroke="#000000" points="148.5,-124 148.5,-144 185.5,-144 185.5,-124 148.5,-124"/>
|
||||
<text text-anchor="start" x="163.5" y="-129.8" font-family="Times,serif" font-size="14.00" fill="#000000">4</text>
|
||||
<polygon fill="none" stroke="#000000" points="185.5,-124 185.5,-144 221.5,-144 221.5,-124 185.5,-124"/>
|
||||
<text text-anchor="start" x="200" y="-129.8" font-family="Times,serif" font-size="14.00" fill="#000000">o</text>
|
||||
<polygon fill="none" stroke="#000000" points="148.5,-104 148.5,-124 185.5,-124 185.5,-104 148.5,-104"/>
|
||||
<text text-anchor="start" x="163.5" y="-109.8" font-family="Times,serif" font-size="14.00" fill="#000000">5</text>
|
||||
<polygon fill="none" stroke="#000000" points="185.5,-104 185.5,-124 221.5,-124 221.5,-104 185.5,-104"/>
|
||||
<text text-anchor="start" x="201.75" y="-109.8" font-family="Times,serif" font-size="14.00" fill="#000000"> </text>
|
||||
<polygon fill="none" stroke="#000000" points="148.5,-84 148.5,-104 185.5,-104 185.5,-84 148.5,-84"/>
|
||||
<text text-anchor="start" x="163.5" y="-89.8" font-family="Times,serif" font-size="14.00" fill="#000000">6</text>
|
||||
<polygon fill="none" stroke="#000000" points="185.5,-84 185.5,-104 221.5,-104 221.5,-84 185.5,-84"/>
|
||||
<text text-anchor="start" x="198.4448" y="-89.8" font-family="Times,serif" font-size="14.00" fill="#000000">w</text>
|
||||
<polygon fill="none" stroke="#000000" points="148.5,-64 148.5,-84 185.5,-84 185.5,-64 148.5,-64"/>
|
||||
<text text-anchor="start" x="163.5" y="-69.8" font-family="Times,serif" font-size="14.00" fill="#000000">7</text>
|
||||
<polygon fill="none" stroke="#000000" points="185.5,-64 185.5,-84 221.5,-84 221.5,-64 185.5,-64"/>
|
||||
<text text-anchor="start" x="200" y="-69.8" font-family="Times,serif" font-size="14.00" fill="#000000">o</text>
|
||||
<polygon fill="none" stroke="#000000" points="148.5,-44 148.5,-64 185.5,-64 185.5,-44 148.5,-44"/>
|
||||
<text text-anchor="start" x="163.5" y="-49.8" font-family="Times,serif" font-size="14.00" fill="#000000">8</text>
|
||||
<polygon fill="none" stroke="#000000" points="185.5,-44 185.5,-64 221.5,-64 221.5,-44 185.5,-44"/>
|
||||
<text text-anchor="start" x="201.1689" y="-49.8" font-family="Times,serif" font-size="14.00" fill="#000000">r</text>
|
||||
<polygon fill="none" stroke="#000000" points="148.5,-24 148.5,-44 185.5,-44 185.5,-24 148.5,-24"/>
|
||||
<text text-anchor="start" x="163.5" y="-29.8" font-family="Times,serif" font-size="14.00" fill="#000000">9</text>
|
||||
<polygon fill="none" stroke="#000000" points="185.5,-24 185.5,-44 221.5,-44 221.5,-24 185.5,-24"/>
|
||||
<text text-anchor="start" x="201.5552" y="-29.8" font-family="Times,serif" font-size="14.00" fill="#000000">l</text>
|
||||
<polygon fill="none" stroke="#000000" points="148.5,-4 148.5,-24 185.5,-24 185.5,-4 148.5,-4"/>
|
||||
<text text-anchor="start" x="160" y="-9.8" font-family="Times,serif" font-size="14.00" fill="#000000">10</text>
|
||||
<polygon fill="none" stroke="#000000" points="185.5,-4 185.5,-24 221.5,-24 221.5,-4 185.5,-4"/>
|
||||
<text text-anchor="start" x="200" y="-9.8" font-family="Times,serif" font-size="14.00" fill="#000000">d</text>
|
||||
</g>
|
||||
<!-- table0->table4 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>table0:c->table4:pointee2</title>
|
||||
<path fill="none" stroke="#000000" d="M70,-91C70,-91 105.7964,-93.4639 138.4948,-93.9258"/>
|
||||
<polygon fill="#000000" stroke="#000000" points="138.4743,-97.4257 148.5,-94 138.5263,-90.4259 138.4743,-97.4257"/>
|
||||
</g>
|
||||
<!-- table3 -->
|
||||
<g id="node2" class="node">
|
||||
<title>table3</title>
|
||||
<polyline fill="none" stroke="#000000" points="8,-247 96,-247 "/>
|
||||
<text text-anchor="start" x="49.2759" y="-252.8" font-family="Times,serif" font-size="14.00" fill="#000000">s</text>
|
||||
<polygon fill="none" stroke="#000000" points="8,-227 8,-247 60,-247 60,-227 8,-227"/>
|
||||
<text text-anchor="start" x="18.8413" y="-232.8" font-family="Times,serif" font-size="14.00" fill="#000000">name</text>
|
||||
<polygon fill="none" stroke="#000000" points="60,-227 60,-247 96,-247 96,-227 60,-227"/>
|
||||
<text text-anchor="start" x="62.8413" y="-232.8" font-family="Times,serif" font-size="14.00" fill="#000000">value</text>
|
||||
<polygon fill="none" stroke="#000000" points="8,-207 8,-227 60,-227 60,-207 8,-207"/>
|
||||
<text text-anchor="start" x="26.2241" y="-212.8" font-family="Times,serif" font-size="14.00" fill="#000000">ptr</text>
|
||||
<polygon fill="none" stroke="#000000" points="60,-207 60,-227 96,-227 96,-207 60,-207"/>
|
||||
<polygon fill="none" stroke="#000000" points="8,-187 8,-207 60,-207 60,-187 8,-187"/>
|
||||
<text text-anchor="start" x="25.4482" y="-192.8" font-family="Times,serif" font-size="14.00" fill="#000000">len</text>
|
||||
<polygon fill="none" stroke="#000000" points="60,-187 60,-207 96,-207 96,-187 60,-187"/>
|
||||
<text text-anchor="start" x="71.2563" y="-192.8" font-family="Times,serif" font-size="14.00" fill="#000000">11</text>
|
||||
<polygon fill="none" stroke="#000000" points="8,-167 8,-187 60,-187 60,-167 8,-167"/>
|
||||
<text text-anchor="start" x="10.6826" y="-172.8" font-family="Times,serif" font-size="14.00" fill="#000000">capacity</text>
|
||||
<polygon fill="none" stroke="#000000" points="60,-167 60,-187 96,-187 96,-167 60,-167"/>
|
||||
<text text-anchor="start" x="71.2563" y="-172.8" font-family="Times,serif" font-size="14.00" fill="#000000">11</text>
|
||||
</g>
|
||||
<!-- table3->table4 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>table3:c->table4:pointee</title>
|
||||
<path fill="none" stroke="#000000" d="M78,-217C78,-217 109.3179,-214.5994 138.3725,-214.0931"/>
|
||||
<polygon fill="#000000" stroke="#000000" points="138.5326,-217.5918 148.5,-214 138.4682,-210.5921 138.5326,-217.5918"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 9.4 KiB |
Reference in New Issue
Block a user