diagrams:
t00071_class:
type: class
glob:
- t00071.cc
include:
namespaces:
- clanguml::t00071
generate_packages: true
package_type: module
using_namespace: clanguml::t00071
using_module: t00071
File tests/t00071/t00071.cc
import t00071.app;
import t00071.app.lib1;
import t00071.app.lib1.mod1;
import t00071.app.lib1.mod2;
import t00071.app.lib2;
namespace clanguml {
namespace t00071 {
class R {
A *a;
B *b;
C *c;
};
}
}
File tests/t00071/src/lib1mod2.cppm
export module t00071.app.lib1.mod2;
export namespace clanguml::t00071 {
class E { };
}
File tests/t00071/src/t00071_mod.cppm
export module t00071.app;
export import t00071.app.lib1;
export import t00071.app.lib2;
export namespace clanguml::t00071 {
class A {
int get() { return a; }
int a;
};
}
File tests/t00071/src/lib2.cppm
export module t00071.app.lib2;
export namespace clanguml::t00071 {
class C { };
template <typename T> class CC {
T t;
};
namespace detail {
enum class CCC { ccc1, ccc2 };
}
}
File tests/t00071/src/lib1.cppm
export module t00071.app.lib1;
export namespace clanguml::t00071 {
class B { };
template <typename T> class BB {
T t;
};
namespace detail {
enum class BBB { bbb1, bbb2 };
} // namespace detail
}
File tests/t00071/src/lib1mod1.cppm
export module t00071.app.lib1.mod1;
export namespace clanguml::t00071 {
class D { };
}
{
"diagram_type": "class",
"elements": [
{
"display_name": "app",
"elements": [
{
"display_name": "lib1",
"elements": [
{
"bases": [],
"display_name": "B",
"id": "10558900082015743999",
"is_abstract": false,
"is_nested": false,
"is_struct": false,
"is_template": false,
"is_union": false,
"members": [],
"methods": [],
"module": {
"is_private": false,
"name": "t00071.app.lib1"
},
"name": "B",
"namespace": "clanguml::t00071",
"source_location": {
"column": 7,
"file": "src/lib1.cppm",
"line": 4,
"translation_unit": "t00071.cc"
},
"template_parameters": [],
"type": "class"
},
{
"bases": [],
"display_name": "BB<T>",
"id": "4557062373102935688",
"is_abstract": false,
"is_nested": false,
"is_struct": false,
"is_template": true,
"is_union": false,
"members": [
{
"access": "private",
"is_static": false,
"name": "t",
"source_location": {
"column": 7,
"file": "src/lib1.cppm",
"line": 7,
"translation_unit": "t00071.cc"
},
"type": "T"
}
],
"methods": [],
"module": {
"is_private": false,
"name": "t00071.app.lib1"
},
"name": "BB",
"namespace": "clanguml::t00071",
"source_location": {
"column": 29,
"file": "src/lib1.cppm",
"line": 6,
"translation_unit": "t00071.cc"
},
"template_parameters": [
{
"is_variadic": false,
"kind": "template_type",
"name": "T",
"template_parameters": []
}
],
"type": "class"
},
{
"constants": [
"bbb1",
"bbb2"
],
"display_name": "BBB",
"id": "13000624492335538351",
"is_nested": false,
"module": {
"is_private": false,
"name": "t00071.app.lib1"
},
"name": "BBB",
"namespace": "clanguml::t00071::detail",
"source_location": {
"column": 12,
"file": "src/lib1.cppm",
"line": 11,
"translation_unit": "t00071.cc"
},
"type": "enum"
},
{
"display_name": "mod1",
"elements": [
{
"bases": [],
"display_name": "D",
"id": "9350216514584343155",
"is_abstract": false,
"is_nested": false,
"is_struct": false,
"is_template": false,
"is_union": false,
"members": [],
"methods": [],
"module": {
"is_private": false,
"name": "t00071.app.lib1.mod1"
},
"name": "D",
"namespace": "clanguml::t00071",
"source_location": {
"column": 7,
"file": "src/lib1mod1.cppm",
"line": 4,
"translation_unit": "t00071.cc"
},
"template_parameters": [],
"type": "class"
}
],
"name": "mod1",
"type": "module"
},
{
"display_name": "mod2",
"elements": [
{
"bases": [],
"display_name": "E",
"id": "10421558092188284034",
"is_abstract": false,
"is_nested": false,
"is_struct": false,
"is_template": false,
"is_union": false,
"members": [],
"methods": [],
"module": {
"is_private": false,
"name": "t00071.app.lib1.mod2"
},
"name": "E",
"namespace": "clanguml::t00071",
"source_location": {
"column": 7,
"file": "src/lib1mod2.cppm",
"line": 4,
"translation_unit": "t00071.cc"
},
"template_parameters": [],
"type": "class"
}
],
"name": "mod2",
"type": "module"
}
],
"name": "lib1",
"type": "module"
},
{
"display_name": "lib2",
"elements": [
{
"bases": [],
"display_name": "C",
"id": "13579711934180829394",
"is_abstract": false,
"is_nested": false,
"is_struct": false,
"is_template": false,
"is_union": false,
"members": [],
"methods": [],
"module": {
"is_private": false,
"name": "t00071.app.lib2"
},
"name": "C",
"namespace": "clanguml::t00071",
"source_location": {
"column": 7,
"file": "src/lib2.cppm",
"line": 4,
"translation_unit": "t00071.cc"
},
"template_parameters": [],
"type": "class"
},
{
"bases": [],
"display_name": "CC<T>",
"id": "15289544269199771130",
"is_abstract": false,
"is_nested": false,
"is_struct": false,
"is_template": true,
"is_union": false,
"members": [
{
"access": "private",
"is_static": false,
"name": "t",
"source_location": {
"column": 7,
"file": "src/lib2.cppm",
"line": 7,
"translation_unit": "t00071.cc"
},
"type": "T"
}
],
"methods": [],
"module": {
"is_private": false,
"name": "t00071.app.lib2"
},
"name": "CC",
"namespace": "clanguml::t00071",
"source_location": {
"column": 29,
"file": "src/lib2.cppm",
"line": 6,
"translation_unit": "t00071.cc"
},
"template_parameters": [
{
"is_variadic": false,
"kind": "template_type",
"name": "T",
"template_parameters": []
}
],
"type": "class"
},
{
"constants": [
"ccc1",
"ccc2"
],
"display_name": "CCC",
"id": "7450229623153646433",
"is_nested": false,
"module": {
"is_private": false,
"name": "t00071.app.lib2"
},
"name": "CCC",
"namespace": "clanguml::t00071::detail",
"source_location": {
"column": 12,
"file": "src/lib2.cppm",
"line": 11,
"translation_unit": "t00071.cc"
},
"type": "enum"
}
],
"name": "lib2",
"type": "module"
},
{
"bases": [],
"display_name": "A",
"id": "17680040592425112949",
"is_abstract": false,
"is_nested": false,
"is_struct": false,
"is_template": false,
"is_union": false,
"members": [
{
"access": "private",
"is_static": false,
"name": "a",
"source_location": {
"column": 9,
"file": "src/t00071_mod.cppm",
"line": 9,
"translation_unit": "t00071.cc"
},
"type": "int"
}
],
"methods": [
{
"access": "private",
"display_name": "get",
"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": "get",
"parameters": [],
"source_location": {
"column": 9,
"file": "src/t00071_mod.cppm",
"line": 7,
"translation_unit": "t00071.cc"
},
"template_parameters": [],
"type": "int"
}
],
"module": {
"is_private": false,
"name": "t00071.app"
},
"name": "A",
"namespace": "clanguml::t00071",
"source_location": {
"column": 7,
"file": "src/t00071_mod.cppm",
"line": 6,
"translation_unit": "t00071.cc"
},
"template_parameters": [],
"type": "class"
}
],
"name": "app",
"type": "module"
},
{
"bases": [],
"display_name": "R",
"id": "13039548962878986617",
"is_abstract": false,
"is_nested": false,
"is_struct": false,
"is_template": false,
"is_union": false,
"members": [
{
"access": "private",
"is_static": false,
"name": "a",
"source_location": {
"column": 8,
"file": "t00071.cc",
"line": 10,
"translation_unit": "t00071.cc"
},
"type": "A *"
},
{
"access": "private",
"is_static": false,
"name": "b",
"source_location": {
"column": 8,
"file": "t00071.cc",
"line": 11,
"translation_unit": "t00071.cc"
},
"type": "B *"
},
{
"access": "private",
"is_static": false,
"name": "c",
"source_location": {
"column": 8,
"file": "t00071.cc",
"line": 12,
"translation_unit": "t00071.cc"
},
"type": "C *"
}
],
"methods": [],
"name": "R",
"namespace": "clanguml::t00071",
"source_location": {
"column": 7,
"file": "t00071.cc",
"line": 9,
"translation_unit": "t00071.cc"
},
"template_parameters": [],
"type": "class"
}
],
"name": "t00071_class",
"package_type": "module",
"relationships": [
{
"access": "private",
"destination": "17680040592425112949",
"label": "a",
"source": "13039548962878986617",
"type": "association"
},
{
"access": "private",
"destination": "10558900082015743999",
"label": "b",
"source": "13039548962878986617",
"type": "association"
},
{
"access": "private",
"destination": "13579711934180829394",
"label": "c",
"source": "13039548962878986617",
"type": "association"
}
],
"using_module": "t00071",
"using_namespace": "clanguml::t00071"
}
<?xml version="1.0"?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd">
<key attr.name="id" attr.type="string" for="graph" id="gd0" />
<key attr.name="diagram_type" attr.type="string" for="graph" id="gd1" />
<key attr.name="name" attr.type="string" for="graph" id="gd2" />
<key attr.name="using_namespace" attr.type="string" for="graph" id="gd3" />
<key attr.name="id" attr.type="string" for="node" id="nd0" />
<key attr.name="type" attr.type="string" for="node" id="nd1" />
<key attr.name="name" attr.type="string" for="node" id="nd2" />
<key attr.name="stereotype" attr.type="string" for="node" id="nd3" />
<key attr.name="url" attr.type="string" for="node" id="nd4" />
<key attr.name="tooltip" attr.type="string" for="node" id="nd5" />
<key attr.name="is_template" attr.type="boolean" for="node" id="nd6" />
<key attr.name="type" attr.type="string" for="edge" id="ed0" />
<key attr.name="access" attr.type="string" for="edge" id="ed1" />
<key attr.name="label" attr.type="string" for="edge" id="ed2" />
<key attr.name="url" attr.type="string" for="edge" id="ed3" />
<graph id="g0" edgedefault="directed" parse.nodeids="canonical" parse.edgeids="canonical" parse.order="nodesfirst">
<data key="gd3">clanguml::t00071</data>
<node id="n0">
<data key="nd2">app</data>
<data key="nd1">module</data>
<graph id="g1" edgedefault="directed" parse.nodeids="canonical" parse.edgeids="canonical" parse.order="nodesfirst">
<node id="n1">
<data key="nd2">lib1</data>
<data key="nd1">module</data>
<graph id="g2" edgedefault="directed" parse.nodeids="canonical" parse.edgeids="canonical" parse.order="nodesfirst">
<node id="n2">
<data key="nd1">class</data>
<data key="nd2"><![CDATA[B]]></data>
<data key="nd6">false</data>
<data key="nd4">https://github.com/bkryza/clang-uml/blob/669b30ea491fc93aa680d5303b8c092431ff11ce/tests/t00071/src/lib1.cppm#L4</data>
<data key="nd5">B</data>
</node>
<node id="n3">
<data key="nd1">class</data>
<data key="nd2"><![CDATA[BB<T>]]></data>
<data key="nd6">true</data>
<data key="nd4">https://github.com/bkryza/clang-uml/blob/669b30ea491fc93aa680d5303b8c092431ff11ce/tests/t00071/src/lib1.cppm#L6</data>
<data key="nd5">BB</data>
</node>
<node id="n4">
<data key="nd1">enum</data>
<data key="nd2"><![CDATA[BBB]]></data>
<data key="nd4">https://github.com/bkryza/clang-uml/blob/669b30ea491fc93aa680d5303b8c092431ff11ce/tests/t00071/src/lib1.cppm#L11</data>
<data key="nd5">BBB</data>
</node>
<node id="n5">
<data key="nd2">mod1</data>
<data key="nd1">module</data>
<graph id="g3" edgedefault="directed" parse.nodeids="canonical" parse.edgeids="canonical" parse.order="nodesfirst">
<node id="n6">
<data key="nd1">class</data>
<data key="nd2"><![CDATA[D]]></data>
<data key="nd6">false</data>
<data key="nd4">https://github.com/bkryza/clang-uml/blob/669b30ea491fc93aa680d5303b8c092431ff11ce/tests/t00071/src/lib1mod1.cppm#L4</data>
<data key="nd5">D</data>
</node>
</graph>
</node>
<node id="n7">
<data key="nd2">mod2</data>
<data key="nd1">module</data>
<graph id="g4" edgedefault="directed" parse.nodeids="canonical" parse.edgeids="canonical" parse.order="nodesfirst">
<node id="n8">
<data key="nd1">class</data>
<data key="nd2"><![CDATA[E]]></data>
<data key="nd6">false</data>
<data key="nd4">https://github.com/bkryza/clang-uml/blob/669b30ea491fc93aa680d5303b8c092431ff11ce/tests/t00071/src/lib1mod2.cppm#L4</data>
<data key="nd5">E</data>
</node>
</graph>
</node>
</graph>
</node>
<node id="n9">
<data key="nd2">lib2</data>
<data key="nd1">module</data>
<graph id="g5" edgedefault="directed" parse.nodeids="canonical" parse.edgeids="canonical" parse.order="nodesfirst">
<node id="n10">
<data key="nd1">class</data>
<data key="nd2"><![CDATA[C]]></data>
<data key="nd6">false</data>
<data key="nd4">https://github.com/bkryza/clang-uml/blob/669b30ea491fc93aa680d5303b8c092431ff11ce/tests/t00071/src/lib2.cppm#L4</data>
<data key="nd5">C</data>
</node>
<node id="n11">
<data key="nd1">class</data>
<data key="nd2"><![CDATA[CC<T>]]></data>
<data key="nd6">true</data>
<data key="nd4">https://github.com/bkryza/clang-uml/blob/669b30ea491fc93aa680d5303b8c092431ff11ce/tests/t00071/src/lib2.cppm#L6</data>
<data key="nd5">CC</data>
</node>
<node id="n12">
<data key="nd1">enum</data>
<data key="nd2"><![CDATA[CCC]]></data>
<data key="nd4">https://github.com/bkryza/clang-uml/blob/669b30ea491fc93aa680d5303b8c092431ff11ce/tests/t00071/src/lib2.cppm#L11</data>
<data key="nd5">CCC</data>
</node>
</graph>
</node>
<node id="n13">
<data key="nd1">class</data>
<data key="nd2"><![CDATA[A]]></data>
<data key="nd6">false</data>
<data key="nd4">https://github.com/bkryza/clang-uml/blob/669b30ea491fc93aa680d5303b8c092431ff11ce/tests/t00071/src/t00071_mod.cppm#L6</data>
<data key="nd5">A</data>
</node>
</graph>
</node>
<node id="n14">
<data key="nd1">class</data>
<data key="nd2"><![CDATA[R]]></data>
<data key="nd6">false</data>
<data key="nd4">https://github.com/bkryza/clang-uml/blob/669b30ea491fc93aa680d5303b8c092431ff11ce/tests/t00071/t00071.cc#L9</data>
<data key="nd5">R</data>
</node>
<edge id="e0" source="n14" target="n13">
<data key="ed0">association</data>
<data key="ed2">a</data>
<data key="ed1">private</data>
</edge>
<edge id="e1" source="n14" target="n2">
<data key="ed0">association</data>
<data key="ed2">b</data>
<data key="ed1">private</data>
</edge>
<edge id="e2" source="n14" target="n10">
<data key="ed0">association</data>
<data key="ed2">c</data>
<data key="ed1">private</data>
</edge>
</graph>
</graphml>