66 opt_ref<diagram_element>
get(
const std::string &full_name)
const override;
74 opt_ref<diagram_element>
get(
eid_t id)
const override;
81 void add_file(std::unique_ptr<common::model::source_file> &&f);
93 template <
typename ElementT>
94 opt_ref<ElementT>
find(
const std::string &
name)
const;
106 template <
typename ElementT> opt_ref<ElementT>
find(
eid_t id)
const;
135template <
typename ElementT>
139 std::filesystem::path namePath{
name};
140 namePath.make_preferred();
142 for (
const auto &element : element_view<ElementT>::view()) {
143 const auto full_name = element.get().full_name(
false);
145 if (full_name == namePath.string()) {
155 for (
const auto &element : element_view<ElementT>::view()) {
156 if (element.get().id() == id) {
168bool check_diagram_type<clanguml::include_diagram::model::diagram>(
diagram_t t);