Author |
Topic |
|
Esone
Tomato Guru
Russia
115 Posts |
Posted - Jan 22 2008 : 09:36:18 AM
|
The VA Outline displays all the arguments for the function/method.
Example: for the functions void fun1(); void fun2(int a); void fun3(int a, int b, int c) const; virtual void vfun() = 0;
the VA Outline displays them as: fun1(); fun2(int a); fun3(int a, int b, int c) const; void vfun() = 0;
For the sake of better visibility within vertical VA Outline windows, I suggest to implement the option "Hide parameters" in the VA Outline. When this option is selected, these functions will look as: fun1(); fun2(1); fun3(3) const; void vfun() = 0;
where numbers inside brackets indicate how many params the function has.
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Jan 22 2008 : 8:37:51 PM
|
If you have used helpful parameter names then this will remove quite a bit of information. Plus the only benefit is to show const / abstract. I can see that pulling out the abstract functions will sometimes be important, but I am not sure how pulling out the const functions helps. |
zen is the art of being at one with the two'ness |
|
|
Esone
Tomato Guru
Russia
115 Posts |
Posted - Jan 24 2008 : 05:29:52 AM
|
In my work env, the VA Outline window is a docked to the right vertical window, rather narrow. So even when parameters have helpful names, it is not of much help, because I can see only one param of several.
Seeing const functions with one look is useful to determine, what is the const interface of the class.
The proposed option "Hide parameters" is also useful, when you want to have a clean look of VA Outline, not overcrowded with functions' params. |
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Jan 24 2008 : 5:19:08 PM
|
a clean look, that is going to depend very much on the nature and structure of the current file.
For the const functions, are they grouped together? You could simply have a comment in the class saying that this is where the const functions start. The comment will show up in VA Outline, if you have showing comments turned on, and this will tell you where the "blocks" of functions are. |
zen is the art of being at one with the two'ness |
|
|
Esone
Tomato Guru
Russia
115 Posts |
Posted - Jan 30 2008 : 10:00:12 AM
|
Often you need to browse someone's code, where const methods are not grouped together. In this scenario I am finding the ability to look at class's interface from bird eye height more useful, than those methods' params. This feature is not critical for me, just giving you and others an idea for consideration. |
|
|
|
Topic |
|