diff options
author | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-01-14 00:09:55 +0100 |
---|---|---|
committer | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-01-14 00:09:55 +0100 |
commit | b65781e2158a362025741a405fcaa7e54f4b7733 (patch) | |
tree | 7ca258dc37b87022bc42fcfb2db5b49d130c95ae /src/core/model/Domain.hpp | |
parent | 9376ae9c73e1c2faadac546a0a0cde26b4a5c676 (diff) |
Removed parent mechanism in object graph representation. This is only a relevant concept for the parsed XML language. It can be fully expressed by FieldDescriptors and their children in the object graph.
Diffstat (limited to 'src/core/model/Domain.hpp')
-rw-r--r-- | src/core/model/Domain.hpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/core/model/Domain.hpp b/src/core/model/Domain.hpp index a5ea929..bae980a 100644 --- a/src/core/model/Domain.hpp +++ b/src/core/model/Domain.hpp @@ -558,7 +558,6 @@ class StructuredClass : public Descriptor { private: const Cardinality cardinality; Owned<StructuredClass> isa; - NodeVector<FieldDescriptor> parents; public: const bool transparent; @@ -599,7 +598,6 @@ public: : Descriptor(mgr, std::move(name), domain, attributesDescriptor), cardinality(cardinality), isa(acquire(isa)), - parents(this), transparent(transparent), root(root) { @@ -620,33 +618,6 @@ public: * hierarchy (!). */ Rooted<StructuredClass> getIsA() const { return isa; } - - /** - * Returns a const reference to the NodeVector of FieldDescriptors that - * should allow an instance of this StructuredClass as child in the - * Structure Tree. This enables you to "invade" other domains as described - * in the StructuredClass documentation. - * - * @return a const reference to the NodeVector of FieldDescriptors that - * should allow an instance of this StructuredClass as child in the - * Structure Tree. - */ - const NodeVector<FieldDescriptor> &getParents() const { return parents; } - - /** - * Adds a FieldDescriptor that should allow an instance of this - * StructuredClass as a child in the Structure Tree. - */ - void addParent(Handle<FieldDescriptor> p) { parents.push_back(p); } - - /** - * Adds multiple FieldDescriptors that should allow an instance of this - * StructuredClass as a child in the Structure Tree. - */ - void addParents(const std::vector<Handle<FieldDescriptor>> &ps) - { - parents.insert(parents.end(), ps.begin(), ps.end()); - } }; /** |