summaryrefslogtreecommitdiffstats
path: root/HACKING
diff options
context:
space:
mode:
authorSandro S. Andrade <sandroandrade@kde.org>2012-10-02 23:49:08 +0000
committerSandro S. Andrade <sandroandrade@kde.org>2012-10-03 01:50:16 +0200
commit56dd3b7bbb593f2a11574789bbc5c53311febc17 (patch)
treeb15ede40e82bed8f2f6cc6e407f26aa1f88587cb /HACKING
parentcd096732c2e98209bff8d091408490cfcdc1bf6a (diff)
Use QList or QSet depending on attribute's @isUnique and @isOrdered
Change-Id: Idbf10833edb6f9205d636c81d753bc4c3337ca93 Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'HACKING')
-rw-r--r--HACKING14
1 files changed, 13 insertions, 1 deletions
diff --git a/HACKING b/HACKING
index b76b801f..9617ffe5 100644
--- a/HACKING
+++ b/HACKING
@@ -52,5 +52,17 @@ XMI->Qt Mapping Rules:
mapped to the corresponding mapped primitive type or enumeration
10) All single-valued object attributes were mapped to a pointer to
the attribute class
-11) All multi-valued attributes were mapped to a pointer to a QList
+11) All multi-valued attributes were mapped to a pointer to a collection
of pointers to the corresponding single-valued attribute
+
+12) Mapping rules for containers:
+
+|-----------|----------|----------------|------------------------|
+| isOrdered | isUnique | OMG Collection | Qt Collection |
+|-----------|----------|----------------|------------------------|
+| false | true | Set | QSet |
+| true | true | OrderedSet | QList + verification |
+| false | false | Bag | QList (order is extra) |
+| true | false | Sequence | QList |
+|-----------|----------|----------------|------------------------|
+