From 67f25b93b847b43a62a4148e626481c3f6d0cd9b Mon Sep 17 00:00:00 2001 From: Benjamin Paassen Date: Sun, 15 Feb 2015 20:16:04 +0100 Subject: added getChildrenWithSubclasses and thus made pathTo and collect more compact. --- src/core/model/Domain.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/core/model/Domain.hpp') diff --git a/src/core/model/Domain.hpp b/src/core/model/Domain.hpp index 3f41ecf..081435a 100644 --- a/src/core/model/Domain.hpp +++ b/src/core/model/Domain.hpp @@ -274,6 +274,17 @@ public: */ const NodeVector &getChildren() const { return children; } + /** + * Returns all StructuredClasses whose instances are allowed as children in + * the Structure Tree of instances of this field including subclasses of + * children, which are allowed directly. + * + * @return all StructuredClasses whose instances are allowed as children in + * the Structure Tree of instances of this field including subclasses of + * children, which are allowed directly. + */ + NodeVector getChildrenWithSubclasses() const; + /** * Adds a StructuredClass whose instances shall be allowed as children in * the StructureTree of instances of this field. -- cgit v1.2.3