467,119 Members | 1,180 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,119 developers. It's quick & easy.

Tool which expands implicitly inline inline functions

Hi,

I'm looking for a tool which can do a task like this:

class foo
{
public:
void fooFunc() { doSomething(); }
};
TRANSFORM

class foo
{
public:
void fooFunc();
};

void foo::fooFunc()
{
doSomething();
}
Anybody know such a transformer/code generator?

THX
Kirsten

Jul 23 '05 #1
  • viewed: 905
Share:
3 Replies
tt******@gmx.de wrote:
I'm looking for a tool which can do a task like this:

class foo
{
public:
void fooFunc() { doSomething(); }
};

TRANSFORM

class foo
{
public:
void fooFunc();
};

void foo::fooFunc()
{
doSomething();
}
should be:
inline void foo::fooFunc()
Anybody know such a transformer/code generator?


copy/paste/edit?

Jul 23 '05 #2
> should be:
inline void foo::fooFunc()


I could be wrong, but to me it sounded like the original poster didn't
want these inlined anymore. They're looking for a tool which makes
them *not* inlined. Also, I could be wrong, but I got the feeling that
they were looking for an automated tool which does this. So suggesting
editing the file doesn't address the question.

If I needed to do this, I'd write a perl script to do it. I've used
perl for similar tasks, and it's not that big of a deal to do things
like this.

-Brian

Jul 23 '05 #3
Yes,
My intention was not too keep it inline. Programming this style is only
FAST!
I think it is very easy to code in the header file, you don't have to
switch files... you must not go up and down... you must not write the
class name... or template<class T>.... It is simply fast and I the
program works.

But when I have to clean up my code manually, then it will take hours
to seperate the code. Days in my short programmer's life!

Think about C#
Normally you will find all implemetations within its class definitions.

Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by A | last post: by
14 posts views Thread by Chris Mantoulidis | last post: by
47 posts views Thread by Richard Hayden | last post: by
7 posts views Thread by Srini | last post: by
43 posts views Thread by Patrick Laurent | last post: by
18 posts views Thread by Method Man | last post: by
6 posts views Thread by Robbie Hatley | last post: by
12 posts views Thread by sam_cit@yahoo.co.in | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.