Ensure class methods and fields are only added once

This commit is contained in:
Bartek Kryza
2022-08-31 18:44:33 +02:00
parent 0cef28ac02
commit 86c5444407
3 changed files with 23 additions and 1 deletions

View File

@@ -65,11 +65,17 @@ public:
virtual inja::json context() const;
bool complete() const;
void complete(bool completed);
private:
id_t id_;
std::string name_;
std::vector<relationship> relationships_;
bool complete_;
static std::atomic_uint64_t m_nextId;
};
}