diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-03-03 15:17:51 +0100 |
---|---|---|
committer | Andreas Stöckel <andreas@somweyr.de> | 2015-03-03 15:17:51 +0100 |
commit | 78f24b65e4a84c528338cc52e71efa4aa58e656e (patch) | |
tree | 2a61cbdecae1f658999d226a9c9630bb90d9338c /src/core/model/Ontology.cpp | |
parent | 466ff991bcfad76d78100193aacbfaf74d542b26 (diff) |
Renamed isSubtree to subtree and isRoot to root
Diffstat (limited to 'src/core/model/Ontology.cpp')
-rw-r--r-- | src/core/model/Ontology.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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<Node> collect(const Node *start, F match) } static std::vector<SyntaxDescriptor> collectPermittedTokens( - const Node *start, Handle<Domain> domain) + const Node *start, Handle<Ontology> ontology) { // gather SyntaxDescriptors for structure children first. std::vector<SyntaxDescriptor> res; @@ -250,7 +250,7 @@ static std::vector<SyntaxDescriptor> 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<SyntaxDescriptor> FieldDescriptor::getPermittedTokens() const return std::vector<SyntaxDescriptor>(); } return collectPermittedTokens( - this, getParent().cast<Descriptor>()->getParent().cast<Domain>()); + this, getParent().cast<Descriptor>()->getParent().cast<Ontology>()); } /* Class Descriptor */ @@ -762,7 +762,7 @@ std::vector<SyntaxDescriptor> Descriptor::getPermittedTokens() const if (getParent() == nullptr) { return std::vector<SyntaxDescriptor>(); } - return collectPermittedTokens(this, getParent().cast<Domain>()); + return collectPermittedTokens(this, getParent().cast<Ontology>()); } /* Class StructuredClass */ @@ -1092,7 +1092,7 @@ static void gatherTokenDescriptors( } } -std::vector<TokenDescriptor *> Domain::getAllTokenDescriptors() const +std::vector<TokenDescriptor *> Ontology::getAllTokenDescriptors() const { std::vector<TokenDescriptor *> res; // note all fields that are already visited because FieldReferences might @@ -1129,4 +1129,4 @@ const Rtti Ontology = RttiBuilder<ousia::Ontology>("Ontology") .parent(&RootNode) .composedOf({&StructuredClass, &AnnotationClass}); } -}
\ No newline at end of file +} |