diff options
author | Sandro S. Andrade <sandroandrade@kde.org> | 2012-10-02 23:49:08 +0000 |
---|---|---|
committer | Sandro S. Andrade <sandroandrade@kde.org> | 2012-10-03 01:50:16 +0200 |
commit | 56dd3b7bbb593f2a11574789bbc5c53311febc17 (patch) | |
tree | b15ede40e82bed8f2f6cc6e407f26aa1f88587cb /HACKING | |
parent | cd096732c2e98209bff8d091408490cfcdc1bf6a (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-- | HACKING | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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 | +|-----------|----------|----------------|------------------------| + |