Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Find implementations (c++)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

chris79
New Member

Romania
3 Posts

Posted - Sep 24 2018 :  9:26:41 PM  Show Profile  Reply with Quote
Hi,

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

it would be great to have something like that
thanks
Chris

Edited by - chris79 on Sep 24 2018 9:27:58 PM

Zeblote
Tomato Guru

183 Posts

Posted - Sep 24 2018 :  9:32:16 PM  Show Profile  Reply with Quote
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?

Edited by - Zeblote on Sep 24 2018 9:32:51 PM
Go to Top of Page

chris79
New Member

Romania
3 Posts

Posted - Sep 24 2018 :  10:36:01 PM  Show Profile  Reply with Quote
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
Go to Top of Page

Zeblote
Tomato Guru

183 Posts

Posted - Sep 24 2018 :  10:48:43 PM  Show Profile  Reply with Quote
That works too, if you put the cursor on X and press alt+shift+g, you can see all of them under "derived classes"
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Sep 25 2018 :  08:19:18 AM  Show Profile  Reply with Quote
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

zen is the art of being at one with the two'ness
Go to Top of Page

chris79
New Member

Romania
3 Posts

Posted - Sep 25 2018 :  5:16:47 PM  Show Profile  Reply with Quote
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
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Sep 26 2018 :  05:10:04 AM  Show Profile  Reply with Quote
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.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000