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
 Create inline functions in the include file
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ihedvall
New Member

Sweden
2 Posts

Posted - Apr 20 2016 :  12:54:34 PM  Show Profile  Reply with Quote
The Refactoring 'Create Implementation' should create the interface in the include file for inline declared functions. It currently create the function the source file. This is a C++ improvment request.

IH

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Apr 20 2016 :  1:56:34 PM  Show Profile  Reply with Quote
I don't really understand your question. Can you please post a sample code?

I tried to created a sample code for what I understand from your question.

class InterfaceSampleCode
{
	virtual void PureVirtualMethod() = 0;
};


If you implement the above method is will be implemented in the source file as expected. Is this what you mean? Do you want it to be in the header? If yes, can you please explain why? If I misunderstood you, can you please post a sample code?
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Apr 20 2016 :  6:45:44 PM  Show Profile  Reply with Quote
I am guessing the request is to put the function body into the .inl file if one exists, but that's just a guess. If so, then we are considering this:

case=85337

But if not, then can you explain more clearly what you are asking for?

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

ihedvall
New Member

Sweden
2 Posts

Posted - Apr 22 2016 :  02:49:35 AM  Show Profile  Reply with Quote
The request is about inline declared functions in C++. Example above

class Tomato 
{
public:
  inline bool IsWhole() const; 
};

Refactoring by 'Create Implementation' creates the function in the source file (tomato.cpp) not in the inlcude file (tomato.h).

IH
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Apr 22 2016 :  3:24:10 PM  Show Profile  Reply with Quote
Ah, now I understand. We are considering doing this at some point:

case=4813

For now, as a work around, you might find VA Outline helpful. You can cut the implementations from the cpp file and paste them into the header file, and VA Outline makes it easy to select and cut several implementations at once:

https://wholetomato.fogbugz.com/default.asp?W187

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