|
[Sponsors] |
July 3, 2007, 08:07 |
Dear OpenFoam Users
I am ne
|
#1 |
Senior Member
Join Date: Mar 2009
Posts: 248
Rep Power: 18 |
Dear OpenFoam Users
I am new to c++ programming. I have been looking the source code of OpenFOAM. I am unable to understand the src/OpenFOAM/primitives/pTraits/pTraits.H I have added my dounts next to the lines i do not understand, please take a look. This is what it contains : ----------------------------------------- #ifndef pTraits_H #define pTraits_H namespace Foam { class Istream; // <-- what does it means here --> Next it defines a template class pTraits with template argument <class>. I am confused about what is class primitive !! as in the definition [: public primitive ] indicates that class pTraits is also inherited from primitive . template<class> class pTraits : public primitive // <--- indicate inheritance ?? { public: pTraits(Istream& is) // <-- is this a constructor : primitive(is) {} }; } // End namespace Foam #endif Can anybody tell what is primitive and from where it comes !!! Thanks alot With Best Regards Jaswinder |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can someone explain the Y plus value | jeff bennet | Main CFD Forum | 32 | April 8, 2020 05:58 |
Please explain | Abby | CFX | 1 | April 25, 2006 06:18 |
please explain these terms | kiran | Main CFD Forum | 0 | June 28, 2005 17:40 |
can some one explain this to me? | docsri | Main CFD Forum | 2 | December 11, 2002 21:43 |
someone can explain this..... | mazza | Phoenics | 0 | June 4, 2001 11:59 |