summaryrefslogtreecommitdiff
path: root/src/core/model/Domain.hpp
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-02-12 19:31:50 +0100
committerBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-02-12 19:31:50 +0100
commit89f01a0a49f4fd23034d532b37d54d3f3f612082 (patch)
tree3d52792489d49b20a25c0332e3b204ab6654e365 /src/core/model/Domain.hpp
parent110fb7da850377e39b2879da44339dc936c266dc (diff)
added a method to retrieve all reachable default fields from a given descriptor.
Diffstat (limited to 'src/core/model/Domain.hpp')
-rw-r--r--src/core/model/Domain.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/model/Domain.hpp b/src/core/model/Domain.hpp
index 91d635e..c277812 100644
--- a/src/core/model/Domain.hpp
+++ b/src/core/model/Domain.hpp
@@ -612,6 +612,18 @@ public:
*/
std::pair<NodeVector<Node>, bool> pathTo(Handle<FieldDescriptor> field,
Logger &logger) const;
+
+ /**
+ * Returns a vector of all TREE fields that are allowed as structure tree
+ * children of an instance of this Descriptor. This also makes use of
+ * transparency.
+ * The list is sorted by the number of transparent elements that have to be
+ * constructed to arrive at the respective FieldDescriptor.
+ *
+ * @return a vector of all TREE fields that are allowed as structure tree
+ * children of an instance of this Descriptor.
+ */
+ NodeVector<FieldDescriptor> getDefaultFields() const;
};
/*
* TODO: We should discuss Cardinalities one more time. Is it smart to define