Switched test case diagrams from png to svg for better versioning

This commit is contained in:
Bartek Kryza
2022-02-25 11:16:40 +01:00
parent 4acb8f98c1
commit 7f8fe89f99
137 changed files with 3002 additions and 62 deletions

View File

@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentScriptType="application/ecmascript" contentStyleType="text/css" height="390px" preserveAspectRatio="none" style="width:570px;height:390px;" version="1.1" viewBox="0 0 570 390" width="570px" zoomAndPan="magnify"><defs><filter height="300%" id="fo8bq1xymci56" width="300%" x="-1" y="-1"><feGaussianBlur result="blurOut" stdDeviation="2.0"/><feColorMatrix in="blurOut" result="blurOut2" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .4 0"/><feOffset dx="4.0" dy="4.0" in="blurOut2" result="blurOut3"/><feBlend in="SourceGraphic" in2="blurOut3" mode="normal"/></filter></defs><g><!--MD5=[2ca312ef9848e029803de3c2826ecc91]
class C_0000000131--><rect fill="#FEFECE" filter="url(#fo8bq1xymci56)" height="124.8281" id="C_0000000131" style="stroke: #A80036; stroke-width: 1.5;" width="161" x="6" y="8"/><ellipse cx="37.65" cy="24" fill="#ADD1B2" rx="11" ry="11" style="stroke: #A80036; stroke-width: 1.0;"/><path d="M40.6188,29.6406 Q40.0406,29.9375 39.4,30.0781 Q38.7594,30.2344 38.0563,30.2344 Q35.5563,30.2344 34.2281,28.5938 Q32.9156,26.9375 32.9156,23.8125 Q32.9156,20.6875 34.2281,19.0313 Q35.5563,17.375 38.0563,17.375 Q38.7594,17.375 39.4,17.5313 Q40.0563,17.6875 40.6188,17.9844 L40.6188,20.7031 Q39.9938,20.125 39.4,19.8594 Q38.8063,19.5781 38.1813,19.5781 Q36.8375,19.5781 36.15,20.6563 Q35.4625,21.7188 35.4625,23.8125 Q35.4625,25.9063 36.15,26.9844 Q36.8375,28.0469 38.1813,28.0469 Q38.8063,28.0469 39.4,27.7813 Q39.9938,27.5 40.6188,26.9219 L40.6188,29.6406 Z "/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="8" x="55.35" y="28.1543">A</text><rect fill="#FFFFFF" height="15.9688" style="stroke: #000000; stroke-width: 1.0; stroke-dasharray: 2.0,2.0;" width="82" x="88" y="5"/><text fill="#000000" font-family="sans-serif" font-size="12" font-style="italic" lengthAdjust="spacingAndGlyphs" textLength="80" x="89" y="17.1387">T,P,CMP,int N</text><line style="stroke: #A80036; stroke-width: 1.5;" x1="7" x2="166" y1="40" y2="40"/><ellipse cx="17" cy="51" fill="none" rx="3" ry="3" style="stroke: #038048; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="49" x="26" y="54.2104">value : T</text><ellipse cx="17" cy="63.8047" fill="none" rx="3" ry="3" style="stroke: #038048; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="65" x="26" y="67.0151">pointer : T*</text><ellipse cx="17" cy="76.6094" fill="none" rx="3" ry="3" style="stroke: #038048; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="84" x="26" y="79.8198">reference : T&amp;</text><ellipse cx="17" cy="89.4141" fill="none" rx="3" ry="3" style="stroke: #038048; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="135" x="26" y="92.6245">values : std::vector&lt;P&gt;</text><ellipse cx="17" cy="102.2188" fill="none" rx="3" ry="3" style="stroke: #038048; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="133" x="26" y="105.4292">ints : std::array&lt;int,N&gt;</text><ellipse cx="17" cy="115.0234" fill="none" rx="3" ry="3" style="stroke: #038048; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="102" x="26" y="118.2339">comparator : CMP</text><line style="stroke: #A80036; stroke-width: 1.5;" x1="7" x2="166" y1="124.8281" y2="124.8281"/><!--MD5=[1dbbf3e582f8d487bcff7565ec2dd2b8]
class C_0000000137--><rect fill="#FEFECE" filter="url(#fo8bq1xymci56)" height="60.8047" id="C_0000000137" style="stroke: #A80036; stroke-width: 1.5;" width="161" x="202" y="40"/><ellipse cx="252.25" cy="56" fill="#ADD1B2" rx="11" ry="11" style="stroke: #A80036; stroke-width: 1.0;"/><path d="M255.2188,61.6406 Q254.6406,61.9375 254,62.0781 Q253.3594,62.2344 252.6563,62.2344 Q250.1563,62.2344 248.8281,60.5938 Q247.5156,58.9375 247.5156,55.8125 Q247.5156,52.6875 248.8281,51.0313 Q250.1563,49.375 252.6563,49.375 Q253.3594,49.375 254,49.5313 Q254.6563,49.6875 255.2188,49.9844 L255.2188,52.7031 Q254.5938,52.125 254,51.8594 Q253.4063,51.5781 252.7813,51.5781 Q251.4375,51.5781 250.75,52.6563 Q250.0625,53.7188 250.0625,55.8125 Q250.0625,57.9063 250.75,58.9844 Q251.4375,60.0469 252.7813,60.0469 Q253.4063,60.0469 254,59.7813 Q254.5938,59.5 255.2188,58.9219 L255.2188,61.6406 Z "/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="41" x="272.75" y="60.1543">Vector</text><rect fill="#FFFFFF" height="15.9688" style="stroke: #000000; stroke-width: 1.0; stroke-dasharray: 2.0,2.0;" width="9" x="357" y="37"/><text fill="#000000" font-family="sans-serif" font-size="12" font-style="italic" lengthAdjust="spacingAndGlyphs" textLength="7" x="358" y="49.1387">T</text><line style="stroke: #A80036; stroke-width: 1.5;" x1="203" x2="362" y1="72" y2="72"/><ellipse cx="213" cy="83" fill="none" rx="3" ry="3" style="stroke: #038048; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="135" x="222" y="86.2104">values : std::vector&lt;T&gt;</text><line style="stroke: #A80036; stroke-width: 1.5;" x1="203" x2="362" y1="92.8047" y2="92.8047"/><!--MD5=[071b15036a69ef490329618fd161cba5]
class C_0000000141--><rect fill="#FEFECE" filter="url(#fo8bq1xymci56)" height="60.8047" id="C_0000000141" style="stroke: #A80036; stroke-width: 1.5;" width="177" x="379" y="319"/><ellipse cx="437.75" cy="335" fill="#ADD1B2" rx="11" ry="11" style="stroke: #A80036; stroke-width: 1.0;"/><path d="M440.7188,340.6406 Q440.1406,340.9375 439.5,341.0781 Q438.8594,341.2344 438.1563,341.2344 Q435.6563,341.2344 434.3281,339.5938 Q433.0156,337.9375 433.0156,334.8125 Q433.0156,331.6875 434.3281,330.0313 Q435.6563,328.375 438.1563,328.375 Q438.8594,328.375 439.5,328.5313 Q440.1563,328.6875 440.7188,328.9844 L440.7188,331.7031 Q440.0938,331.125 439.5,330.8594 Q438.9063,330.5781 438.2813,330.5781 Q436.9375,330.5781 436.25,331.6563 Q435.5625,332.7188 435.5625,334.8125 Q435.5625,336.9063 436.25,337.9844 Q436.9375,339.0469 438.2813,339.0469 Q438.9063,339.0469 439.5,338.7813 Q440.0938,338.5 440.7188,337.9219 L440.7188,340.6406 Z "/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="8" x="458.25" y="339.1543">B</text><rect fill="#FFFFFF" height="15.9688" style="stroke: #000000; stroke-width: 1.0; stroke-dasharray: 2.0,2.0;" width="41" x="518" y="316"/><text fill="#000000" font-family="sans-serif" font-size="12" font-style="italic" lengthAdjust="spacingAndGlyphs" textLength="39" x="519" y="328.1387">T,C&lt;&gt;</text><line style="stroke: #A80036; stroke-width: 1.5;" x1="380" x2="555" y1="351" y2="351"/><ellipse cx="390" cy="362" fill="none" rx="3" ry="3" style="stroke: #038048; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="151" x="399" y="365.2104">template_template : C&lt;T&gt;</text><line style="stroke: #A80036; stroke-width: 1.5;" x1="380" x2="555" y1="371.8047" y2="371.8047"/><!--MD5=[0b56b27b9d4b9cd463fc14fead9dccee]
class C_0000000144--><rect fill="#FEFECE" filter="url(#fo8bq1xymci56)" height="48" id="C_0000000144" style="stroke: #A80036; stroke-width: 1.5;" width="105" x="415" y="210"/><ellipse cx="430" cy="226" fill="#ADD1B2" rx="11" ry="11" style="stroke: #A80036; stroke-width: 1.0;"/><path d="M432.9688,231.6406 Q432.3906,231.9375 431.75,232.0781 Q431.1094,232.2344 430.4063,232.2344 Q427.9063,232.2344 426.5781,230.5938 Q425.2656,228.9375 425.2656,225.8125 Q425.2656,222.6875 426.5781,221.0313 Q427.9063,219.375 430.4063,219.375 Q431.1094,219.375 431.75,219.5313 Q432.4063,219.6875 432.9688,219.9844 L432.9688,222.7031 Q432.3438,222.125 431.75,221.8594 Q431.1563,221.5781 430.5313,221.5781 Q429.1875,221.5781 428.5,222.6563 Q427.8125,223.7188 427.8125,225.8125 Q427.8125,227.9063 428.5,228.9844 Q429.1875,230.0469 430.5313,230.0469 Q431.1563,230.0469 431.75,229.7813 Q432.3438,229.5 432.9688,228.9219 L432.9688,231.6406 Z "/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="8" x="444" y="230.1543">B</text><rect fill="#FFFFFF" height="15.9688" style="stroke: #000000; stroke-width: 1.0; stroke-dasharray: 2.0,2.0;" width="63" x="460" y="207"/><text fill="#000000" font-family="sans-serif" font-size="12" font-style="italic" lengthAdjust="spacingAndGlyphs" textLength="61" x="461" y="219.1387">int,Vector</text><line style="stroke: #A80036; stroke-width: 1.5;" x1="416" x2="519" y1="242" y2="242"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="416" x2="519" y1="250" y2="250"/><!--MD5=[1c04b6e137c1d1f6cf459cccb450a1ef]
class C_0000000143--><rect fill="#FEFECE" filter="url(#fo8bq1xymci56)" height="73.6094" id="C_0000000143" style="stroke: #A80036; stroke-width: 1.5;" width="139" x="398" y="33.5"/><ellipse cx="458.75" cy="49.5" fill="#ADD1B2" rx="11" ry="11" style="stroke: #A80036; stroke-width: 1.0;"/><path d="M461.7188,55.1406 Q461.1406,55.4375 460.5,55.5781 Q459.8594,55.7344 459.1563,55.7344 Q456.6563,55.7344 455.3281,54.0938 Q454.0156,52.4375 454.0156,49.3125 Q454.0156,46.1875 455.3281,44.5313 Q456.6563,42.875 459.1563,42.875 Q459.8594,42.875 460.5,43.0313 Q461.1563,43.1875 461.7188,43.4844 L461.7188,46.2031 Q461.0938,45.625 460.5,45.3594 Q459.9063,45.0781 459.2813,45.0781 Q457.9375,45.0781 457.25,46.1563 Q456.5625,47.2188 456.5625,49.3125 Q456.5625,51.4063 457.25,52.4844 Q457.9375,53.5469 459.2813,53.5469 Q459.9063,53.5469 460.5,53.2813 Q461.0938,53 461.7188,52.4219 L461.7188,55.1406 Z "/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="9" x="479.25" y="53.6543">D</text><line style="stroke: #A80036; stroke-width: 1.5;" x1="399" x2="536" y1="65.5" y2="65.5"/><ellipse cx="409" cy="76.5" fill="none" rx="3" ry="3" style="stroke: #038048; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="113" x="418" y="79.7104">ints : B&lt;int,Vector&gt;</text><line style="stroke: #A80036; stroke-width: 1.5;" x1="399" x2="536" y1="86.3047" y2="86.3047"/><ellipse cx="409" cy="97.3047" fill="#84BE84" rx="3" ry="3" style="stroke: #038048; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="85" x="418" y="100.5151">add(int i) : void</text><!--MD5=[ceae661e760e07c792eed7b63068a4e4]
link C_0000000144 to C_0000000141--><path d="M467.5,258.24 C467.5,269.87 467.5,284.42 467.5,298.43 " fill="none" id="C_0000000144-&gt;C_0000000141" style="stroke: #A80036; stroke-width: 1.0; stroke-dasharray: 7.0,7.0;"/><polygon fill="none" points="474.5,298.81,467.5,318.81,460.5,298.81,474.5,298.81" style="stroke: #A80036; stroke-width: 1.0;"/><!--MD5=[748277e14ff6417fe76918e3a1fedd3a]
reverse link C_0000000143 to C_0000000144--><path d="M467.5,120.81 C467.5,150.42 467.5,186.71 467.5,209.85 " fill="none" id="C_0000000143&lt;-C_0000000144" style="stroke: #A80036; stroke-width: 1.0;"/><polygon fill="#FFFFFF" points="467.5,107.74,463.5,113.74,467.5,119.74,471.5,113.74,467.5,107.74" style="stroke: #A80036; stroke-width: 1.0;"/><ellipse cx="473.5" cy="172.0664" fill="none" rx="3" ry="3" style="stroke: #038048; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacingAndGlyphs" textLength="23" x="480.5" y="176.0669">ints</text><!--MD5=[c41bdcacab38c0338d14f8a0a2da1e48]
@startuml
class "A<T,P,CMP,int N>" as C_0000000131
class C_0000000131 {
+value : T
+pointer : T*
+reference : T&
+values : std::vector<P>
+ints : std::array<int,N>
+comparator : CMP
}
class "Vector<T>" as C_0000000137
class C_0000000137 {
+values : std::vector<T>
}
class "B<T,C<>>" as C_0000000141
class C_0000000141 {
+template_template : C<T>
}
class "B<int,Vector>" as C_0000000144
class C_0000000144 {
}
class "D" as C_0000000143
class C_0000000143 {
+add(int i) : void
+ints : B<int,Vector>
}
C_0000000144 ..|> C_0000000141
C_0000000143 o- - C_0000000144 : +ints
@enduml
PlantUML version 1.2020.02(Sun Mar 01 11:22:07 CET 2020)
(GPL source distribution)
Java Runtime: OpenJDK Runtime Environment
JVM: OpenJDK 64-Bit Server VM
Java Version: 11.0.13+8-Ubuntu-0ubuntu1.21.10
Operating System: Linux
Default Encoding: UTF-8
Language: pl
Country: PL
--></g></svg>

After

Width:  |  Height:  |  Size: 12 KiB