24#ifndef quantext_blackvolsurfacewithatm_hpp
25#define quantext_blackvolsurfacewithatm_hpp
27#include <ql/shared_ptr.hpp>
28#include <ql/quote.hpp>
29#include <ql/termstructures/volatility/equityfx/blackvoltermstructure.hpp>
30#include <ql/termstructures/yieldtermstructure.hpp>
54 const Handle<YieldTermStructure>&
yield1 = Handle<YieldTermStructure>(),
55 const Handle<YieldTermStructure>&
yield2 = Handle<YieldTermStructure>());
75 QuantLib::ext::shared_ptr<BlackVolTermStructure>
surface()
const {
return surface_; }
83 Volatility
blackVolImpl(Time t, Real strike)
const override;
86 QuantLib::ext::shared_ptr<BlackVolTermStructure>
surface_;
Wrapper class for a BlackVolTermStructure that easily exposes ATM vols.
Handle< YieldTermStructure > yield2() const
Calendar calendar() const override
Rate maxStrike() const override
Rate minStrike() const override
QuantLib::ext::shared_ptr< BlackVolTermStructure > surface_
QuantLib::ext::shared_ptr< BlackVolTermStructure > surface() const
const Date & referenceDate() const override
Handle< YieldTermStructure > yield1() const
Natural settlementDays() const override
DayCounter dayCounter() const override
Date maxDate() const override
Handle< YieldTermStructure > yield1_
Handle< Quote > spot() const
Volatility blackVolImpl(Time t, Real strike) const override
Handle< YieldTermStructure > yield2_
Time maxTime() const override