24#ifndef quantlib_implied_vol_term_structure_hpp
25#define quantlib_implied_vol_term_structure_hpp
107 return originalTS_->blackForwardVariance(timeShift,
Black volatility term structure base classes.
degenerate base class for the Acyclic Visitor pattern
Black variance term structure.
void accept(AcyclicVisitor &) override
Time yearFraction(const Date &, const Date &, const Date &refPeriodStart=Date(), const Date &refPeriodEnd=Date()) const
Returns the period between two dates as a fraction of year.
Shared handle to an observable.
Implied vol term structure at a given date in the future.
ImpliedVolTermStructure(Handle< BlackVolTermStructure > origTS, const Date &referenceDate)
Real minStrike() const override
the minimum strike for which the term structure can return vols
void accept(AcyclicVisitor &) override
DayCounter dayCounter() const override
the day counter used for date/time conversion
Date maxDate() const override
the latest date for which the curve can return values
Real blackVarianceImpl(Time t, Real strike) const override
Black variance calculation.
Handle< BlackVolTermStructure > originalTS_
Real maxStrike() const override
the maximum strike for which the term structure can return vols
std::pair< iterator, bool > registerWith(const ext::shared_ptr< Observable > &)
virtual const Date & referenceDate() const
the date at which discount = 1.0 and/or variance = 0.0
Visitor for a specific class
virtual void visit(T &)=0
Real Time
continuous quantity with 1-year units
ext::shared_ptr< BlackVolTermStructure > v