diagrams:
t00065_class:
type: class
glob:
- t00065.cc
generate_packages: true
package_type: directory
include:
namespaces:
- clanguml::t00065
using_namespace: clanguml::t00065
File tests/t00065/t00065.cc
#include "module1/module1.h"
#include "module2/module2.h"
namespace clanguml {
namespace t00065 {
struct R {
A *a;
C<B> c;
D<B> d;
};
}
}
File tests/t00065/module2/module2.h
#pragma once
#include "concepts/concepts.h"
namespace clanguml {
namespace t00065 {
struct B {
B() = default;
void b() { }
};
template <typename T> struct C {
T *t;
};
template <bconcept T> struct D {
T t;
C<int> c;
};
}
}
File tests/t00065/module2/concepts/concepts.h
#pragma once
namespace clanguml {
namespace t00065 {
template <typename T>
concept bconcept = requires(T t) {
T{};
t.b();
};
}
}
File tests/t00065/module1/module1.h
#include "submodule1a/submodule1a.h"
#pragma once
namespace clanguml {
namespace t00065 {
enum class ABC { a, b, c };
enum XYZ { x, y, z };
struct A {
ABC abc;
XYZ xyz;
detail::AImpl *pimpl;
};
}
}
File tests/t00065/module1/submodule1a/submodule1a.h
#pragma once
namespace clanguml {
namespace t00065 {
namespace detail {
struct AImpl { };
}
}
}
{
"diagram_type": "class",
"elements": [
{
"display_name": "module1",
"elements": [
{
"display_name": "submodule1a",
"elements": [
{
"bases": [],
"display_name": "AImpl",
"id": "5398059314469894043",
"is_abstract": false,
"is_nested": false,
"is_struct": true,
"is_template": false,
"is_union": false,
"members": [],
"methods": [],
"name": "AImpl",
"namespace": "clanguml::t00065::detail",
"source_location": {
"column": 8,
"file": "module1/submodule1a/submodule1a.h",
"line": 6,
"translation_unit": "t00065.cc"
},
"template_parameters": [],
"type": "class"
}
],
"name": "submodule1a",
"type": "directory"
},
{
"constants": [
"a",
"b",
"c"
],
"display_name": "ABC",
"id": "17162903884311351787",
"is_nested": false,
"name": "ABC",
"namespace": "clanguml::t00065",
"source_location": {
"column": 12,
"file": "module1/module1.h",
"line": 8,
"translation_unit": "t00065.cc"
},
"type": "enum"
},
{
"constants": [
"x",
"y",
"z"
],
"display_name": "XYZ",
"id": "11487521750481135557",
"is_nested": false,
"name": "XYZ",
"namespace": "clanguml::t00065",
"source_location": {
"column": 6,
"file": "module1/module1.h",
"line": 10,
"translation_unit": "t00065.cc"
},
"type": "enum"
},
{
"bases": [],
"display_name": "A",
"id": "9425556339266405903",
"is_abstract": false,
"is_nested": false,
"is_struct": true,
"is_template": false,
"is_union": false,
"members": [
{
"access": "public",
"is_static": false,
"name": "abc",
"source_location": {
"column": 9,
"file": "module1/module1.h",
"line": 13,
"translation_unit": "t00065.cc"
},
"type": "ABC"
},
{
"access": "public",
"is_static": false,
"name": "xyz",
"source_location": {
"column": 9,
"file": "module1/module1.h",
"line": 14,
"translation_unit": "t00065.cc"
},
"type": "XYZ"
},
{
"access": "public",
"is_static": false,
"name": "pimpl",
"source_location": {
"column": 20,
"file": "module1/module1.h",
"line": 15,
"translation_unit": "t00065.cc"
},
"type": "detail::AImpl *"
}
],
"methods": [],
"name": "A",
"namespace": "clanguml::t00065",
"source_location": {
"column": 8,
"file": "module1/module1.h",
"line": 12,
"translation_unit": "t00065.cc"
},
"template_parameters": [],
"type": "class"
}
],
"name": "module1",
"type": "directory"
},
{
"display_name": "module2",
"elements": [
{
"display_name": "concepts",
"elements": [
{
"display_name": "bconcept<T>",
"id": "10603803257069770961",
"name": "bconcept",
"namespace": "clanguml::t00065",
"parameters": [
{
"name": "t",
"type": "T"
}
],
"source_location": {
"column": 9,
"file": "module2/concepts/concepts.h",
"line": 7,
"translation_unit": "t00065.cc"
},
"statements": [
"T{}",
"t.b()"
],
"type": "concept"
}
],
"name": "concepts",
"type": "directory"
},
{
"bases": [],
"display_name": "B",
"id": "13214484568916240266",
"is_abstract": false,
"is_nested": false,
"is_struct": true,
"is_template": false,
"is_union": false,
"members": [],
"methods": [
{
"access": "public",
"display_name": "B",
"is_const": false,
"is_consteval": false,
"is_constexpr": false,
"is_constructor": true,
"is_copy_assignment": false,
"is_coroutine": false,
"is_defaulted": true,
"is_deleted": false,
"is_move_assignment": false,
"is_noexcept": false,
"is_operator": false,
"is_pure_virtual": false,
"is_static": false,
"is_virtual": false,
"name": "B",
"parameters": [],
"source_location": {
"column": 5,
"file": "module2/module2.h",
"line": 8,
"translation_unit": "t00065.cc"
},
"template_parameters": [],
"type": "void"
},
{
"access": "public",
"display_name": "b",
"is_const": false,
"is_consteval": false,
"is_constexpr": false,
"is_constructor": false,
"is_copy_assignment": false,
"is_coroutine": false,
"is_defaulted": false,
"is_deleted": false,
"is_move_assignment": false,
"is_noexcept": false,
"is_operator": false,
"is_pure_virtual": false,
"is_static": false,
"is_virtual": false,
"name": "b",
"parameters": [],
"source_location": {
"column": 10,
"file": "module2/module2.h",
"line": 9,
"translation_unit": "t00065.cc"
},
"template_parameters": [],
"type": "void"
}
],
"name": "B",
"namespace": "clanguml::t00065",
"source_location": {
"column": 8,
"file": "module2/module2.h",
"line": 7,
"translation_unit": "t00065.cc"
},
"template_parameters": [],
"type": "class"
},
{
"bases": [],
"display_name": "C<T>",
"id": "9259024118151657882",
"is_abstract": false,
"is_nested": false,
"is_struct": true,
"is_template": true,
"is_union": false,
"members": [
{
"access": "public",
"is_static": false,
"name": "t",
"source_location": {
"column": 8,
"file": "module2/module2.h",
"line": 13,
"translation_unit": "t00065.cc"
},
"type": "T *"
}
],
"methods": [],
"name": "C",
"namespace": "clanguml::t00065",
"source_location": {
"column": 30,
"file": "module2/module2.h",
"line": 12,
"translation_unit": "t00065.cc"
},
"template_parameters": [
{
"is_variadic": false,
"kind": "template_type",
"name": "T",
"template_parameters": []
}
],
"type": "class"
},
{
"bases": [],
"display_name": "C<int>",
"id": "4644600031360357658",
"is_abstract": false,
"is_nested": false,
"is_struct": false,
"is_template": true,
"is_union": false,
"members": [],
"methods": [],
"name": "C",
"namespace": "clanguml::t00065",
"source_location": {
"column": 30,
"file": "module2/module2.h",
"line": 12,
"translation_unit": "t00065.cc"
},
"template_parameters": [
{
"is_variadic": false,
"kind": "argument",
"template_parameters": [],
"type": "int"
}
],
"type": "class"
},
{
"bases": [],
"display_name": "D<bconcept T>",
"id": "13758023432702815554",
"is_abstract": false,
"is_nested": false,
"is_struct": true,
"is_template": true,
"is_union": false,
"members": [
{
"access": "public",
"is_static": false,
"name": "t",
"source_location": {
"column": 7,
"file": "module2/module2.h",
"line": 17,
"translation_unit": "t00065.cc"
},
"type": "T"
},
{
"access": "public",
"is_static": false,
"name": "c",
"source_location": {
"column": 12,
"file": "module2/module2.h",
"line": 18,
"translation_unit": "t00065.cc"
},
"type": "C<int>"
}
],
"methods": [],
"name": "D",
"namespace": "clanguml::t00065",
"source_location": {
"column": 30,
"file": "module2/module2.h",
"line": 16,
"translation_unit": "t00065.cc"
},
"template_parameters": [
{
"is_variadic": false,
"kind": "template_type",
"name": "T",
"template_parameters": []
}
],
"type": "class"
},
{
"bases": [],
"display_name": "C<B>",
"id": "10987226769965509366",
"is_abstract": false,
"is_nested": false,
"is_struct": false,
"is_template": true,
"is_union": false,
"members": [],
"methods": [],
"name": "C",
"namespace": "clanguml::t00065",
"source_location": {
"column": 30,
"file": "module2/module2.h",
"line": 12,
"translation_unit": "t00065.cc"
},
"template_parameters": [
{
"is_variadic": false,
"kind": "argument",
"template_parameters": [],
"type": "B"
}
],
"type": "class"
},
{
"bases": [],
"display_name": "D<B>",
"id": "16194208100981835856",
"is_abstract": false,
"is_nested": false,
"is_struct": false,
"is_template": true,
"is_union": false,
"members": [],
"methods": [],
"name": "D",
"namespace": "clanguml::t00065",
"source_location": {
"column": 30,
"file": "module2/module2.h",
"line": 16,
"translation_unit": "t00065.cc"
},
"template_parameters": [
{
"is_variadic": false,
"kind": "argument",
"template_parameters": [],
"type": "B"
}
],
"type": "class"
}
],
"name": "module2",
"type": "directory"
},
{
"bases": [],
"display_name": "R",
"id": "8656895691309819509",
"is_abstract": false,
"is_nested": false,
"is_struct": true,
"is_template": false,
"is_union": false,
"members": [
{
"access": "public",
"is_static": false,
"name": "a",
"source_location": {
"column": 8,
"file": "t00065.cc",
"line": 7,
"translation_unit": "t00065.cc"
},
"type": "A *"
},
{
"access": "public",
"is_static": false,
"name": "c",
"source_location": {
"column": 10,
"file": "t00065.cc",
"line": 8,
"translation_unit": "t00065.cc"
},
"type": "C<B>"
},
{
"access": "public",
"is_static": false,
"name": "d",
"source_location": {
"column": 10,
"file": "t00065.cc",
"line": 9,
"translation_unit": "t00065.cc"
},
"type": "D<B>"
}
],
"methods": [],
"name": "R",
"namespace": "clanguml::t00065",
"source_location": {
"column": 8,
"file": "t00065.cc",
"line": 6,
"translation_unit": "t00065.cc"
},
"template_parameters": [],
"type": "class"
}
],
"name": "t00065_class",
"package_type": "directory",
"relationships": [
{
"access": "public",
"destination": "17162903884311351787",
"label": "abc",
"source": "9425556339266405903",
"type": "aggregation"
},
{
"access": "public",
"destination": "11487521750481135557",
"label": "xyz",
"source": "9425556339266405903",
"type": "aggregation"
},
{
"access": "public",
"destination": "5398059314469894043",
"label": "pimpl",
"source": "9425556339266405903",
"type": "association"
},
{
"access": "public",
"destination": "9259024118151657882",
"source": "4644600031360357658",
"type": "instantiation"
},
{
"destination": "10603803257069770961",
"label": "T",
"source": "13758023432702815554",
"type": "constraint"
},
{
"access": "public",
"destination": "4644600031360357658",
"label": "c",
"source": "13758023432702815554",
"type": "aggregation"
},
{
"access": "public",
"destination": "13214484568916240266",
"source": "10987226769965509366",
"type": "dependency"
},
{
"access": "public",
"destination": "9259024118151657882",
"source": "10987226769965509366",
"type": "instantiation"
},
{
"access": "public",
"destination": "13214484568916240266",
"source": "16194208100981835856",
"type": "dependency"
},
{
"access": "public",
"destination": "13758023432702815554",
"source": "16194208100981835856",
"type": "instantiation"
},
{
"access": "public",
"destination": "9425556339266405903",
"label": "a",
"source": "8656895691309819509",
"type": "association"
},
{
"access": "public",
"destination": "10987226769965509366",
"label": "c",
"source": "8656895691309819509",
"type": "aggregation"
},
{
"access": "public",
"destination": "16194208100981835856",
"label": "d",
"source": "8656895691309819509",
"type": "aggregation"
}
],
"using_namespace": "clanguml::t00065"
}