From 109a59533fb31b00aea20eb350d39852cc1ea8be Mon Sep 17 00:00:00 2001 From: Bartek Kryza Date: Sun, 20 Mar 2022 23:01:51 +0100 Subject: [PATCH] Updated test cases documentation --- docs/test_cases/t00002_class.svg | 160 +++++++++---- docs/test_cases/t00003_class.svg | 248 +++++++++++++++----- docs/test_cases/t00004_class.svg | 82 ++++--- docs/test_cases/t00005_class.svg | 303 +++++++++++++++--------- docs/test_cases/t00006_class.svg | 382 ++++++++++++++++++++----------- docs/test_cases/t00007_class.svg | 83 ++++--- docs/test_cases/t00008_class.svg | 154 +++++++++---- docs/test_cases/t00009_class.svg | 72 ++++-- docs/test_cases/t00010_class.svg | 86 ++++--- docs/test_cases/t00011_class.svg | 80 ++++--- docs/test_cases/t00012_class.svg | 159 ++++++++----- docs/test_cases/t00013_class.svg | 271 +++++++++++++++------- docs/test_cases/t00014_class.svg | 155 +++++++++---- docs/test_cases/t00015_class.svg | 72 +++--- docs/test_cases/t00016_class.svg | 108 +++++---- docs/test_cases/t00017_class.svg | 213 ++++++++++------- docs/test_cases/t00018_class.svg | 152 ++++++++---- docs/test_cases/t00019_class.svg | 212 +++++++++++------ docs/test_cases/t00020_class.svg | 254 +++++++++++++------- docs/test_cases/t00021_class.svg | 217 ++++++++++++------ docs/test_cases/t00022_class.svg | 107 ++++++--- docs/test_cases/t00023_class.svg | 142 ++++++++---- docs/test_cases/t00024_class.svg | 155 +++++++++---- docs/test_cases/t00025_class.svg | 152 ++++++++---- docs/test_cases/t00026_class.svg | 192 +++++++++++----- docs/test_cases/t00027_class.svg | 221 ++++++++++++------ docs/test_cases/t00028_class.svg | 220 +++++++++++------- docs/test_cases/t00029_class.svg | 156 ++++++++----- docs/test_cases/t00030_class.svg | 106 ++++++--- docs/test_cases/t00031_class.svg | 133 +++++++---- docs/test_cases/t00032_class.svg | 147 +++++++----- docs/test_cases/t00033_class.svg | 125 ++++++---- docs/test_cases/t00034_class.svg | 150 +++++++----- docs/test_cases/t00035_class.svg | 72 +++--- docs/test_cases/t00036_class.svg | 92 +++++--- docs/test_cases/t00037_class.svg | 101 +++++--- docs/test_cases/t00038_class.svg | 209 +++++++++-------- 37 files changed, 3925 insertions(+), 2018 deletions(-) diff --git a/docs/test_cases/t00002_class.svg b/docs/test_cases/t00002_class.svg index 63e03bea..3d0bdb93 100644 --- a/docs/test_cases/t00002_class.svg +++ b/docs/test_cases/t00002_class.svg @@ -1,6 +1,6 @@ - + @@ -8,57 +8,117 @@ - - - - A - - - - foo_a() = 0 : void - - foo_c() = 0 : void - - - - B - - - - foo_a() : void - - - - C - - - - foo_c() : void - - - - D - - - as : std::vector<A*> + + + + + A + + + + + + + + + foo_a() = 0 : void + + + + + + + foo_c() = 0 : void + + + + + + B + + + + + + + + + foo_a() : void + + + + + + C + + + + + + + + + foo_c() : void + + + + + + D + + + + + + + + as : std::vector<A*> + - - foo_a() : void - - foo_c() : void - - - - E - - - as : std::vector<A*> + + + + + + foo_a() : void + + + + + + + foo_c() : void + + + + + + E + + + + + + + + as : std::vector<A*> + - - foo_a() : void - - foo_c() : void - + + + + + + foo_a() : void + + + + + + + foo_c() : void + + Base abstract interface. diff --git a/docs/test_cases/t00003_class.svg b/docs/test_cases/t00003_class.svg index 48241701..0f4c19a9 100644 --- a/docs/test_cases/t00003_class.svg +++ b/docs/test_cases/t00003_class.svg @@ -1,6 +1,6 @@ - + @@ -8,63 +8,195 @@ - - - - A - - - public_member : int - - static_int : int - - static_const_int : int const - - auto_member : unsigned long const - - protected_member : int - - private_member : int - - a : int - - b : int - - c : int + + + + + A + + + + + + + + public_member : int + + + + + + + static_int : int + + + + + + + static_const_int : int const + + + + + + + auto_member : unsigned long const + + + + + + + protected_member : int + + + + + + + private_member : int + + + + + + + a : int + + + + + + + b : int + + + + + + + c : int + - - A() : void - - A(int i) : void - - A(A&& ) : void - - A(A const& ) : void - - ~A() : void - - basic_method() : void - - static_method() : int - - const_method() const : void - - auto_method() : int - - double_int(int const i) : int - - sum(double const a, double const b) : double - - default_int(int i = 12) : int - - default_string(int i, std::string s = "abc") : std::string - - create_from_int(int i) : A - - protected_method() : void - - private_method() : void - - compare : std::function<bool(int const)> + + + + + + A() : void + + + + + + + A(int i) : void + + + + + + + A(A&& ) : void + + + + + + + A(A const& ) : void + + + + + + + ~A() : void + + + + + + + basic_method() : void + + + + + + + static_method() : int + + + + + + + const_method() const : void + + + + + + + auto_method() : int + + + + + + + double_int(int const i) : int + + + + + + + sum(double const a, double const b) : double + + + + + + + default_int(int i = 12) : int + + + + + + + default_string(int i, std::string s = "abc") : std::string + + + + + + + create_from_int(int i) : A + + + + + + + protected_method() : void + + + + + + + private_method() : void + + + + + + + compare : std::function<bool(int const)> + diff --git a/docs/test_cases/t00004_class.svg b/docs/test_cases/t00004_class.svg index baf5ccb3..bdf964ab 100644 --- a/docs/test_cases/t00004_class.svg +++ b/docs/test_cases/t00004_class.svg @@ -1,6 +1,6 @@ - + @@ -8,37 +8,55 @@ - - - - A - - - - foo() const : void - - foo2() const : void - - - - AA - - - - - - Lights - - Green - Yellow - Red - - - - - AAA - - + + + + + A + + + + + + + + + foo() const : void + + + + + + + foo2() const : void + + + + + + AA + + + + + + + + Lights + + Green + Yellow + Red + + + + + + + AAA + + + diff --git a/docs/test_cases/t00005_class.svg b/docs/test_cases/t00005_class.svg index 8adb2e51..a32ed0df 100644 --- a/docs/test_cases/t00005_class.svg +++ b/docs/test_cases/t00005_class.svg @@ -1,6 +1,6 @@ - + @@ -8,107 +8,206 @@ - - - - A - - - - - - B - - - - - - C - - - - - - D - - - - - - E - - - - - - F - - - - - - G - - - - - - H - - - - - - I - - - - - - J - - - - - - K - - - - - - R - - - some_int : int - - some_int_pointer : int* - - some_int_pointer_pointer : int** - - some_int_reference : int& - - a : A - - b : B* - - c : C& - - d : D const* - - e : E const& - - f : F&& - - g : G** - - h : H*** - - i : I*& - - j : J volatile* - - k : K* + + + + + A + + + + + + + + B + + + + + + + + C + + + + + + + + D + + + + + + + + E + + + + + + + + F + + + + + + + + G + + + + + + + + H + + + + + + + + I + + + + + + + + J + + + + + + + + K + + + + + + + + R + + + + + + + + some_int : int + + + + + + + some_int_pointer : int* + + + + + + + some_int_pointer_pointer : int** + + + + + + + some_int_reference : int& + + + + + + + a : A + + + + + + + b : B* + + + + + + + c : C& + + + + + + + d : D const* + + + + + + + e : E const& + + + + + + + f : F&& + + + + + + + g : G** + + + + + + + h : H*** + + + + + + + i : I*& + + + + + + + j : J volatile* + + + + + + + k : K* + diff --git a/docs/test_cases/t00006_class.svg b/docs/test_cases/t00006_class.svg index 08005a56..c8ab376b 100644 --- a/docs/test_cases/t00006_class.svg +++ b/docs/test_cases/t00006_class.svg @@ -1,6 +1,6 @@ - + @@ -8,113 +8,152 @@ - - - - A - - - - - - B - - - - - - C - - - - - - D - - - - - - E - - - - - - F - - - - - - G - - - - - - H - - - - - - I - - - - - - J - - - - - - K - - - - - - L - - - - - - M - - - - - - N - - - - - - NN - - - - - - NNN - - - - - - custom_container - - T - - - data : std::vector<T> + + + + + A + + + + + + + + B + + + + + + + + C + + + + + + + + D + + + + + + + + E + + + + + + + + F + + + + + + + + G + + + + + + + + H + + + + + + + + I + + + + + + + + J + + + + + + + + K + + + + + + + + L + + + + + + + + M + + + + + + + + N + + + + + + + + NN + + + + + + + + NNN + + + + + + + + custom_container + + T + + + + + + + + data : std::vector<T> + - + custom_container @@ -122,37 +161,104 @@ E - - - - R - - - a : std::vector<A> - - b : std::vector<B*> - - c : std::map<int,C> - - d : std::map<int,D*> - - e : custom_container<E> - - f : std::vector<std::vector<F>> - - g : std::map<int,std::vector<G*>> - - h : std::array<H,10> - - i : std::array<I*,5> - - j : J[10] - - k : K*[20] - - lm : std::vector<std::pair<L,M>> - - ns : std::tuple<N,NN,NNN> + + + + + R + + + + + + + + a : std::vector<A> + + + + + + + b : std::vector<B*> + + + + + + + c : std::map<int,C> + + + + + + + d : std::map<int,D*> + + + + + + + e : custom_container<E> + + + + + + + f : std::vector<std::vector<F>> + + + + + + + g : std::map<int,std::vector<G*>> + + + + + + + h : std::array<H,10> + + + + + + + i : std::array<I*,5> + + + + + + + j : J[10] + + + + + + + k : K*[20] + + + + + + + lm : std::vector<std::pair<L,M>> + + + + + + + ns : std::tuple<N,NN,NNN> + diff --git a/docs/test_cases/t00007_class.svg b/docs/test_cases/t00007_class.svg index 4e78c6cc..78e0fea6 100644 --- a/docs/test_cases/t00007_class.svg +++ b/docs/test_cases/t00007_class.svg @@ -1,6 +1,6 @@ - + @@ -8,35 +8,58 @@ - - - - A - - - - - - B - - - - - - C - - - - - - R - - - a : std::unique_ptr<A> - - b : std::shared_ptr<B> - - c : std::weak_ptr<C> + + + + + A + + + + + + + + B + + + + + + + + C + + + + + + + + R + + + + + + + + a : std::unique_ptr<A> + + + + + + + b : std::shared_ptr<B> + + + + + + + c : std::weak_ptr<C> + diff --git a/docs/test_cases/t00008_class.svg b/docs/test_cases/t00008_class.svg index 9ea74662..a46a6904 100644 --- a/docs/test_cases/t00008_class.svg +++ b/docs/test_cases/t00008_class.svg @@ -1,6 +1,6 @@ - + @@ -8,47 +8,93 @@ - - - - A - - T,P,CMP,int N - - - value : T - - pointer : T* - - reference : T& - - values : std::vector<P> - - ints : std::array<int,N> - - comparator : CMP + + + + + A + + T,P,CMP,int N + + + + + + + + value : T + + + + + + + pointer : T* + + + + + + + reference : T& + + + + + + + values : std::vector<P> + + + + + + + ints : std::array<int,N> + + + + + + + comparator : CMP + - - - - Vector - - T - - - values : std::vector<T> + + + + + Vector + + T + + + + + + + + values : std::vector<T> + - - - - B - - T,C<> - - - template_template : C<T> + + + + + B + + T,C<> + + + + + + + + template_template : C<T> + - + B @@ -56,16 +102,28 @@ int,Vector - - - - D - - - ints : B<int,Vector> + + + + + D + + + + + + + + ints : B<int,Vector> + - - add(int i) : void + + + + + + add(int i) : void + diff --git a/docs/test_cases/t00009_class.svg b/docs/test_cases/t00009_class.svg index 6c28d9fd..93859842 100644 --- a/docs/test_cases/t00009_class.svg +++ b/docs/test_cases/t00009_class.svg @@ -1,6 +1,6 @@ - + @@ -8,17 +8,24 @@ - - - - A - - T - - - value : T + + + + + A + + T + + + + + + + + value : T + - + A @@ -26,7 +33,7 @@ int - + A @@ -34,7 +41,7 @@ std::string - + A @@ -42,17 +49,34 @@ std::vector<std::string> - - - - B - - - aint : A<int> - - astring : A<std::string>* - - avector : A<std::vector<std::string>>& + + + + + B + + + + + + + + aint : A<int> + + + + + + + astring : A<std::string>* + + + + + + + avector : A<std::vector<std::string>>& + diff --git a/docs/test_cases/t00010_class.svg b/docs/test_cases/t00010_class.svg index ca16e0e4..cfcdf0ed 100644 --- a/docs/test_cases/t00010_class.svg +++ b/docs/test_cases/t00010_class.svg @@ -1,6 +1,6 @@ - + @@ -8,19 +8,31 @@ - - - - A - - T,P - - - first : T - - second : P + + + + + A + + T,P + + + + + + + + first : T + + + + + + + second : P + - + A @@ -28,17 +40,24 @@ T,std::string - - - - B - - T - - - astring : A<T,std::string> + + + + + B + + T + + + + + + + + astring : A<T,std::string> + - + B @@ -46,13 +65,20 @@ int - - - - C - - - aintstring : B<int> + + + + + C + + + + + + + + aintstring : B<int> + diff --git a/docs/test_cases/t00011_class.svg b/docs/test_cases/t00011_class.svg index c26f4fc1..2fa88333 100644 --- a/docs/test_cases/t00011_class.svg +++ b/docs/test_cases/t00011_class.svg @@ -1,6 +1,6 @@ - + @@ -8,34 +8,60 @@ - - - - D - - T - - - value : T + + + + + D + + T + + + + + + + + value : T + - - - - A - - - - foo() : void - - - - B - - - m_a : A* + + + + + A + + + + + + + + + foo() : void + + + + + + B + + + + + + + + m_a : A* + - - foo() : void + + + + + + foo() : void + «friend» diff --git a/docs/test_cases/t00012_class.svg b/docs/test_cases/t00012_class.svg index b4f026b4..b2ef327e 100644 --- a/docs/test_cases/t00012_class.svg +++ b/docs/test_cases/t00012_class.svg @@ -1,6 +1,6 @@ - + @@ -8,39 +8,65 @@ - - - - A - - T,Ts... - - - value : T - - values : int + + + + + A + + T,Ts... + + + + + + + + value : T + + + + + + + values : int + - - - - B - - int Is... - - - - ints : std::array<int,sizeof...(Is)> - - - - C - - T,int Is... - - - - ints : std::array<T,sizeof...(Is)> - + + + + + B + + int Is... + + + + + + + + + ints : std::array<int,sizeof...(Is)> + + + + + + C + + T,int Is... + + + + + + + + + ints : std::array<T,sizeof...(Is)> + + A @@ -48,7 +74,7 @@ int,std::string,float - + A @@ -56,7 +82,7 @@ int,std::string,bool - + B @@ -64,7 +90,7 @@ 3,2,1 - + B @@ -72,7 +98,7 @@ 1,1,1,1 - + C @@ -80,23 +106,50 @@ std::map<int,std::vector<std::vector<std::vector<std::string>>>>,3,3,3 - - - - R - - - a1 : A<int,std::string,float> - - a2 : A<int,std::string,bool> - - b1 : B<3,2,1> - - b2 : B<1,1,1,1> - - c1 : C<std::map<int,std::vector<std::vector<std::vector<std::string>>>>,3,3,3> + + + + + R + + + + + + + + a1 : A<int,std::string,float> + + + + + + + a2 : A<int,std::string,bool> + + + + + + + b1 : B<3,2,1> + + + + + + + b2 : B<1,1,1,1> + + + + + + + c1 : C<std::map<int,std::vector<std::vector<std::vector<std::string>>>>,3,3,3> + - + Long template annotation diff --git a/docs/test_cases/t00013_class.svg b/docs/test_cases/t00013_class.svg index b68e16ff..b7165695 100644 --- a/docs/test_cases/t00013_class.svg +++ b/docs/test_cases/t00013_class.svg @@ -1,6 +1,6 @@ - + @@ -8,61 +8,108 @@ - - - - ABCD::F - - T - - - f : T + + + + + ABCD::F + + T + + + + + + + + f : T + - - - - A - - - a : int + + + + + A + + + + + + + + a : int + - - - - B - - - b : int + + + + + B + + + + + + + + b : int + - - - - C - - - c : int + + + + + C + + + + + + + + c : int + - - - - D - - - d : int + + + + + D + + + + + + + + d : int + - - print(R* r) : void - - - - E - - T - - - e : T + + + + + + print(R* r) : void + + + + + + E + + T + + + + + + + + e : T + - + E @@ -70,7 +117,7 @@ int - + F @@ -78,7 +125,7 @@ int - + E @@ -86,36 +133,98 @@ std::string - - - - R - - - estring : E<std::string> + + + + + R + + + + + + + + estring : E<std::string> + - - get_a(A* a) : int - - get_b(B& b) : int - - get_const_b(B const& b) : int - - get_c(C c) : int - - get_d(D&& d) : int - - get_d2(D&& d) : int - - get_e(E<T> e) : T - - get_int_e(E<int> const& e) : int - - get_int_e2(E<int>& e) : int - - get_f(F<T> const& f) : T - - get_int_f(F<int> const& f) : int + + + + + + get_a(A* a) : int + + + + + + + get_b(B& b) : int + + + + + + + get_const_b(B const& b) : int + + + + + + + get_c(C c) : int + + + + + + + get_d(D&& d) : int + + + + + + + get_d2(D&& d) : int + + + + + + + get_e(E<T> e) : T + + + + + + + get_int_e(E<int> const& e) : int + + + + + + + get_int_e2(E<int>& e) : int + + + + + + + get_f(F<T> const& f) : T + + + + + + + get_int_f(F<int> const& f) : int + diff --git a/docs/test_cases/t00014_class.svg b/docs/test_cases/t00014_class.svg index 8cfdf0b9..a05d8f77 100644 --- a/docs/test_cases/t00014_class.svg +++ b/docs/test_cases/t00014_class.svg @@ -1,6 +1,6 @@ - + @@ -8,19 +8,31 @@ - - - - A - - T,P - - - t : T - - p : P + + + + + A + + T,P + + + + + + + + t : T + + + + + + + p : P + - + A @@ -28,15 +40,22 @@ T,std::string - - - - B - - - value : std::string + + + + + B + + + + + + + + value : std::string + - + A @@ -44,7 +63,7 @@ bool,std::string - + AString @@ -52,7 +71,7 @@ float - + AString @@ -60,7 +79,7 @@ int - + AString @@ -68,7 +87,7 @@ std::string - + GeneralCallback @@ -76,33 +95,75 @@ AIntString - + GeneralCallback - - - - R - - - boolstring : A<bool,std::string> - - floatstring : AString<float> - - intstring : AIntString - - stringstring : AStringString - - bs : BVector - - bs2 : BVector2 - - cb : GeneralCallback<AIntString> - - vcb : VoidCallback + + + + + R + + + + + + + + boolstring : A<bool,std::string> + + + + + + + floatstring : AString<float> + + + + + + + intstring : AIntString + + + + + + + stringstring : AStringString + + + + + + + bs : BVector + + + + + + + bs2 : BVector2 + + + + + + + cb : GeneralCallback<AIntString> + + + + + + + vcb : VoidCallback + diff --git a/docs/test_cases/t00015_class.svg b/docs/test_cases/t00015_class.svg index ed1cc348..325f03d6 100644 --- a/docs/test_cases/t00015_class.svg +++ b/docs/test_cases/t00015_class.svg @@ -1,6 +1,6 @@ - + @@ -8,36 +8,46 @@ - - - - ns1::A - - - - - - ns1::ns2_v0_9_0::A - - - - - - ns1::Anon - - - - - - ns3::ns1::ns2::Anon - - - - - - ns3::B - - + + + + + ns1::A + + + + + + + + ns1::ns2_v0_9_0::A + + + + + + + + ns1::Anon + + + + + + + + ns3::ns1::ns2::Anon + + + + + + + + ns3::B + + + diff --git a/docs/test_cases/t00016_class.svg b/docs/test_cases/t00016_class.svg index 5707acb9..8502578e 100644 --- a/docs/test_cases/t00016_class.svg +++ b/docs/test_cases/t00016_class.svg @@ -1,6 +1,6 @@ - + @@ -8,54 +8,64 @@ - - - - is_numeric<> - - - value : enum - - - - - is_numeric - - char - - - value : enum - - - - - is_numeric - - unsigned char - - - value : enum - - - - - is_numeric - - int - - - value : enum - - - - - is_numeric - - bool - - - value : enum - + + + + + is_numeric<> + + + value : enum + + + + + + + is_numeric + + char + + + value : enum + + + + + + + is_numeric + + unsigned char + + + value : enum + + + + + + + is_numeric + + int + + + value : enum + + + + + + + is_numeric + + bool + + + value : enum + + diff --git a/docs/test_cases/t00017_class.svg b/docs/test_cases/t00017_class.svg index 163ffe65..f309334f 100644 --- a/docs/test_cases/t00017_class.svg +++ b/docs/test_cases/t00017_class.svg @@ -1,6 +1,6 @@ - + @@ -8,88 +8,137 @@ - - - - A - - - - - - B - - - - - - C - - - - - - D - - - - - - E - - - - - - F - - - - - - G - - - - - - H - - - - - - I - - - - - - J - - - - - - K - - - - - - R - - - some_int : int - - some_int_pointer : int* - - some_int_pointer_pointer : int** - - some_int_reference : int& + + + + + A + + + + + + + + B + + + + + + + + C + + + + + + + + D + + + + + + + + E + + + + + + + + F + + + + + + + + G + + + + + + + + H + + + + + + + + I + + + + + + + + J + + + + + + + + K + + + + + + + + R + + + + + + + + some_int : int + + + + + + + some_int_pointer : int* + + + + + + + some_int_pointer_pointer : int** + + + + + + + some_int_reference : int& + - - R(int& some_int, C& cc, E const& ee, F&& ff, I*& ii) : void + + + + + + R(int& some_int, C& cc, E const& ee, F&& ff, I*& ii) : void + diff --git a/docs/test_cases/t00018_class.svg b/docs/test_cases/t00018_class.svg index 6d09b37a..9ff4259d 100644 --- a/docs/test_cases/t00018_class.svg +++ b/docs/test_cases/t00018_class.svg @@ -1,6 +1,6 @@ - + @@ -8,46 +8,120 @@ - - - - impl::widget - - - n : int + + + + + impl::widget + + + + + + + + n : int + - - draw(widget const& w) const : void - - draw(widget const& w) : void - - widget(int n) : void - - - - widget - - - pImpl : std::unique_ptr<impl::widget> + + + + + + draw(widget const& w) const : void + + + + + + + draw(widget const& w) : void + + + + + + + widget(int n) : void + + + + + + widget + + + + + + + + pImpl : std::unique_ptr<impl::widget> + - - draw() const : void - - draw() : void - - shown() const : bool - - widget(int ) : void - - ~widget() : void - - widget(widget&& ) : void - - widget(widget const& ) : void - - operator=(widget&& ) : widget& - - operator=(widget const& ) : widget& + + + + + + draw() const : void + + + + + + + draw() : void + + + + + + + shown() const : bool + + + + + + + widget(int ) : void + + + + + + + ~widget() : void + + + + + + + widget(widget&& ) : void + + + + + + + widget(widget const& ) : void + + + + + + + operator=(widget&& ) : widget& + + + + + + + operator=(widget const& ) : widget& + diff --git a/docs/test_cases/t00019_class.svg b/docs/test_cases/t00019_class.svg index 5ff485e8..a1da2974 100644 --- a/docs/test_cases/t00019_class.svg +++ b/docs/test_cases/t00019_class.svg @@ -1,6 +1,6 @@ - + @@ -8,63 +8,136 @@ - - - - Layer2 - - LowerLayer - - - - all_calls_count() const : int - - - - Base - - - - Base() : void - - ~Base() : void - - m1() : int - - m2() : std::string - - - - Layer1 - - LowerLayer - - - - m1() : int - - m2() : std::string - - - - Layer3 - - LowerLayer - - - m_m1_calls : int - - m_m2_calls : int + + + + + Layer2 + + LowerLayer + + + + + + + + + all_calls_count() const : int + + + + + + Base + + + + + + + + + Base() : void + + + + + + + ~Base() : void + + + + + + + m1() : int + + + + + + + m2() : std::string + + + + + + Layer1 + + LowerLayer + + + + + + + + + m1() : int + + + + + + + m2() : std::string + + + + + + Layer3 + + LowerLayer + + + + + + + + m_m1_calls : int + + + + + + + m_m2_calls : int + - - m1() : int - - m2() : std::string - - m1_calls() const : int - - m2_calls() const : int - + + + + + + m1() : int + + + + + + + m2() : std::string + + + + + + + m1_calls() const : int + + + + + + + m2_calls() const : int + + Layer3 @@ -72,7 +145,7 @@ Base - + Layer2 @@ -80,7 +153,7 @@ Layer3<Base> - + Layer1 @@ -88,13 +161,20 @@ Layer2<Layer3<Base>> - - - - A - - - layers : std::unique_ptr<Layer1<Layer2<Layer3<Base>>>> + + + + + A + + + + + + + + layers : std::unique_ptr<Layer1<Layer2<Layer3<Base>>>> + diff --git a/docs/test_cases/t00020_class.svg b/docs/test_cases/t00020_class.svg index 9024cd8d..a6338e28 100644 --- a/docs/test_cases/t00020_class.svg +++ b/docs/test_cases/t00020_class.svg @@ -1,6 +1,6 @@ - + @@ -8,88 +8,176 @@ - - - - ProductA - - - - ~ProductA() : void - - sell(int price) const = 0 : bool - - - - ProductA1 - - - - sell(int price) const : bool - - - - ProductA2 - - - - sell(int price) const : bool - - - - ProductB - - - - ~ProductB() : void - - buy(int price) const = 0 : bool - - - - ProductB1 - - - - buy(int price) const : bool - - - - ProductB2 - - - - buy(int price) const : bool - - - - AbstractFactory - - - - make_a() const = 0 : std::unique_ptr<ProductA> - - make_b() const = 0 : std::unique_ptr<ProductB> - - - - Factory1 - - - - make_a() const : std::unique_ptr<ProductA> - - make_b() const : std::unique_ptr<ProductB> - - - - Factory2 - - - - make_a() const : std::unique_ptr<ProductA> - - make_b() const : std::unique_ptr<ProductB> + + + + + ProductA + + + + + + + + + ~ProductA() : void + + + + + + + sell(int price) const = 0 : bool + + + + + + ProductA1 + + + + + + + + + sell(int price) const : bool + + + + + + ProductA2 + + + + + + + + + sell(int price) const : bool + + + + + + ProductB + + + + + + + + + ~ProductB() : void + + + + + + + buy(int price) const = 0 : bool + + + + + + ProductB1 + + + + + + + + + buy(int price) const : bool + + + + + + ProductB2 + + + + + + + + + buy(int price) const : bool + + + + + + AbstractFactory + + + + + + + + + make_a() const = 0 : std::unique_ptr<ProductA> + + + + + + + make_b() const = 0 : std::unique_ptr<ProductB> + + + + + + Factory1 + + + + + + + + + make_a() const : std::unique_ptr<ProductA> + + + + + + + make_b() const : std::unique_ptr<ProductB> + + + + + + Factory2 + + + + + + + + + make_a() const : std::unique_ptr<ProductA> + + + + + + + make_b() const : std::unique_ptr<ProductB> + diff --git a/docs/test_cases/t00021_class.svg b/docs/test_cases/t00021_class.svg index dc51718b..b3465973 100644 --- a/docs/test_cases/t00021_class.svg +++ b/docs/test_cases/t00021_class.svg @@ -1,6 +1,6 @@ - + @@ -8,74 +8,153 @@ - - - - Visitor - - - - ~Visitor() : void - - visit_A(A const& item) const = 0 : void - - visit_B(B const& item) const = 0 : void - - - - Visitor1 - - - - visit_A(A const& item) const : void - - visit_B(B const& item) const : void - - - - Visitor2 - - - - visit_A(A const& item) const : void - - visit_B(B const& item) const : void - - - - Visitor3 - - - - visit_A(A const& item) const : void - - visit_B(B const& item) const : void - - - - Item - - - - ~Item() : void - - accept(Visitor const& visitor) const = 0 : void - - - - A - - - - accept(Visitor const& visitor) const : void - - - - B - - - - accept(Visitor const& visitor) const : void + + + + + Visitor + + + + + + + + + ~Visitor() : void + + + + + + + visit_A(A const& item) const = 0 : void + + + + + + + visit_B(B const& item) const = 0 : void + + + + + + Visitor1 + + + + + + + + + visit_A(A const& item) const : void + + + + + + + visit_B(B const& item) const : void + + + + + + Visitor2 + + + + + + + + + visit_A(A const& item) const : void + + + + + + + visit_B(B const& item) const : void + + + + + + Visitor3 + + + + + + + + + visit_A(A const& item) const : void + + + + + + + visit_B(B const& item) const : void + + + + + + Item + + + + + + + + + ~Item() : void + + + + + + + accept(Visitor const& visitor) const = 0 : void + + + + + + A + + + + + + + + + accept(Visitor const& visitor) const : void + + + + + + B + + + + + + + + + accept(Visitor const& visitor) const : void + diff --git a/docs/test_cases/t00022_class.svg b/docs/test_cases/t00022_class.svg index 643e1fca..b7e52bdf 100644 --- a/docs/test_cases/t00022_class.svg +++ b/docs/test_cases/t00022_class.svg @@ -1,6 +1,6 @@ - + @@ -8,38 +8,79 @@ - - - - A - - - - template_method() : void - - method1() = 0 : void - - method2() = 0 : void - - - - A1 - - - - method1() : void - - method2() : void - - - - A2 - - - - method1() : void - - method2() : void + + + + + A + + + + + + + + + template_method() : void + + + + + + + method1() = 0 : void + + + + + + + method2() = 0 : void + + + + + + A1 + + + + + + + + + method1() : void + + + + + + + method2() : void + + + + + + A2 + + + + + + + + + method1() : void + + + + + + + method2() : void + diff --git a/docs/test_cases/t00023_class.svg b/docs/test_cases/t00023_class.svg index bf2a2775..08370a62 100644 --- a/docs/test_cases/t00023_class.svg +++ b/docs/test_cases/t00023_class.svg @@ -1,6 +1,6 @@ - + @@ -8,52 +8,102 @@ - - - - Strategy - - - - ~Strategy() : void - - algorithm() = 0 : void - - - - StrategyA - - - - algorithm() : void - - - - StrategyB - - - - algorithm() : void - - - - StrategyC - - - - algorithm() : void - - - - Context - - - m_strategy : std::unique_ptr<Strategy> + + + + + Strategy + + + + + + + + + ~Strategy() : void + + + + + + + algorithm() = 0 : void + + + + + + StrategyA + + + + + + + + + algorithm() : void + + + + + + StrategyB + + + + + + + + + algorithm() : void + + + + + + StrategyC + + + + + + + + + algorithm() : void + + + + + + Context + + + + + + + + m_strategy : std::unique_ptr<Strategy> + - - Context(std::unique_ptr<Strategy> strategy) : void - - apply() : void + + + + + + Context(std::unique_ptr<Strategy> strategy) : void + + + + + + + apply() : void + diff --git a/docs/test_cases/t00024_class.svg b/docs/test_cases/t00024_class.svg index 7cd8c584..711f4757 100644 --- a/docs/test_cases/t00024_class.svg +++ b/docs/test_cases/t00024_class.svg @@ -1,6 +1,6 @@ - + @@ -8,52 +8,115 @@ - - - - Target - - - - ~Target() : void - - m1() = 0 : void - - m2() = 0 : void - - - - Target1 - - - - m1() : void - - m2() : void - - - - Target2 - - - - m1() : void - - m2() : void - - - - Proxy - - - m_target : std::shared_ptr<Target> + + + + + Target + + + + + + + + + ~Target() : void + + + + + + + m1() = 0 : void + + + + + + + m2() = 0 : void + + + + + + Target1 + + + + + + + + + m1() : void + + + + + + + m2() : void + + + + + + Target2 + + + + + + + + + m1() : void + + + + + + + m2() : void + + + + + + Proxy + + + + + + + + m_target : std::shared_ptr<Target> + - - Proxy(std::shared_ptr<Target> target) : void - - m1() : void - - m2() : void + + + + + + Proxy(std::shared_ptr<Target> target) : void + + + + + + + m1() : void + + + + + + + m2() : void + diff --git a/docs/test_cases/t00025_class.svg b/docs/test_cases/t00025_class.svg index 92f28c28..9fff0ba2 100644 --- a/docs/test_cases/t00025_class.svg +++ b/docs/test_cases/t00025_class.svg @@ -1,6 +1,6 @@ - + @@ -8,43 +8,89 @@ - - - - Target1 - - - - m1() : void - - m2() : void - - - - Target2 - - - - m1() : void - - m2() : void - - - - Proxy - - T - - - m_target : std::shared_ptr<T> + + + + + Target1 + + + + + + + + + m1() : void + + + + + + + m2() : void + + + + + + Target2 + + + + + + + + + m1() : void + + + + + + + m2() : void + + + + + + Proxy + + T + + + + + + + + m_target : std::shared_ptr<T> + - - Proxy(std::shared_ptr<T> target) : void - - m1() : void - - m2() : void - + + + + + + Proxy(std::shared_ptr<T> target) : void + + + + + + + m1() : void + + + + + + + m2() : void + + Proxy @@ -52,7 +98,7 @@ Target1 - + Proxy @@ -60,15 +106,27 @@ Target2 - - - - ProxyHolder - - - proxy1 : Proxy<Target1> - - proxy2 : Proxy<Target2> + + + + + ProxyHolder + + + + + + + + proxy1 : Proxy<Target1> + + + + + + + proxy2 : Proxy<Target2> + diff --git a/docs/test_cases/t00026_class.svg b/docs/test_cases/t00026_class.svg index 5cf2fe41..a276d7a0 100644 --- a/docs/test_cases/t00026_class.svg +++ b/docs/test_cases/t00026_class.svg @@ -1,6 +1,6 @@ - + @@ -8,55 +8,121 @@ - - - - Memento - - T - - - m_value : T + + + + + Memento + + T + + + + + + + + m_value : T + - - Memento(T&& v) : void - - value() const : T - - - - Originator - - T - - - m_value : T + + + + + + Memento(T&& v) : void + + + + + + + value() const : T + + + + + + Originator + + T + + + + + + + + m_value : T + - - Originator(T&& v) : void - - memoize_value() const : Memento<T> - - load(Memento<T> const& m) : void - - print() const : void - - set(T&& v) : void - - - - Caretaker - - T - - - m_mementos : std::unordered_map<std::string,Memento<T>> + + + + + + Originator(T&& v) : void + + + + + + + memoize_value() const : Memento<T> + + + + + + + load(Memento<T> const& m) : void + + + + + + + print() const : void + + + + + + + set(T&& v) : void + + + + + + Caretaker + + T + + + + + + + + m_mementos : std::unordered_map<std::string,Memento<T>> + - - state(std::string const& n) : Memento<T>& - - set_state(std::string const& s, Memento<T>&& m) : void - + + + + + + state(std::string const& n) : Memento<T>& + + + + + + + set_state(std::string const& s, Memento<T>&& m) : void + + Caretaker @@ -64,7 +130,7 @@ std::string - + Originator @@ -72,15 +138,27 @@ std::string - - - - StringMemento - - - caretaker : Caretaker<std::string> - - originator : Originator<std::string> + + + + + StringMemento + + + + + + + + caretaker : Caretaker<std::string> + + + + + + + originator : Originator<std::string> + diff --git a/docs/test_cases/t00027_class.svg b/docs/test_cases/t00027_class.svg index 87cee6b1..86201965 100644 --- a/docs/test_cases/t00027_class.svg +++ b/docs/test_cases/t00027_class.svg @@ -1,6 +1,6 @@ - + @@ -8,65 +8,112 @@ - - - - Shape - - - - display() = 0 : void - - ~Shape() : void - - - - Line - - T<> - - - - display() : void - - - - Text - - T<> - - - - display() : void - - - - ShapeDecorator - - - - display() = 0 : void - - - - Color - - T - - - - display() : void - - - - Weight - - T - - - - display() : void - + + + + + Shape + + + + + + + + + display() = 0 : void + + + + + + + ~Shape() : void + + + + + + Line + + T<> + + + + + + + + + display() : void + + + + + + Text + + T<> + + + + + + + + + display() : void + + + + + + ShapeDecorator + + + + + + + + + display() = 0 : void + + + + + + Color + + T + + + + + + + + + display() : void + + + + + + Weight + + T + + + + + + + + + display() : void + + Line @@ -74,7 +121,7 @@ Color,Weight - + Line @@ -82,7 +129,7 @@ Color - + Text @@ -90,7 +137,7 @@ Color,Weight - + Text @@ -98,19 +145,41 @@ Color - - - - Window - - - border : Line<Color,Weight> - - divider : Line<Color> - - title : Text<Color,Weight> - - description : Text<Color> + + + + + Window + + + + + + + + border : Line<Color,Weight> + + + + + + + divider : Line<Color> + + + + + + + title : Text<Color,Weight> + + + + + + + description : Text<Color> + diff --git a/docs/test_cases/t00028_class.svg b/docs/test_cases/t00028_class.svg index eb76b63f..2f349d7a 100644 --- a/docs/test_cases/t00028_class.svg +++ b/docs/test_cases/t00028_class.svg @@ -1,6 +1,6 @@ - + @@ -8,93 +8,112 @@ - - - - A - - - + + + + + A + + + + A class note. - + A class note. - - - - B - - - + + + + + B + + + + B class note. - + B class note. - - - - C - - - + + + + + C + + + + C class note. - + C class note. - - - - D - - - + + + + + D + + + + D class note. - + D class note. - - - - E - - T - - - param : T + + + + + E + + T + + + + + + + + param : T + - + E template class note. - - - - G - - - - - - F - - one - two - three - - + + + + + G + + + + + + + + F + + one + two + three + + + F enum note. - + F enum note. - + E @@ -102,30 +121,67 @@ int - - - - R - - - aaa : A - - bbb : B* - - ccc : C& - - ddd : std::vector<std::shared_ptr<D>> - - eee : E<int> - - ggg : G** + + + + + R + + + + + + + + aaa : A + + + + + + + bbb : B* + + + + + + + ccc : C& + + + + + + + ddd : std::vector<std::shared_ptr<D>> + + + + + + + eee : E<int> + + + + + + + ggg : G** + - - R(C& c) : void - + + + + + + R(C& c) : void + + R class note. - + R class note. diff --git a/docs/test_cases/t00029_class.svg b/docs/test_cases/t00029_class.svg index 5fb8b499..c25f6874 100644 --- a/docs/test_cases/t00029_class.svg +++ b/docs/test_cases/t00029_class.svg @@ -1,6 +1,6 @@ - + @@ -8,66 +8,102 @@ - - - - A - - - - - - C - - T - - - param : T + + + + + A + + + + + + + + C + + T + + + + + + + + param : T + - - - - E - - one - two - three - - - - - G1 - - - - - - G2 - - - - - - G3 - - - - - - G4 - - - - - - R - - - g1 : G1 - - g3 : G3& - - g4 : std::shared_ptr<G4> + + + + + E + + one + two + three + + + + + + + G1 + + + + + + + + G2 + + + + + + + + G3 + + + + + + + + G4 + + + + + + + + R + + + + + + + + g1 : G1 + + + + + + + g3 : G3& + + + + + + + g4 : std::shared_ptr<G4> + diff --git a/docs/test_cases/t00030_class.svg b/docs/test_cases/t00030_class.svg index ff438e89..3fcf8cf9 100644 --- a/docs/test_cases/t00030_class.svg +++ b/docs/test_cases/t00030_class.svg @@ -1,6 +1,6 @@ - + @@ -8,43 +8,73 @@ - - - - A - - - - - - B - - - - - - C - - - - - - D - - - - - - R - - - aaa : A - - bbb : std::vector<B> - - ccc : std::vector<C> - - ddd : D + + + + + A + + + + + + + + B + + + + + + + + C + + + + + + + + D + + + + + + + + R + + + + + + + + aaa : A + + + + + + + bbb : std::vector<B> + + + + + + + ccc : std::vector<C> + + + + + + + ddd : D + diff --git a/docs/test_cases/t00031_class.svg b/docs/test_cases/t00031_class.svg index 78b68bb8..8ac20917 100644 --- a/docs/test_cases/t00031_class.svg +++ b/docs/test_cases/t00031_class.svg @@ -1,55 +1,68 @@ - + - + - + - - - - - A - - - - - - B - - one - two - three - - - - - - C - - T - - - ttt : T + + + + + + A + + + + + + + + B + + one + two + three + + + + + + + + C + + T + + + + + + + + ttt : T + - - - - D - - - + + + + + D + + + + C @@ -57,19 +70,41 @@ int - - - - R - - - aaa : A* - - bbb : std::vector<B> - - ccc : C<int> - - ddd : D* + + + + + R + + + + + + + + aaa : A* + + + + + + + bbb : std::vector<B> + + + + + + + ccc : C<int> + + + + + + + ddd : D* + diff --git a/docs/test_cases/t00032_class.svg b/docs/test_cases/t00032_class.svg index d84a400f..8028e310 100644 --- a/docs/test_cases/t00032_class.svg +++ b/docs/test_cases/t00032_class.svg @@ -1,6 +1,6 @@ - + @@ -8,53 +8,85 @@ - - - - Base - - - - - - TBase - - - - - - A - - - - operator()() : void - - - - B - - - - operator()() : void - - - - C - - - - operator()() : void - - - - Overload - - T,L,Ts... - - - counter : L + + + + + Base + + + + + + + + TBase + + + + + + + + A + + + + + + + + + operator()() : void + + + + + + B + + + + + + + + + operator()() : void + + + + + + C + + + + + + + + + operator()() : void + + + + + + Overload + + T,L,Ts... + + + + + + + + counter : L + - + Overload @@ -62,13 +94,20 @@ TBase,int,A,B,C - - - - R - - - overload : Overload<TBase,int,A,B,C> + + + + + R + + + + + + + + overload : Overload<TBase,int,A,B,C> + diff --git a/docs/test_cases/t00033_class.svg b/docs/test_cases/t00033_class.svg index 368fba71..d2f4736d 100644 --- a/docs/test_cases/t00033_class.svg +++ b/docs/test_cases/t00033_class.svg @@ -1,6 +1,6 @@ - + @@ -8,45 +8,73 @@ - - - - A - - T - - - aaa : T + + + + + A + + T + + + + + + + + aaa : T + - - - - B - - T - - - bbb : T + + + + + B + + T + + + + + + + + bbb : T + - - - - C - - T - - - ccc : T + + + + + C + + T + + + + + + + + ccc : T + - - - - D - - - ddd : int + + + + + D + + + + + + + + ddd : int + - + C @@ -54,7 +82,7 @@ D - + B @@ -62,7 +90,7 @@ std::unique_ptr<C<D>> - + A @@ -70,13 +98,20 @@ B<std::unique_ptr<C<D>>> - - - - R - - - abc : A<B<std::unique_ptr<C<D>>>> + + + + + R + + + + + + + + abc : A<B<std::unique_ptr<C<D>>>> + diff --git a/docs/test_cases/t00034_class.svg b/docs/test_cases/t00034_class.svg index efbd5bf5..84854387 100644 --- a/docs/test_cases/t00034_class.svg +++ b/docs/test_cases/t00034_class.svg @@ -1,6 +1,6 @@ - + @@ -8,63 +8,97 @@ - - - - Void - - - - operator==(Void const& ) const : bool - - operator!=(Void const& ) const : bool - - - - lift_void - - T - - - - - - lift_void - - void - - - - - - drop_void - - T - - - - - - drop_void - - Void - - - - - - A - - - - - - R - - - la : lift_void_t<A>* - - lv : lift_void_t<void>* + + + + + Void + + + + + + + + + operator==(Void const& ) const : bool + + + + + + + operator!=(Void const& ) const : bool + + + + + + lift_void + + T + + + + + + + + lift_void + + void + + + + + + + + drop_void + + T + + + + + + + + drop_void + + Void + + + + + + + + A + + + + + + + + R + + + + + + + + la : lift_void_t<A>* + + + + + + + lv : lift_void_t<void>* + diff --git a/docs/test_cases/t00035_class.svg b/docs/test_cases/t00035_class.svg index 38d5d469..b4d3e3a9 100644 --- a/docs/test_cases/t00035_class.svg +++ b/docs/test_cases/t00035_class.svg @@ -1,6 +1,6 @@ - + @@ -8,35 +8,45 @@ - - - - Top - - - - - - Left - - - - - - Center - - - - - - Bottom - - - - - - Right - - + + + + + Top + + + + + + + + Left + + + + + + + + Center + + + + + + + + Bottom + + + + + + + + Right + + + diff --git a/docs/test_cases/t00036_class.svg b/docs/test_cases/t00036_class.svg index 2b8b0d86..cbb88c90 100644 --- a/docs/test_cases/t00036_class.svg +++ b/docs/test_cases/t00036_class.svg @@ -1,6 +1,6 @@ - + @@ -8,40 +8,49 @@ - + ns1 - + ns11 - + ns111 - + ns2 - + ns22 - - - - E - - blue - yellow - - - - - A - - T - - - a : T + + + + + E + + blue + yellow + + + + + + + A + + T + + + + + + + + a : T + - + A @@ -49,20 +58,29 @@ int - - - - B - - - a_int : A<int> + + + + + B + + + + + + + + a_int : A<int> + - - - - C - - + + + + + C + + + diff --git a/docs/test_cases/t00037_class.svg b/docs/test_cases/t00037_class.svg index e8dfe26c..7faad7c4 100644 --- a/docs/test_cases/t00037_class.svg +++ b/docs/test_cases/t00037_class.svg @@ -1,6 +1,6 @@ - + @@ -8,38 +8,79 @@ - - - - ST - - - dimensions : «anonymous» + + + + + ST + + + + + + + + dimensions : «anonymous» + - - - - <<anonymous>> - - - t : double - - x : double - - y : double - - z : double + + + + + <<anonymous>> + + + + + + + + t : double + + + + + + + x : double + + + + + + + y : double + + + + + + + z : double + - - - - A - - - st : ST + + + + + A + + + + + + + + st : ST + - - A() : void + + + + + + A() : void + diff --git a/docs/test_cases/t00038_class.svg b/docs/test_cases/t00038_class.svg index 94f88878..d3d4fff1 100644 --- a/docs/test_cases/t00038_class.svg +++ b/docs/test_cases/t00038_class.svg @@ -1,6 +1,6 @@ - + @@ -8,96 +8,125 @@ - - - - thirdparty::ns1::color_t - - red - green - blue - - - - - thirdparty::ns1::E - - - - - - property_t - - property_a - property_b - property_c - - - - - A - - - - - - B - - - - - - C - - - - - - key_t - - - key : std::string + + + + + thirdparty::ns1::color_t + + red + green + blue + + + + + + + thirdparty::ns1::E + + + + + + + + property_t + + property_a + property_b + property_c + + + + + + + A + + + + + + + + B + + + + + + + + C + + + + + + + + key_t + + + + + + + + key : std::string + - - - - map - - T - - - - - - map - - std::integral_constant<thirdparty::ns1::color_t,thirdparty::ns1::color_t::red> - - - - - - map - - std::integral_constant<property_t,property_t::property_a> - - - - - - map - - std::vector<std::integral_constant<property_t,property_t::property_b>> - - - - - - map - - std::map<key_t,std::vector<std::integral_constant<property_t,property_t::property_c>>> - - + + + + + map + + T + + + + + + + + map + + std::integral_constant<thirdparty::ns1::color_t,thirdparty::ns1::color_t::red> + + + + + + + + map + + std::integral_constant<property_t,property_t::property_a> + + + + + + + + map + + std::vector<std::integral_constant<property_t,property_t::property_b>> + + + + + + + + map + + std::map<key_t,std::vector<std::integral_constant<property_t,property_t::property_c>>> + + +