30 const ext::shared_ptr<Payoff>&
payoff,
31 const ext::shared_ptr<Exercise>& exercise)
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
additional option results
void calculate() const override
virtual void fetchResults(const PricingEngine::results *) const
Results from multi-asset option calculation
MultiAssetOption(const ext::shared_ptr< Payoff > &, const ext::shared_ptr< Exercise > &)
void setupArguments(PricingEngine::arguments *) const override
bool isExpired() const override
returns whether the instrument might have value greater than zero.
void setupExpired() const override
void fetchResults(const PricingEngine::results *) const override
template class providing a null value for a given type.
ext::shared_ptr< Exercise > exercise
ext::shared_ptr< Payoff > payoff
ext::shared_ptr< Payoff > payoff_
ext::shared_ptr< Exercise > exercise_
#define QL_ENSURE(condition, message)
throw an error if the given post-condition is not verified
#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.
Option exercise classes and payoff function.
ext::shared_ptr< QuantLib::Payoff > payoff
Option on multiple assets.
ext::shared_ptr< YieldTermStructure > r