Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Create inline functions in the include file

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
ihedvall Posted - Apr 20 2016 : 12:54:34 PM
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.
4   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Apr 22 2016 : 3:24:10 PM
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
ihedvall Posted - Apr 22 2016 : 02:49:35 AM
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).
feline Posted - Apr 20 2016 : 6:45:44 PM
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?
accord Posted - Apr 20 2016 : 1:56:34 PM
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?

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