[umbrello] [Bug 120862] data types: C++ pointers and references

Ralf Habacker bugzilla_noreply at kde.org
Wed Oct 23 18:59:48 BST 2019


https://bugs.kde.org/show_bug.cgi?id=120862

--- Comment #6 from Ralf Habacker <ralf.habacker at freenet.de> ---
(In reply to Jose N Hinckel from comment #0)
> Version:           1.5.1 (using KDE 3.5.0 Level "a" , SUSE 10.0 UNSUPPORTED)
> Compiler:          Target: i586-suse-linux
> OS:                Linux (i686) release 2.6.13-15.7-default
> 
> Setting the type of an attribute to a pointer (int *), or a reference (int&)
> creates new datatypes in the Datatypes list.

Looking into a related xmi files one can see that those datatypes are no type
duplicate, but contains a reference to the base type.

<UML:DataType visibility="public" isSpecification="false" namespace="Datatypes"
isAbstract="false" isLeaf="false" elementReference="uySr5L3VImhKn"
isRoot="false" xmi.id="u3bdEfBYiP9rT" name="Trailer*"/>

points to 

<UML:Class visibility="public" isSpecification="false" namespace="Logical_View"
isAbstract="false" isLeaf="false" isRoot="false" xmi.id="uySr5L3VImhKn"
comment="class Trailer" name="Trailer">

and 

<UML:DataType visibility="public" isSpecification="false" namespace="Datatypes"
isAbstract="false" isLeaf="false" elementReference="uTDYU7cG6r3iU"
isRoot="false" xmi.id="uGt9gg5Idb37K" name="int*"/>

points to

<UML:DataType visibility="public" isSpecification="false" namespace="Datatypes"
isAbstract="false" isLeaf="false" isRoot="false" xmi.id="uTDYU7cG6r3iU"
name="int"/>


Attributes in a class references the specific datatype or class (look for
"u3bdEfBYiP9rT")

      <UML:Class visibility="public" isSpecification="false"
namespace="Logical_View" isAbstract="false" isLeaf="false" isRoot="false"
xmi.id="u3Fa94HnsSyef" comment="class Car" name="Car">
       <UML:Classifier.feature>
        <UML:Attribute visibility="private" isSpecification="false"
xmi.id="uOcLoZxRkXmgY" type="u3bdEfBYiP9rT" name="theTrailer"/>

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the umbrello-devel mailing list