Visio & UML - Vector Display

I have a requirement to generate UML diagrams for one of my assignments in C ++. I am using Visio 2007 and I am having trouble representing C ++ vectors. The only way I can work is to create my own C ++ data type or create a vector class in my project, and then for each instance of the vector in UML I need to delve into the properties and add <Class>a suffix to the field,

Basically I try to get vector<Object>without breaking into properties and adding <Class>a suffix to the field every time.

I'm pretty stuck with Microsoft charting and coding software, so please do not suggest using other software. However, if Visual Studio 2003 supports creating UML diagrams in a less painful way than Visio, I would not mind using Visual Studio, but please tell me where this option is.

+3
source share
2 answers

You do not need to indicate that it is a vector in a UML diagram.

In the example you are giving, there is a one-to-many relationship between one class and another. This is important information that you need to communicate.

: , , - " " .

- std:: list std:: deque stl-, , - .

, . , eachother, UML . - , , , .

" " , UML,

+7

UML . , this , ...

+1

Source: https://habr.com/ru/post/1698730/


All Articles