[QuantLibAddin-cvs] QuantLibAddin/qlo index.cpp, 1.3, 1.4 index.hpp, 1.3, 1.4
Brought to you by:
ericehlers,
nando
|
From: Katiuscia M. <kma...@us...> - 2006-07-20 07:23:24
|
Update of /cvsroot/quantlibaddin/QuantLibAddin/qlo In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv15328/qlo Modified Files: index.cpp index.hpp Log Message: replaced Xibor with Index in method addFixings Index: index.cpp =================================================================== RCS file: /cvsroot/quantlibaddin/QuantLibAddin/qlo/index.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** index.cpp 19 Jul 2006 18:06:03 -0000 1.3 --- index.cpp 20 Jul 2006 07:23:21 -0000 1.4 *************** *** 39,51 **** //} ! void addFixings(const boost::shared_ptr<QuantLib::Xibor>& xibor, const std::vector<QuantLib::Date> dates, const std::vector<QuantLib::Rate> fixings) { ! QL_REQUIRE(xibor, "Index::addFixings cannot be called on a null object"); QL_REQUIRE(fixings.size() == dates.size(), "Index::addFixings the nuber of given dates does not " "match the number of fixings!"); ! xibor->addFixings(dates.begin(), dates.end(), fixings.begin()); } --- 39,51 ---- //} ! void addFixings(const boost::shared_ptr<QuantLib::Index>& index, const std::vector<QuantLib::Date> dates, const std::vector<QuantLib::Rate> fixings) { ! QL_REQUIRE(index, "Index::addFixings cannot be called on a null object"); QL_REQUIRE(fixings.size() == dates.size(), "Index::addFixings the nuber of given dates does not " "match the number of fixings!"); ! index->addFixings(dates.begin(), dates.end(), fixings.begin()); } Index: index.hpp =================================================================== RCS file: /cvsroot/quantlibaddin/QuantLibAddin/qlo/index.hpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** index.hpp 19 Jul 2006 18:06:03 -0000 1.3 --- index.hpp 20 Jul 2006 07:23:21 -0000 1.4 *************** *** 38,42 **** //this is a utility function, not an Index Class member function ! void addFixings(const boost::shared_ptr<QuantLib::Xibor>&, const std::vector<QuantLib::Date> dates, const std::vector<QuantLib::Rate> fixings); --- 38,42 ---- //this is a utility function, not an Index Class member function ! void addFixings(const boost::shared_ptr<QuantLib::Index>&, const std::vector<QuantLib::Date> dates, const std::vector<QuantLib::Rate> fixings); |