28 const Date& startDate,
29 const Date& maturityDate)
31 maturityDate_(maturityDate) {}
virtual bool hasOccurred(const Date &refDate=Date(), ext::optional< bool > includeRefDate=ext::nullopt) const
returns true if an event has already occurred before a date
template class providing a null value for a given type.
Arguments for forward fair-variance calculation
void validate() const override
ext::shared_ptr< Payoff > payoff
bool isExpired() const override
returns whether the instrument might have value greater than zero.
VarianceOption(ext::shared_ptr< Payoff > payoff, Real notional, const Date &startDate, const Date &maturityDate)
ext::shared_ptr< Payoff > payoff_
void setupArguments(PricingEngine::arguments *args) const override
#define QL_REQUIRE(condition, message)
throw an error if the given pre-condition is not verified
Base class for events associated with a given date.
const ext::shared_ptr< Payoff > payoff_
ext::shared_ptr< QuantLib::Payoff > payoff