Posted by
Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/Re-SmileSection-tp13110p13119.html
On Tue, 2009-10-20 at 07:16 -0700, Chris Kenyon wrote:
> In fact why bother with Impl methods at all? Why not just make
> volatility and variance virtual? PIMPL is handy when the implementers
> can be changed (i.e. ptr to another class) but just calling another
> method doesn't really seem to qualify. Just my musings.
In this case it's not pimpl, it's Template Method. I guess it was
written this way to mimic the other term structures, even if there's no
added functionality in this case (there could be, though---e.g., in
volatility() one could check the strike limits.)
Luigi
--
Lubarsky's Law of Cybernetic Entomology:
There is _always_ one more bug.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev