defaultbasket.hpp
Go to the documentation of this file.
1 /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 
3 /*
4  Copyright (C) 2014 Jose Aparicio
5 
6  This file is part of QuantLib, a free-software/open-source library
7  for financial quantitative analysts and developers - http://quantlib.org/
8 
9  QuantLib is free software: you can redistribute it and/or modify it
10  under the terms of the QuantLib license. You should have received a
11  copy of the license along with this program; if not, please email
12  <quantlib-dev@lists.sf.net>. The license is also available online at
13  <http://quantlib.org/license.shtml>.
14 
15  This program is distributed in the hope that it will be useful, but WITHOUT
16  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17  FOR A PARTICULAR PURPOSE. See the license for more details.
18 */
19 
20 #ifndef qla_defaultbasket_hpp
21 #define qla_defaultbasket_hpp
22 
23 #include <qlo/baseinstruments.hpp>
24 
25 #include <ql/types.hpp>
26 #include <ql/time/date.hpp>
27 
28 namespace QuantLib {
29  class Basket;
30  class Issuer;
31 }
32 
33 namespace QuantLibAddin {
34 
35  class Basket // CreditBasket
36  : public ObjectHandler::LibraryObject<QuantLib::Basket> {
37  public:
38  Basket(
39  const boost::shared_ptr<ObjectHandler::ValueObject>& properties,
40  const std::vector<std::string>& names,
41  const std::vector<boost::shared_ptr<QuantLib::Issuer> >& issuers,
42  const std::vector<QuantLib::Real>& notionals,
43  const QuantLib::Date& refDate,
44  QuantLib::Real attachRatio,
45  QuantLib::Real detachRatio,
46  bool amortizes,
47  bool permanent
48  );
49 
50  };
51 
52  // QuantLib::Real numBasketDefaults(const boost::shared_ptr<QuantLib::Basket>&);
53 }
54 
55 #endif
Basket(const boost::shared_ptr< ObjectHandler::ValueObject > &properties, const std::vector< std::string > &names, const std::vector< boost::shared_ptr< QuantLib::Issuer > > &issuers, const std::vector< QuantLib::Real > &notionals, const QuantLib::Date &refDate, QuantLib::Real attachRatio, QuantLib::Real detachRatio, bool amortizes, bool permanent)
Definition: abcd.hpp:38
Definition: defaultbasket.hpp:35
Definition: abcd.hpp:30