35 return element_view<package>::view();
39 const std::string &full_name)
const
41 return find<package>(full_name);
47 return find<package>(
id);
52 LOG_DBG(
"Looking for alias for {}",
id);
54 auto p = find<package>(
id);
55 if (p.has_value() && p.value().id() ==
id)
56 return p.value().alias();
65 ctx[
"type"] =
"package";
67 inja::json::array_t elements{};
70 elements.emplace_back(p.get().context());
73 ctx[
"elements"] = elements;
81 std::set<eid_t> to_remove;
85 to_remove.emplace(c.get().id());
87 element_view<package>::remove(to_remove);
91 for (
auto &c : element_view<package>::view())
92 c.get().apply_filter(
filter(), to_remove);
100bool check_diagram_type<clanguml::package_diagram::model::diagram>(
diagram_t t)
102 return t == diagram_t::kPackage;