capfloor.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) 2006, 2010, 2011 Ferdinando Ametrano
5  Copyright (C) 2005 Aurelien Chanudet
6 
7  This file is part of QuantLib, a free-software/open-source library
8  for financial quantitative analysts and developers - http://quantlib.org/
9 
10  QuantLib is free software: you can redistribute it and/or modify it
11  under the terms of the QuantLib license. You should have received a
12  copy of the license along with this program; if not, please email
13  <quantlib-dev@lists.sf.net>. The license is also available online at
14  <http://quantlib.org/license.shtml>.
15 
16  This program is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
18  FOR A PARTICULAR PURPOSE. See the license for more details.
19 */
20 
21 #ifndef qla_capfloor_hpp
22 #define qla_capfloor_hpp
23 
24 #include <qlo/baseinstruments.hpp>
25 
26 #include <ql/instruments/capfloor.hpp>
27 
28 namespace QuantLib {
29  class IborIndex;
30 }
31 
32 namespace QuantLibAddin {
33  class Leg;
34  class CapFloor : public Instrument {
35  public:
36  CapFloor(const boost::shared_ptr<ObjectHandler::ValueObject>& properties,
37  QuantLib::CapFloor::Type type,
38  const QuantLib::Leg& floatingLeg,
39  const std::vector<QuantLib::Rate>& strikes,
40  bool permanent);
41  // MakeCapFloor
42  CapFloor(const boost::shared_ptr<ObjectHandler::ValueObject>& properties,
43  QuantLib::CapFloor::Type capFloorType,
44  const QuantLib::Period& capFloorTenor,
45  const boost::shared_ptr<QuantLib::IborIndex>& index,
46  QuantLib::Rate strike,
47  const QuantLib::Period& forwardStart,
48  const boost::shared_ptr<QuantLib::PricingEngine>& engine,
49  bool permanent);
50  std::vector<std::vector<ObjectHandler::property_t> > legAnalysis(
51  const QuantLib::Date& d);
52  };
53 
54 }
55 
56 #endif
CapFloor(const boost::shared_ptr< ObjectHandler::ValueObject > &properties, QuantLib::CapFloor::Type type, const QuantLib::Leg &floatingLeg, const std::vector< QuantLib::Rate > &strikes, bool permanent)
std::vector< boost::shared_ptr< CashFlow > > Leg
Definition: flowanalysis.hpp:30
std::vector< std::vector< ObjectHandler::property_t > > legAnalysis(const QuantLib::Date &d)
Definition: baseinstruments.hpp:34
Definition: abcd.hpp:38
Definition: abcd.hpp:30
Definition: capfloor.hpp:34