|
From: Luigi B. <lui...@gm...> - 2007-09-24 14:30:44
|
On Sat, 2007-09-22 at 09:40 -0700, na...@us... wrote: > Revision: 12795 > http://quantlib.svn.sourceforge.net/quantlib/?rev=12795&view=rev > Author: nando > Date: 2007-09-22 09:40:17 -0700 (Sat, 22 Sep 2007) > > Modified: trunk/QuantLib/ql/termstructure.hpp > =================================================================== > --- trunk/QuantLib/ql/termstructure.hpp 2007-09-22 13:32:21 UTC (rev 12794) > +++ trunk/QuantLib/ql/termstructure.hpp 2007-09-22 16:40:17 UTC (rev 12795) > @@ -102,84 +101,44 @@ > void checkRange(const Date&, > bool extrapolate) const; > //! time-range check > - void checkRange(Time, > + void checkRange(Time t, > bool extrapolate) const; > bool moving_; > + Calendar calendar_; > private: > mutable Date referenceDate_; > mutable bool updated_; > Natural settlementDays_; > - Calendar calendar_; > DayCounter dayCounter_; > }; Nando, the calendar was private on purpose. The information should be accessed by means of the calendar() method, not the data member. This is because derived classes can override calendar() and have it return something else---see ImpliedTermStructure for an example. Luigi -- The wisdom of the wise and the experience of the ages are perpetuated by quotations. -- Benjamin Disraeli |