Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Find implementations (c++)

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
chris79 Posted - Sep 24 2018 : 9:26:41 PM
Hi,

Is there something like "Find implementations" for a given interface (c++)?

it would be great to have something like that
thanks
Chris
6   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Sep 26 2018 : 05:10:04 AM
No, sadly VA does not try to make this distinction.

The idea is interesting, but personally, I have rarely come across code that is this pure. I am used to seeing classes with a mixture of abstract and concrete methods.
chris79 Posted - Sep 25 2018 : 5:16:47 PM
Thanks.
But is still not clear to me: does or doesn't VA have the concept of interface vs implementation?

E.g. the abstractness of an interface structure versus
the concreteness of an implementation structure (corresponding to that interface)

I know, this is c++, there is no direct/pure 'interface' concept like in java.
But from an oop point of view, this exists. A c++ class with only pure virtual functions is an interface.
And a concrete class has only non-abstract (concrete) methods.

A class-level match/association between these is what I am looking for.

Thanks
Chris
feline Posted - Sep 25 2018 : 08:19:18 AM
Another option, if you are looking for overloaded functions in derived classes, is to run Find References on the virtual function in the base class:

https://docs.wholetomato.com/default.asp?W189

then in the Find References Results window Right click the results, and make sure you turn On

Display inherited and overridden references
Zeblote Posted - Sep 24 2018 : 10:48:43 PM
That works too, if you put the cursor on X and press alt+shift+g, you can see all of them under "derived classes"
chris79 Posted - Sep 24 2018 : 10:36:01 PM
Hi,
no, I was talking about the class itself.
Let's say you have some interface (abstract class) X with implementation classes A,B,C
Is there a way to select X and ask Visual Assist to find all implementations? (A,B,C)
Thanks
Zeblote Posted - Sep 24 2018 : 9:32:16 PM
If you use alt+shift+g on a virtual method or class, you can see all implementations of it under "derived symbols". Is that what you mean?

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000