25 if (std::holds_alternative<std::string>(m.
value())) {
26 out << std::get<std::string>(m.
value());
29 out << YAML::BeginMap;
30 out << YAML::Key <<
"r" << YAML::Value
31 << std::get<regex>(m.
value()).pattern;
40 if (std::holds_alternative<common::model::namespace_>(m.value())) {
41 out << std::get<common::model::namespace_>(m.value());
44 out << YAML::BeginMap;
45 out << YAML::Key <<
"r" << YAML::Value
46 << std::get<regex>(m.value()).pattern;
115 out << YAML::BeginMap;
116 out << YAML::Key <<
"match";
117 out << YAML::BeginMap;
118 out << YAML::Key <<
"radius" << YAML::Value << c.
radius;
119 out << YAML::Key <<
"pattern" << YAML::Value << c.
pattern;
128 out << YAML::BeginMap;
130 out << YAML::Key <<
"namespaces" << YAML::Value << f.
namespaces;
132 out << YAML::Key <<
"modules" << YAML::Value << f.
modules;
134 out << YAML::Key <<
"module_access" << YAML::Value << f.
module_access;
136 out << YAML::Key <<
"access" << YAML::Value << f.
access;
138 out << YAML::Key <<
"context" << YAML::Value << f.
context;
140 out << YAML::Key <<
"dependants" << YAML::Value << f.
dependants;
142 out << YAML::Key <<
"dependencies" << YAML::Value << f.
dependencies;
144 out << YAML::Key <<
"elements" << YAML::Value << f.
elements;
146 out << YAML::Key <<
"element_types" << YAML::Value << f.
element_types;
148 out << YAML::Key <<
"method_types" << YAML::Value << f.
method_types;
149 if (!f.
paths.empty())
150 out << YAML::Key <<
"paths" << YAML::Value << f.
paths;
152 out << YAML::Key <<
"relationships" << YAML::Value << f.
relationships;
154 out << YAML::Key <<
"specializations" << YAML::Value
157 out << YAML::Key <<
"subclasses" << YAML::Value << f.
subclasses;
159 out << YAML::Key <<
"parents" << YAML::Value << f.
parents;
161 out << YAML::Key <<
"callee_types" << YAML::Value << f.
callee_types;
171 out << YAML::BeginMap;
173 out << YAML::Key <<
"before" << YAML::Value << p.
before;
174 if (!p.
after.empty())
175 out << YAML::Key <<
"after" << YAML::Value << p.
after;
189 out << YAML::BeginMap;
190 out << YAML::Key <<
"link" << YAML::Value << glc.
link;
191 out << YAML::Key <<
"tooltip" << YAML::Value << glc.
tooltip;
198 out << YAML::BeginMap;
199 out << YAML::Key <<
"branch" << YAML::Value << gc.
branch;
200 out << YAML::Key <<
"revision" << YAML::Value << gc.
revision;
201 out << YAML::Key <<
"commit" << YAML::Value << gc.
commit;
202 out << YAML::Key <<
"toplevel" << YAML::Value << gc.
toplevel;
210 out << YAML::BeginMap;
211 out << YAML::Key <<
"default" << YAML::Value << rh.
default_hint;
213 out << YAML::Key << k << YAML::Value << v;
231YAML::Emitter &
operator<<(YAML::Emitter &out,
const std::filesystem::path &p)
238 YAML::Emitter &out,
const std::vector<std::filesystem::path> &paths)
240 out << YAML::BeginSeq;
241 for (
const auto &p : paths)
250 out << YAML::BeginMap;
252 out << YAML::Key << c.
hint << YAML::Value;
253 if (std::holds_alternative<std::string>(c.
entity))
254 out << std::get<std::string>(c.
entity);
255 else if (std::holds_alternative<std::vector<std::string>>(c.
entity))
256 out << std::get<std::vector<std::string>>(c.
entity);
264 out << YAML::BeginMap;
273 out << YAML::BeginMap;
281 out << dynamic_cast<const inheritable_diagram_options &>(c);
283 out << YAML::Key <<
"diagrams";
284 out << YAML::BeginMap;
286 for (
const auto &[k, v] : c.
diagrams) {
287 out << YAML::Key << k;
289 out << YAML::Value << dynamic_cast<class_diagram &>(*v);
292 out << YAML::Value << dynamic_cast<sequence_diagram &>(*v);
295 out << YAML::Value << dynamic_cast<include_diagram &>(*v);
298 out << YAML::Value << dynamic_cast<package_diagram &>(*v);
325 if (
const auto *cd =
dynamic_cast<const class_diagram *
>(&c);
333 out << YAML::Key <<
"relationship_hints" << YAML::Value
338 out << YAML::Key <<
"type_aliases" << YAML::Value
375 out << YAML::BeginMap;
376 out << YAML::Key <<
"type" << YAML::Value << c.
type();
378 out << dynamic_cast<const inheritable_diagram_options &>(c);
385 out << YAML::BeginMap;
386 out << YAML::Key <<
"type" << YAML::Value << c.
type();
390 out << dynamic_cast<const inheritable_diagram_options &>(c);
397 out << YAML::BeginMap;
398 out << YAML::Key <<
"type" << YAML::Value << c.
type();
400 out << dynamic_cast<const inheritable_diagram_options &>(c);
407 out << YAML::BeginMap;
408 out << YAML::Key <<
"type" << YAML::Value << c.
type();
410 out << dynamic_cast<const inheritable_diagram_options &>(c);