Rosetta Commons
Member Site
Member Site › Forums › Rosetta++ › Rosetta++ – General › About the code.What’s the difference between ****.fwd.hh and ****.hh
For example,CacheableData.fwd.hh and CacheableData.hh.What’s the meaning of fwd?Help~~
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
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.