[QuantLibAddin-cvs] QuantLibAddin/qlo couponvectors.cpp,1.14,1.15
Brought to you by:
ericehlers,
nando
|
From: Ferdinando A. <na...@us...> - 2006-07-31 17:09:23
|
Update of /cvsroot/quantlibaddin/QuantLibAddin/qlo In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv20932/qlo Modified Files: couponvectors.cpp Log Message: bug fix Index: couponvectors.cpp =================================================================== RCS file: /cvsroot/quantlibaddin/QuantLibAddin/qlo/couponvectors.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** couponvectors.cpp 31 Jul 2006 15:48:10 -0000 1.14 --- couponvectors.cpp 31 Jul 2006 17:09:19 -0000 1.15 *************** *** 36,61 **** //std::vector<std::vector<boost::any> > flowAnalysis(CashFlowVector cashflows) { //std::vector<std::vector<boost::any> > flowAnalysis_; ! //std::vector<boost::any> cf; ! //cf.push_back(std::string("Date")); ! //cf.push_back(std::string("Amount")); ! //cf.push_back(std::string("Nominal")); ! //cf.push_back(std::string("Accrual Start Date")); ! //cf.push_back(std::string("Accrual End Date")); ! //cf.push_back(std::string("Accrual Days")); ! //cf.push_back(std::string("Day Counter")); ! //cf.push_back(std::string("Accrual Period")); ! //cf.push_back(std::string("Effective Rate")); ! //cf.push_back(std::string("Fixing Days")); ! //cf.push_back(std::string("Fixing Dates")); ! //cf.push_back(std::string("Gearing")); ! //cf.push_back(std::string("Index Fixing")); ! //cf.push_back(std::string("Conv. Adj.")); ! //cf.push_back(std::string("Spread")); ! std::vector<std::vector<double> > flowAnalysis_; ! std::vector<double> cf; ! //for(QuantLib::Size i = 1; i <= cashflows.size(); i++) { ! for(QuantLib::Size i=0; i<cashflows.size(); i++) { cf.push_back(cashflows[i]->date().serialNumber()); --- 36,62 ---- //std::vector<std::vector<boost::any> > flowAnalysis(CashFlowVector cashflows) { + std::vector<std::vector<double> > flowAnalysis_; //std::vector<std::vector<boost::any> > flowAnalysis_; ! //std::vector<boost::any> headings; ! //headings.push_back(std::string("Date")); ! //headings.push_back(std::string("Amount")); ! //headings.push_back(std::string("Nominal")); ! //headings.push_back(std::string("Accrual Start Date")); ! //headings.push_back(std::string("Accrual End Date")); ! //headings.push_back(std::string("Accrual Days")); ! //headings.push_back(std::string("Day Counter")); ! //headings.push_back(std::string("Accrual Period")); ! //headings.push_back(std::string("Effective Rate")); ! //headings.push_back(std::string("Fixing Days")); ! //headings.push_back(std::string("Fixing Dates")); ! //headings.push_back(std::string("Gearing")); ! //headings.push_back(std::string("Index Fixing")); ! //headings.push_back(std::string("Conv. Adj.")); ! //headingspush_back(std::string("Spread")); ! //flowAnalysis_.push_back(headings); ! for(QuantLib::Size i=0; i<cashflows.size(); i++) ! { ! std::vector<double> cf; cf.push_back(cashflows[i]->date().serialNumber()); |