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

@@ -30,6 +30,8 @@ class element : public decorated_element {
public:
element(const std::vector<std::string> &using_namespaces);
virtual ~element() = default;
std::string alias() const;
void set_name(const std::string &name) { name_ = name; }
@@ -54,6 +56,8 @@ public:
void append(const element &e);
friend bool operator==(const element &l, const element &r);
protected:
const uint64_t m_id{0};