C++ Classes interaction

Posted by Fabrice_CBA on
URL: http://quantlib.414.s1.nabble.com/C-Classes-interaction-tp5550.html

Hi all,
 
I apologize in advance for the "newbie" taste of my question.
I was digging in the market model code and found something of the form:
//////////////////////////////////////////////////////////////////////////////////

namespace QuantLib {

class CMSwapCurveState;

//! Drift computation for CMS market models

/*! Returns the drift \f$ \mu \Delta t \f$.

See Mark Joshi, <i>Rapid Computation of Drifts in a

Reduced Factor Libor Market Model</i>, Wilmott Magazine,

May 2003.

*/

class CMSMMDriftCalculator {

public:

...

///////////////////////////////////////////////////////////////////////////

I found that in many other classes.

Could someone explain me very quickly what does this "class CMSwapCurveState" syntax do? If it's a way for the two classes to interact with each other, why isn't the key word "friend" used?
Furthermore, this is done before the class definition, how does the compiler understand that they are linked?
If you could point me to a C++ tutorial that explains this, since I failed to find any explanation about this syntax.
 
Thanks,
Fabrice

 __________________________________________________
 Commonwealth Bank
 Fabrice Lecuyer 
 Quantitative Analyst
 Global Market & Treasury
 

************** IMPORTANT MESSAGE *****************************       
This e-mail message is intended only for the addressee(s) and contains information which may be
confidential. 
If you are not the intended recipient please advise the sender by return email, do not use or
disclose the contents, and delete the message and any attachments from your system. Unless
specifically indicated, this email does not constitute formal advice or commitment by the sender
or the Commonwealth Bank of Australia (ABN 48 123 123 124) or its subsidiaries. 
We can be contacted through our web site: commbank.com.au. 
If you no longer wish to receive commercial electronic messages from us, please reply to this
e-mail by typing Unsubscribe in the subject line. 
**************************************************************



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users