Fixed handling of nested and anonymous classes
This commit is contained in:
@@ -28,6 +28,7 @@ std::atomic_uint64_t diagram_element::m_nextId = 1;
|
||||
|
||||
diagram_element::diagram_element()
|
||||
: id_{0}
|
||||
, nested_{false}
|
||||
, complete_{false}
|
||||
{
|
||||
}
|
||||
@@ -84,6 +85,10 @@ inja::json diagram_element::context() const
|
||||
return ctx;
|
||||
}
|
||||
|
||||
bool diagram_element::is_nested() const { return nested_; }
|
||||
|
||||
void diagram_element::nested(bool nested) { nested_ = nested; }
|
||||
|
||||
bool diagram_element::complete() const { return complete_; }
|
||||
|
||||
void diagram_element::complete(bool completed) { complete_ = completed; }
|
||||
|
||||
@@ -65,6 +65,10 @@ public:
|
||||
|
||||
virtual inja::json context() const;
|
||||
|
||||
bool is_nested() const;
|
||||
|
||||
void nested(bool nested);
|
||||
|
||||
bool complete() const;
|
||||
|
||||
void complete(bool completed);
|
||||
@@ -73,7 +77,7 @@ private:
|
||||
id_t id_;
|
||||
std::string name_;
|
||||
std::vector<relationship> relationships_;
|
||||
|
||||
bool nested_;
|
||||
bool complete_;
|
||||
|
||||
static std::atomic_uint64_t m_nextId;
|
||||
|
||||
Reference in New Issue
Block a user