[QuantLibAddin-cvs] QuantLibAddin/qlo schedule.cpp, 1.1, 1.2 schedule.hpp, 1.1, 1.2
Brought to you by:
ericehlers,
nando
|
From: Ferdinando A. <na...@us...> - 2006-06-08 20:47:56
|
Update of /cvsroot/quantlibaddin/QuantLibAddin/qlo In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv15134/qlo Modified Files: schedule.cpp schedule.hpp Log Message: exporting stabDate input parameter and removing useless code Index: schedule.hpp =================================================================== RCS file: /cvsroot/quantlibaddin/QuantLibAddin/qlo/schedule.hpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** schedule.hpp 19 May 2006 16:56:16 -0000 1.1 --- schedule.hpp 8 Jun 2006 20:47:53 -0000 1.2 *************** *** 26,38 **** class Schedule : public ObjHandler::Object { public: ! Schedule( ! const QuantLib::Calendar &calendar, ! const QuantLib::Date &lStartDate, ! const QuantLib::Date &lEndDate, ! const QuantLib::Frequency &frequency, ! const QuantLib::BusinessDayConvention &convention, ! // const QuantLib::Date &StubDate, ! const bool &startFromEnd, ! const bool &longFinal); virtual boost::shared_ptr<void> getReference() const { --- 26,37 ---- class Schedule : public ObjHandler::Object { public: ! Schedule(const QuantLib::Calendar& calendar, ! const QuantLib::Date& startDate, ! const QuantLib::Date& endDate, ! QuantLib::Frequency frequency, ! QuantLib::BusinessDayConvention convention, ! const QuantLib::Date& stubDate, ! bool startFromEnd, ! bool longFinal); virtual boost::shared_ptr<void> getReference() const { *************** *** 44,49 **** } - std::vector<long> scheduleDates() const; - private: boost::shared_ptr<QuantLib::Schedule> schedule_; --- 43,46 ---- Index: schedule.cpp =================================================================== RCS file: /cvsroot/quantlibaddin/QuantLibAddin/qlo/schedule.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** schedule.cpp 19 May 2006 16:56:16 -0000 1.1 --- schedule.cpp 8 Jun 2006 20:47:53 -0000 1.2 *************** *** 25,36 **** Schedule::Schedule( ! const QuantLib::Calendar &calendar, ! const QuantLib::Date &startDate, ! const QuantLib::Date &endDate, ! const QuantLib::Frequency &frequency, ! const QuantLib::BusinessDayConvention &convention, ! // const QuantLib::Date &stubDate, ! const bool &startFromEnd, ! const bool &longFinal) { schedule_ = boost::shared_ptr<QuantLib::Schedule>( --- 25,36 ---- Schedule::Schedule( ! const QuantLib::Calendar& calendar, ! const QuantLib::Date& startDate, ! const QuantLib::Date& endDate, ! QuantLib::Frequency frequency, ! QuantLib::BusinessDayConvention convention, ! const QuantLib::Date& stubDate, ! bool startFromEnd, ! bool longFinal) { schedule_ = boost::shared_ptr<QuantLib::Schedule>( *************** *** 40,59 **** frequency, convention, ! QuantLib::Date(), // stubDate startFromEnd, longFinal)); } ! ! std::vector<long> Schedule::scheduleDates() const { ! ! std::vector<long> dates; ! ! for (std::size_t i=0 ; i < schedule_->size() ; i++) { ! dates.push_back(schedule_->date(i).serialNumber()); ! } ! ! return dates; ! } ! } - --- 40,47 ---- frequency, convention, ! stubDate, startFromEnd, longFinal)); } ! } |