Updated test cases documentation
This commit is contained in:
@@ -30,6 +30,7 @@
|
|||||||
* [t00029](./test_cases/t00029.md) - PlantUML skip decorator test case
|
* [t00029](./test_cases/t00029.md) - PlantUML skip decorator test case
|
||||||
* [t00030](./test_cases/t00030.md) - PlantUML relationship decorators test case
|
* [t00030](./test_cases/t00030.md) - PlantUML relationship decorators test case
|
||||||
* [t00031](./test_cases/t00031.md) - PlantUML style decorator test case
|
* [t00031](./test_cases/t00031.md) - PlantUML style decorator test case
|
||||||
|
* [t00032](./test_cases/t00032.md) - Class template with template base classes test case
|
||||||
## Sequence diagrams
|
## Sequence diagrams
|
||||||
* [t20001](./test_cases/t20001.md) - Basic sequence diagram
|
* [t20001](./test_cases/t20001.md) - Basic sequence diagram
|
||||||
## Configuration diagrams
|
## Configuration diagrams
|
||||||
|
|||||||
62
docs/test_cases/t00032.md
Normal file
62
docs/test_cases/t00032.md
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
# t00032 - Class template with template base classes test case
|
||||||
|
## Config
|
||||||
|
```yaml
|
||||||
|
compilation_database_dir: ..
|
||||||
|
output_directory: puml
|
||||||
|
diagrams:
|
||||||
|
t00032_class:
|
||||||
|
type: class
|
||||||
|
glob:
|
||||||
|
- ../../tests/t00032/t00032.cc
|
||||||
|
using_namespace:
|
||||||
|
- clanguml::t00032
|
||||||
|
include:
|
||||||
|
namespaces:
|
||||||
|
- clanguml::t00032
|
||||||
|
|
||||||
|
```
|
||||||
|
## Source code
|
||||||
|
File t00032.cc
|
||||||
|
```cpp
|
||||||
|
#include <memory>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
|
namespace clanguml {
|
||||||
|
namespace t00032 {
|
||||||
|
|
||||||
|
struct Base {
|
||||||
|
};
|
||||||
|
|
||||||
|
struct TBase {
|
||||||
|
};
|
||||||
|
|
||||||
|
struct A {
|
||||||
|
void operator()() { }
|
||||||
|
};
|
||||||
|
|
||||||
|
struct B {
|
||||||
|
void operator()() { }
|
||||||
|
};
|
||||||
|
|
||||||
|
struct C {
|
||||||
|
void operator()() { }
|
||||||
|
};
|
||||||
|
|
||||||
|
template <typename T, typename L, typename... Ts>
|
||||||
|
struct Overload : public Base, public T, public Ts... {
|
||||||
|
using Ts::operator()...;
|
||||||
|
L counter;
|
||||||
|
};
|
||||||
|
|
||||||
|
template <class... Ts> Overload(Ts...) -> Overload<Ts...>;
|
||||||
|
|
||||||
|
struct R {
|
||||||
|
Overload<TBase, int, A, B, C> overload;
|
||||||
|
};
|
||||||
|
|
||||||
|
} // namespace t00032
|
||||||
|
} // namespace clanguml
|
||||||
|
|
||||||
|
```
|
||||||
|
## Generated UML diagrams
|
||||||
|

|
||||||
BIN
docs/test_cases/t00032_class.png
Normal file
BIN
docs/test_cases/t00032_class.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
@@ -90,6 +90,9 @@ test_cases:
|
|||||||
- name: t00031
|
- name: t00031
|
||||||
title: PlantUML style decorator test case
|
title: PlantUML style decorator test case
|
||||||
description:
|
description:
|
||||||
|
- name: t00032
|
||||||
|
title: Class template with template base classes test case
|
||||||
|
description:
|
||||||
Sequence diagrams:
|
Sequence diagrams:
|
||||||
- name: t20001
|
- name: t20001
|
||||||
title: Basic sequence diagram
|
title: Basic sequence diagram
|
||||||
|
|||||||
Reference in New Issue
Block a user