Book a Demo

Author Topic: Modeling C++ templates  (Read 3515 times)

Andreas Ames

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Modeling C++ templates
« on: September 15, 2010, 07:05:52 pm »
Hi all,

unfortunately I'm unable to figure out how to model specialisations/instantiations of templates (I guess 'bound elements' in UMLese).

For instance I have a std::list of ClientSession (a custom class).  Modeling the std::list works well using the Details tab in the class properties with template type 'parameterized' and the parameter list below.  But modeling the specialisation std::list<ClientSession> is beyond me (I'd prefer the notation with a 'bind' dependency to depict the relationships), e.g. how to use the Arguments field in the Details tab.

Could someone provide me some hints?


TIA,

aa

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Modeling C++ templates
« Reply #1 on: September 16, 2010, 08:21:02 am »
Try doing a search on this forum...

Andreas Ames

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Modeling C++ templates
« Reply #2 on: September 16, 2010, 08:36:20 pm »
Quote
Try doing a search on this forum...

Sorry if I'm wasting time by asking things discussed previously.  I actually did try searching the forum with several search terms like 'parameterized class', 'bound element', 'c++ template' and similar without finding anything specific.

Please let me know what I should look for.


TIA,

aa

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Modeling C++ templates
« Reply #3 on: September 16, 2010, 10:33:58 pm »
Andreas,

Please use the top left search button, and don't forget to extend the search range to "(all posts)" iso the default "week".
"Generics" and "Code Generation" might be useful keywords as well.

Geert

Andreas Ames

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Modeling C++ templates
« Reply #4 on: September 17, 2010, 12:00:46 am »
Quote
Andreas,

Please use the top left search button, and don't forget to extend the search range to "(all posts)" iso the default "week".
"Generics" and "Code Generation" might be useful keywords as well.

Geert

Ok, I see, it was a PEBKAC.  Your valuable advise will help me with many future questions.


Thanks,

aa