Re: Does PiecewiseYieldCurve derive fromYieldTermStructure

Posted by Li, Peter on
URL: http://quantlib.414.s1.nabble.com/Does-PiecewiseYieldCurve-derive-from-YieldTermStructure-tp5413p5414.html

Hi, willshaw:

template <class Traits, class Interpolator>
    class PiecewiseYieldCurve
        : public Traits::template curve<Interpolator>::type,
          public LazyObject

curve<Interpolator>::type must inherit from YieldTermStructure

See Examples\Swapswapvaluation.cpp to learn how PiecewiseYieldCurve is
constructed.

Good Luck.
------------------------------------
Peter Li

------------------------------------
Peter
 

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of
willshaw
Sent: Monday, January 14, 2008 8:42 AM
To: [hidden email]
Subject: [Quantlib-users] Does PiecewiseYieldCurve derive
fromYieldTermStructure


Maybe it's a silly question.

I see the declaration of PiecewiseYieldCurve. It inherits from
LazyObject.
But in example, it looks like PiecewiseYieldCurve inherits from
YieldTermStructure and it can use member functions of
YieldTermStructure.

But I only see class PiecewiseYieldCurve: public LazyObject. I'm really
confused. Please help me.
Thank you.
--
View this message in context:
http://www.nabble.com/Does-PiecewiseYieldCurve-derive-from-YieldTermStru
cture-tp14801895p14801895.html
Sent from the quantlib-users mailing list archive at Nabble.com.


------------------------------------------------------------------------
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketp
lace
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users