This repository has been archived by the owner on Sep 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
/
layout.dot
45 lines (39 loc) · 1.74 KB
/
layout.dot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
digraph {
rankdir=LR;
overlap=false;
node [shape="plaintext"];
hashmap[label=<<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0" VALIGN="TOP">
<TR><TD COLSPAN="2" SIDES="B">HashMap</TD></TR>
<TR><TD>buckets</TD><TD PORT="to_buckets"></TD></TR>
<TR><TD>len</TD><TD>4</TD></TR>
</TABLE>>];
buckets[label=<<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
<TR><TD COLSPAN="2" SIDES="B">Vec<Bucket></TD></TR>
<TR><TD PORT="from_hashmap">index</TD><TD>ptr</TD></TR>
<TR><TD>0</TD><TD PORT="to_vec0"></TD></TR>
<TR><TD>1</TD><TD PORT="to_vec1"></TD></TR>
<TR><TD>2</TD><TD PORT="to_vec2"></TD></TR>
<TR><TD>3</TD><TD></TD></TR>
</TABLE>>];
vec0[label=<<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
<TR><TD COLSPAN="2" SIDES="B">Bucket<K, V></TD></TR>
<TR><TD PORT="from_buckets">index</TD><TD>pair</TD></TR>
<TR><TD>0</TD><TD>John, blue</TD></TR>
<TR><TD>1</TD><TD>Bob, green</TD></TR>
</TABLE>>];
vec1[label=<<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
<TR><TD COLSPAN="2" SIDES="B">Bucket<K, V></TD></TR>
<TR><TD PORT="from_buckets">index</TD><TD>pair</TD></TR>
<TR><TD>0</TD><TD>Alice, red</TD></TR>
</TABLE>>];
vec2[label=<<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
<TR><TD COLSPAN="2" SIDES="B">Bucket<K, V></TD></TR>
<TR><TD PORT="from_buckets">index</TD><TD>pair</TD></TR>
<TR><TD>0</TD><TD>Eve, black</TD></TR>
</TABLE>>];
edge[tailclip="false"];
hashmap:to_buckets:c -> buckets:from_hashmap;
buckets:to_vec0:c -> vec0:from_buckets;
buckets:to_vec1:c -> vec1:from_buckets;
buckets:to_vec2:c -> vec2:from_buckets;
}