From 78f24b65e4a84c528338cc52e71efa4aa58e656e Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Tue, 3 Mar 2015 15:17:51 +0100 Subject: Renamed isSubtree to subtree and isRoot to root --- src/core/model/Ontology.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/core/model/Ontology.cpp') diff --git a/src/core/model/Ontology.cpp b/src/core/model/Ontology.cpp index 3af727d..f52f8ca 100644 --- a/src/core/model/Ontology.cpp +++ b/src/core/model/Ontology.cpp @@ -232,7 +232,7 @@ static NodeVector collect(const Node *start, F match) } static std::vector collectPermittedTokens( - const Node *start, Handle domain) + const Node *start, Handle ontology) { // gather SyntaxDescriptors for structure children first. std::vector res; @@ -250,7 +250,7 @@ static std::vector collectPermittedTokens( return false; }); // gather SyntaxDescriptors for AnnotationClasses. - for (auto a : domain->getAnnotationClasses()) { + for (auto a : ontology->getAnnotationClasses()) { SyntaxDescriptor stx = a->getSyntaxDescriptor(); if (!stx.isEmpty()) { res.push_back(stx); @@ -462,7 +462,7 @@ std::vector FieldDescriptor::getPermittedTokens() const return std::vector(); } return collectPermittedTokens( - this, getParent().cast()->getParent().cast()); + this, getParent().cast()->getParent().cast()); } /* Class Descriptor */ @@ -762,7 +762,7 @@ std::vector Descriptor::getPermittedTokens() const if (getParent() == nullptr) { return std::vector(); } - return collectPermittedTokens(this, getParent().cast()); + return collectPermittedTokens(this, getParent().cast()); } /* Class StructuredClass */ @@ -1092,7 +1092,7 @@ static void gatherTokenDescriptors( } } -std::vector Domain::getAllTokenDescriptors() const +std::vector Ontology::getAllTokenDescriptors() const { std::vector res; // note all fields that are already visited because FieldReferences might @@ -1129,4 +1129,4 @@ const Rtti Ontology = RttiBuilder("Ontology") .parent(&RootNode) .composedOf({&StructuredClass, &AnnotationClass}); } -} \ No newline at end of file +} -- cgit v1.2.3