# UML begginer help

**URL:** <https://forums.visual-paradigm.com/t/uml-begginer-help/10674>\
**Category:** UML\
**Created:** [January 30, 2009, 8:22pm UTC](https://forums.visual-paradigm.com/t/uml-begginer-help/10674 "2009-01-30T20:22:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anonymous](https://avatars.discourse-cdn.com/v2/letter/a/8491ac/32.png) [@Anonymous](https://forums.visual-paradigm.com/u/Anonymous)\
**Post date:** [February 2, 2009, 8:31am UTC](https://forums.visual-paradigm.com/t/uml-begginer-help/10674/1 "2009-02-02T08:31:47Z")

</div>

How can create class diagram or any other well suited diagram from this C++ code. I mainly want to know how to handle typedefs.

```auto
 
class KeyItem{ string name, int value};

typedef std::map<string,KeyItem> KeyItemMap;
typedef std::multiset<KeyItemMap> KeyItemMapSet;
class KeyElement{
KeyItemMapSet m_set;
}

typedef std::map<string,KeyElement*> KeyElementMap;
KeyElementMap c_keys; 

```

Thanks in advance.  
Tomas

---

<div class="post-metadata">

**Author:** ![LilianWong](https://avatars.discourse-cdn.com/v2/letter/l/919ad9/32.png) [@LilianWong](https://forums.visual-paradigm.com/u/LilianWong)\
**Post date:** [February 2, 2009, 4:41pm UTC](https://forums.visual-paradigm.com/t/uml-begginer-help/10674/2 "2009-02-02T16:41:12Z")

</div>

Hi Tomas,

Thanks for your message. You can reverse the source code by Instant Reverse (supported in VP-UML/SDE Standard Edition or above). If you are using SDE for Visual Studio (SDE-VS), you can synchronize the code from your Visual Studio project to model in your SDE project (this feature is supported in SDE Professional Edition for Visual Studio).

About typedefs, we will reverse them as classes with stereotype \<\>. The attached image is the result of running Instant Reverse.

More details about Instant Reverse can be found from the following link:

> **[UML/Code Generation Software](https://www.visual-paradigm.com/features/code-engineering-tools/)**
>
> UML tool with MDA support. UML to code, code to UML. Ready for Java, C#, PHP, VB, XML, etc developers. Form UML sequence diagram from Java.

If there is any further inquiry, please do not hesitate to contact me.

Best regards,  
Lilian Wong   
 ![](https://forums.visual-paradigm.com/uploads/default/original/2X/f/fe963c48adc4a7ed93ada8b6f86828342aa50803.png)  
typedef.png
