summaryrefslogtreecommitdiff
path: root/src/core/model/Domain.hpp
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2014-12-17 14:52:58 +0100
committerBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2014-12-17 14:52:58 +0100
commit3e124a41f14fa3a76febba09f4b58b3f5361efdb (patch)
tree51fb85a870fca3a945e399dcf1a09038ae3f02be /src/core/model/Domain.hpp
parent6dd18a83a1f2c89c5bca435090c80d72cb8716e3 (diff)
noticed that Andreas did already implement Cardinality in form of the RangeSet. Removed my own attempts at programming the Cardinality and used his code.
Diffstat (limited to 'src/core/model/Domain.hpp')
-rw-r--r--src/core/model/Domain.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/model/Domain.hpp b/src/core/model/Domain.hpp
index 65b9b1d..9ae8871 100644
--- a/src/core/model/Domain.hpp
+++ b/src/core/model/Domain.hpp
@@ -84,8 +84,8 @@
#include <core/managed/ManagedContainer.hpp>
#include <core/Node.hpp>
+#include <core/RangeSet.hpp>
-#include "Cardinality.hpp"
#include "Typesystem.hpp"
namespace ousia {
@@ -265,6 +265,8 @@ public:
}
};
+typedef RangeSet<size_t> Cardinality;
+
/**
* A StructuredClass specifies nodes in the StructureTree of a document that
* implements this domain. For more information on the StructureTree please
@@ -342,7 +344,7 @@ public:
*/
class StructuredClass : public Descriptor {
private:
- const Cardinality& cardinality;
+ const Cardinality cardinality;
Owned<StructuredClass> isa;
ManagedVector<FieldDescriptor> parents;