summaryrefslogtreecommitdiff
path: root/src/core/model/Domain.hpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-15 23:24:06 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-15 23:24:06 +0100
commit26c81e022544411fdb888b9d5c49a91117f01dc5 (patch)
treeb1d78ea019648401b555116e91b708224e785ed3 /src/core/model/Domain.hpp
parent395bfc196b5946acfee774f64ad7355610d20485 (diff)
parenta18012702fa6f9ff593c180112cbbc64c2ee0c41 (diff)
Merge branch 'master' of somweyr.de:ousia
Diffstat (limited to 'src/core/model/Domain.hpp')
-rw-r--r--src/core/model/Domain.hpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/core/model/Domain.hpp b/src/core/model/Domain.hpp
index 081435a..350c7ba 100644
--- a/src/core/model/Domain.hpp
+++ b/src/core/model/Domain.hpp
@@ -791,9 +791,9 @@ private:
/**
* Helper method for getFieldDescriptors.
*/
- void gatherFieldDescriptors(NodeVector<FieldDescriptor> &current,
- std::set<std::string> &overriddenFields,
- bool hasTREE) const;
+ Rooted<FieldDescriptor> gatherFieldDescriptors(
+ NodeVector<FieldDescriptor> &current,
+ std::set<std::string> &overriddenFields, bool hasTREE) const;
protected:
bool doValidate(Logger &logger) const override;
@@ -915,10 +915,14 @@ public:
void removeSubclass(Handle<StructuredClass> sc, Logger &logger);
/**
- * Returns a const reference to the NodeVector of all FieldDescriptors of
+ * Returns a NodeVector of all FieldDescriptors of
* this StructuredClass. This also merges the FieldDescriptors directly
* belonging to this StructuredClass with all FieldDescritptors of its
- * Superclass (and so on recurvively).
+ * Superclass (and so on recurvively). The order of field descriptors is
+ * as follows:
+ * 1.) non-overridden SUBTREE FieldDescriptors of super classes.
+ * 2.) SUBTREE FieldDescriptors of this class.
+ * 3.) TREE FieldDescriptor (either inherited from super class or direct)
*
* @return a NodeVector of all FieldDescriptors of this StructuredClass.
*/