6

I draw UML for C++ as the book UML distilled teaches.

Before I study Template Programming the book was enough. But while I am studying Template Programming including Template Meta Programming, I finally met this problem.

  • Are there any known methods to draw instantiation of templates?
  • Any best method to express the instantiation of templates?

https://github.com/Jeonghum/tmplguide/tree/master/inherit

From this page you can find a UML diagram I drew for

inherit/namedtmpl.cpp

This is an example of the book, C++ Templates - The Complete Guide If you could explain taking this as an example it would be the best.

I use StarUML.

Jumogehn
  • 1,102
  • 3
  • 11
  • 29
  • 4
    See http://stackoverflow.com/questions/860501/what-is-the-correct-way-to-represent-template-classes-with-uml – Mihai8 Mar 13 '13 at 11:41
  • 3
    Also This: http://stackoverflow.com/questions/15330957/visual-studio-uml-class-diagram-modeling-of-generic-types/15350759#15350759 – jurgenreza Mar 13 '13 at 15:38
  • Thank you I learned a lot from both questions. @jurgenreza Thank you your explanation helps me also. – Jumogehn Mar 14 '13 at 08:48
  • You could upvote if it helped you. Just saying :) – jurgenreza Mar 14 '13 at 17:30
  • @jurgenreza I wanted to upvote it but I need more reputation. Now I only have 6 points. – Jumogehn Mar 16 '13 at 01:17
  • Not that important, no worries. I only said that because a guy downvoted without a good reason. (read the comments, the discussion is so funny) – jurgenreza Mar 16 '13 at 01:34
  • @jurgenreza I've already read the discussion and that's why I wanted to upvote it. And I totally agree with you. – Jumogehn Mar 16 '13 at 04:33
  • I earned 19 points so that I can vote up your answer. Thank you for your kindness. – Jumogehn Apr 11 '13 at 04:09

0 Answers0