RE: [Doxygen-users] Class collaboration
Brought to you by:
dimitri
|
From: Schreib, D. VTC-B. <dir...@vo...> - 2001-09-14 06:38:21
|
> > In the
> > class collaboration diagram that is generated, I think something is
> > not quite right. Let me give an example:
> >
> > class A { /* some methods */ };
> >
> > class B { std::vector<A *> vec; };
> >
> > I'm just using the std::vector as an example. It can
> be any kind of
> > (STL) container. Even though this strongly suggests that class B
> > somehow uses class A for "something" (in my case, B *does*
> make use of
> > A, which is why B stores a vector of pointers to A),
> Doxygen does not
> > conclude that there is collaboration between A and B. This can be
> > extended to include the use of smart pointers stored in a container.
> >
> > I'm interested to know if this is the intended
> behaviour. If so,
> > what is the reason behind? If not, maybe this is a bug?
>
> Currently this is intended behaviour, but I would like to
> hear what other
> people think about this. Should template arguments, such as
> in the example
> above, be visualised in collaboration diagrams? and if so,
> how? Does UML cover these kind of relations?
Take a look at Together C++ / Control Center. This tool visualizes
it as an one-to-many relationship from B to A. (and an aggregation,
if you remove the pointer).
Dirk
---------------------------------------------------------
This Mail has been checked for Viruses
Attention: Encrypted mails can NOT be checked!
**
Diese Mail wurde auf Viren geprueft
Hinweis: Verschluesselte mails koennen NICHT auf Viren geprueft werden!
---------------------------------------------------------
|