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. |
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 |
On Mon, 2008-01-14 at 16:02 -0500, Li, Peter wrote:
> Hi, willshaw: > > template <class Traits, class Interpolator> > class PiecewiseYieldCurve > : public Traits::template curve<Interpolator>::type, > public LazyObject > > curve<Interpolator>::type must inherit from YieldTermStructure Peter's right. Depending on the traits used (see bootstraptraits.hpp) Traits::curve<Interpolator>::Type can be InterpolatedDiscountCurve, InterpolatedForwardCurve, or InterpolatedZeroCurve. All of them inherit from YieldTermStructure. Luigi -- Discontent is the first necessity of progress. -- Thomas A. Edison ------------------------------------------------------------------------- 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 |
Free forum by Nabble | Edit this page |