CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Can someone please explain this

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   July 3, 2007, 08:07
Default Dear OpenFoam Users I am ne
  #1
Senior Member
 
Join Date: Mar 2009
Posts: 248
Rep Power: 18
jaswi is on a distinguished road
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
jaswi is offline   Reply With Quote

 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 19:53.