Refactored nested_trait to handle element hierarchy

This commit is contained in:
Bartek Kryza
2022-02-17 23:41:08 +01:00
parent 6afd522146
commit 97bf705047
10 changed files with 51 additions and 33 deletions

View File

@@ -31,9 +31,9 @@
namespace clanguml::common::model {
class package : public common::model::element,
public common::model::stylable_element,
public common::model::nested_trait<package> {
class package : public element,
public stylable_element,
public nested_trait<element> {
public:
package(const std::vector<std::string> &using_namespaces);
@@ -44,8 +44,6 @@ public:
std::string full_name(bool relative) const override;
friend bool operator==(const package &l, const package &r);
bool is_deprecated() const;
void set_deprecated(bool deprecated);