Added package dependencies and dependants filter

This commit is contained in:
Bartek Kryza
2022-04-18 19:29:08 +02:00
parent 2043727565
commit 5b8e40c1eb
29 changed files with 359 additions and 92 deletions

View File

@@ -1,5 +1,5 @@
/**
* src/package_diagram/model/class.h
* src/common/model/package.h
*
* Copyright (c) 2021-2022 Bartek Kryza <bkryza@gmail.com>
*
@@ -54,3 +54,17 @@ private:
bool is_deprecated_{false};
};
}
namespace std {
template <>
struct hash<type_safe::object_ref<const clanguml::common::model::package>> {
std::size_t operator()(
const type_safe::object_ref<const clanguml::common::model::package>
&key) const
{
using clanguml::common::model::package;
return std::hash<std::string>{}(key.get().full_name(false));
}
};
}