You are here

About the code.What's the difference between ****.fwd.hh and ****.hh

3 posts / 0 new
Last post
About the code.What's the difference between ****.fwd.hh and ****.hh
#1

For example,CacheableData.fwd.hh and CacheableData.hh.What's the meaning of fwd?Help~~

Post Situation: 
Sat, 2013-07-20 23:51
Run

They have to do with Rosetta's use of Owning Pointers for most/all Rosetta C++ objects. See the typedef in the fwd.hh file.
Why do you ask?

-Jared

Mon, 2013-07-22 09:26
jadolfbr

They're for C++ forward declarations. Basically, they're set up as separate files to make the code compile faster.

See
http://en.wikipedia.org/wiki/Forward_declaration
http://stackoverflow.com/questions/4757565/c-forward-declaration
http://stackoverflow.com/questions/553682/when-to-use-forward-declaration
for more details.

Mon, 2013-07-22 10:29
rmoretti