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

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
Posted on: 2010/10/21 16:53
Just popping in
Joined: 2010/10/21
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?

Threaded | Newest First Previous Topic | Next Topic | Top