[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: long method signatures in uml class diagrams



On 13 Oct 2002 09:35:35 -0500, Lars Clausen <lrclause@cs.uiuc.edu> wrote:
> On Fri, 11 Oct 2002, Marco Craveiro wrote:
> >  basically i am using dia to
> > document a fairly large and complex c++ project and a lot of the
> > methods have really long signatures. what i want to know is: is it
> > possible to insert line breaks on the rendering of the diagram?  the
> > classes are so large that the diagram is unreadable...
> 
> It isn't, really.  The only way would be to hack objects/UML/class.c to
> insert, say, linebreaks after arguments if the line becomes too long.
> 
> On the other hand, long signatures are a sign of an overly complex
> system. Not that you may be able to do anything about that.

Surely you don't mean that, Lars.  Would you say the following is an
example of "an overly complex system"?

template <class charT, class traits, class Alloc>
basic_string<charT, traits, Alloc>
operator+(const basic_string<charT, traits, Alloc>& s1, charT c)

The libstdc++ style guide recommends putting the template members, return
type, and function signature each on a separate line.  

Regards, 

--jkl




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] Mail converted by Mofo Magic and the Flying D

 
All trademarks and copyrights are the property of their respective owners.

Other Directory Sites: SeekWonder | Directory Owners Forum

GuideSMACK