Main Menu
Login
SSL SecureMode
Username:
Password:  
Lost Password?
Register now!
ChangeVision Members Map
Search
Forum Index   -   Topic Index
   How to use of Astah (Pro/SysML/GSN/Com)
     Binding template parameters

Flat Previous Topic | Next Topic
Poster Thread
nerdbiker
Posted on: 2010/10/21 16:53
Just popping in
Joined: 2010/10/21
From:
Posts: 1
Binding template parameters
I have a question regarding the use of templates in class diagrams. If I want to use a template bound to a concrete type (another class in my model) I can do that easily using a bind association:



But I cannot see how to model the case of a template class using template types internally. How would the following C++ be drawn?

template<typename T>
class queue { ... }

template<typename Type>
class MyQueue
{
   queue<Type> _queue;
   ...
}

It does not appear to be possible to pass the template parameter to the attribute or to use it in a bind association. The closest I can get is to use the TypeModifier like this:



But it doesn't feel right and will not update should the template parameter change.

Can anyone tell me how to model this correctly?

Thanks,
Anthony
Flat Previous Topic | Next Topic

Subject Poster Date
 » Binding template parameters nerdbiker 2010/10/21 16:53