diff options
author | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-02-03 22:36:32 +0100 |
---|---|---|
committer | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-02-03 22:36:32 +0100 |
commit | 7a8a8a31416cfebf785135754035608f4d919bf5 (patch) | |
tree | 01d002a1406e35de7f5ba98fcca4488ab743cb22 /test/core/model/TestDomain.hpp | |
parent | e5a0db3de5bcee624e680ef62d1c02f22e1d3591 (diff) |
removed references to variant::cardinality where I did not need them.
Diffstat (limited to 'test/core/model/TestDomain.hpp')
-rw-r--r-- | test/core/model/TestDomain.hpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/test/core/model/TestDomain.hpp b/test/core/model/TestDomain.hpp index a36f593..88ab715 100644 --- a/test/core/model/TestDomain.hpp +++ b/test/core/model/TestDomain.hpp @@ -34,10 +34,8 @@ static Rooted<Domain> constructBookDomain(Manager &mgr, // Start with the Domain itself. Rooted<Domain> domain{new Domain(mgr, sys, "book")}; // Set up the cardinalities we'll need. - Variant::cardinalityType single; + Cardinality single; single.merge({1}); - Variant::cardinalityType any; - any.merge(Range<size_t>::typeRange()); // Set up the "book" node. Rooted<StructuredClass> book{new StructuredClass( @@ -48,7 +46,7 @@ static Rooted<Domain> constructBookDomain(Manager &mgr, // From there on the "section". Rooted<StructuredClass> section{ - new StructuredClass(mgr, "section", domain, any)}; + new StructuredClass(mgr, "section", domain, AnyCardinality)}; book_field->addChild(section); // And the field of it. @@ -56,7 +54,7 @@ static Rooted<Domain> constructBookDomain(Manager &mgr, // We also add the "paragraph", which is transparent. Rooted<StructuredClass> paragraph{new StructuredClass( - mgr, "paragraph", domain, any, {nullptr}, {nullptr}, true)}; + mgr, "paragraph", domain, AnyCardinality, {nullptr}, {nullptr}, true)}; section_field->addChild(paragraph); book_field->addChild(paragraph); @@ -66,7 +64,7 @@ static Rooted<Domain> constructBookDomain(Manager &mgr, // We append "subsection" to section. Rooted<StructuredClass> subsection{ - new StructuredClass(mgr, "subsection", domain, any)}; + new StructuredClass(mgr, "subsection", domain, AnyCardinality)}; section_field->addChild(subsection); // And the field of it. @@ -78,7 +76,7 @@ static Rooted<Domain> constructBookDomain(Manager &mgr, // Finally we add the "text" node, which is transparent as well. Rooted<StructuredClass> text{new StructuredClass( - mgr, "text", domain, any, {nullptr}, {nullptr}, true)}; + mgr, "text", domain, AnyCardinality, {nullptr}, {nullptr}, true)}; paragraph_field->addChild(text); // ... and has a primitive field. |