Updated test cases documentation
@@ -31,6 +31,7 @@
|
||||
* [t00030](./test_cases/t00030.md) - PlantUML relationship decorators 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
|
||||
* [t00033](./test_cases/t00033.md) - Nested template instantiation dependency test case
|
||||
## Sequence diagrams
|
||||
* [t20001](./test_cases/t20001.md) - Basic sequence diagram
|
||||
## Configuration diagrams
|
||||
|
||||
|
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 62 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 25 KiB |
52
docs/test_cases/t00033.md
Normal file
@@ -0,0 +1,52 @@
|
||||
# t00033 - Nested template instantiation dependency test case
|
||||
## Config
|
||||
```yaml
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t00033_class:
|
||||
type: class
|
||||
glob:
|
||||
- ../../tests/t00033/t00033.cc
|
||||
using_namespace:
|
||||
- clanguml::t00033
|
||||
include:
|
||||
namespaces:
|
||||
- clanguml::t00033
|
||||
|
||||
```
|
||||
## Source code
|
||||
File t00033.cc
|
||||
```cpp
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
namespace clanguml {
|
||||
namespace t00033 {
|
||||
|
||||
template <typename T> struct A {
|
||||
T aaa;
|
||||
};
|
||||
|
||||
template <typename T> struct B {
|
||||
T bbb;
|
||||
};
|
||||
|
||||
template <typename T> struct C {
|
||||
T ccc;
|
||||
};
|
||||
|
||||
struct D {
|
||||
int ddd;
|
||||
};
|
||||
|
||||
struct R {
|
||||
A<B<C<D>>> abc;
|
||||
};
|
||||
|
||||
} // namespace t00033
|
||||
} // namespace clanguml
|
||||
|
||||
```
|
||||
## Generated UML diagrams
|
||||

|
||||
BIN
docs/test_cases/t00033_class.png
Normal file
|
After Width: | Height: | Size: 20 KiB |