Date: Fri, 15 Feb 2008 18:05:37 +1100
From: [hidden email]
To: [hidden email]
Subject: [Quantlib-users] C++ Classes interaction
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. **************************************************************
************** 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. **************************************************************
| Free forum by Nabble | Edit this page |