/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2006 François du Vignaud This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib is free software: you can redistribute it and/or modify it under the terms of the QuantLib license. You should have received a copy of the license along with this program; if not, please email . The license is also available online at . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license for more details. */ /*! \file CapletVolatilitiesStructures.hpp \brief Caplet Volatilities Structures used during bootstrapping procedure */ #ifndef caplet_volatilities_structures_hpp #define caplet_volatilities_structures_hpp #include #include #include namespace QuantLib { class CapFloor; class Matrix; class BilinearInterpolation; class SmileSection; typedef std::vector > \ SmileSectionInterfaceVector; typedef std::vector > > CapMatrix; typedef std::vector > \ SmileSectionInterfaceHandlesVector; class SmileSectionsVolStructure: public CapletVolatilityStructure{ public: SmileSectionsVolStructure( const Date& referenceDate, const DayCounter& dayCounter, const SmileSectionInterfaceVector& smileSections); Volatility volatilityImpl(Time length, Rate strike) const; void setClosestTenors(Time time, Time& nextLowerTenor, Time& nextHigherTenor) const; //! \name TermStructure interface //@{ Date maxDate() const; DayCounter dayCounter() const; //@} //! \name CapletVolatilityStructure interface //@{ Real minStrike() const; Real maxStrike() const; //@} private: Real minStrike_, maxStrike_; Date maxDate_; DayCounter dayCounter_; std::vector