[QuantLibAddin-cvs] QuantLibAddin/qlo index.cpp, 1.4, 1.5 index.hpp, 1.4, 1.5
Brought to you by:
ericehlers,
nando
|
From: Ferdinando A. <na...@us...> - 2006-07-21 17:27:43
|
Update of /cvsroot/quantlibaddin/QuantLibAddin/qlo In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv10079/qlo Modified Files: index.cpp index.hpp Log Message: Index: index.cpp =================================================================== RCS file: /cvsroot/quantlibaddin/QuantLibAddin/qlo/index.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** index.cpp 20 Jul 2006 07:23:21 -0000 1.4 --- index.cpp 21 Jul 2006 17:27:37 -0000 1.5 *************** *** 29,54 **** namespace QuantLibAddin { - //void Index::addFixings(const std::vector<QuantLib::Date> dates, - // const std::vector<QuantLib::Rate> fixings) - //{ - // QL_REQUIRE(fixings.size() == dates.size(), - // "Index::addFixings the nuber of given dates does not " - // "match the number of fixings!"); - // libraryObject_->addFixings(dates.begin(), dates.end(), - // fixings.begin()); - //} - - 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()); - } - Xibor::Xibor(const std::string& indexName, const QuantLib::Period& p, --- 29,32 ---- Index: index.hpp =================================================================== RCS file: /cvsroot/quantlibaddin/QuantLibAddin/qlo/index.hpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** index.hpp 20 Jul 2006 07:23:21 -0000 1.4 --- index.hpp 21 Jul 2006 17:27:37 -0000 1.5 *************** *** 31,44 **** namespace QuantLibAddin { ! class Index : public ObjHandler::LibraryObject<QuantLib::Index> { ! //public: ! // void addFixings(const std::vector<QuantLib::Date> dates, ! // const std::vector<QuantLib::Rate> fixings); ! }; ! ! //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); class Xibor : public Index { --- 31,35 ---- namespace QuantLibAddin { ! class Index : public ObjHandler::LibraryObject<QuantLib::Index> {}; class Xibor : public Index { |