Initial refactor of id_t to a separate class

This commit is contained in:
Bartek Kryza
2024-06-04 00:03:26 +02:00
parent e21c2d2b14
commit cf79b3184c
37 changed files with 374 additions and 248 deletions

View File

@@ -53,7 +53,7 @@ public:
*
* @return Elements id.
*/
common::id_t id() const;
const common::id_t& id() const;
/**
* Set elements id.
@@ -185,8 +185,8 @@ public:
void complete(bool completed);
private:
id_t id_{0};
std::optional<id_t> parent_element_id_{0};
id_t id_{};
std::optional<common::id_t> parent_element_id_{};
std::string name_;
std::vector<relationship> relationships_;
bool nested_{false};