23#ifndef quantext_instruments_genericswaption_hpp
24#define quantext_instruments_genericswaption_hpp
26#include <ql/instruments/swap.hpp>
27#include <ql/instruments/swaption.hpp>
28#include <ql/option.hpp>
29#include <ql/termstructures/volatility/volatilitytype.hpp>
30#include <ql/termstructures/yieldtermstructure.hpp>
43 GenericSwaption(
const ext::shared_ptr<QuantLib::Swap>& swap,
const ext::shared_ptr<Exercise>& exercise,
44 QuantLib::Settlement::Type delivery = QuantLib::Settlement::Physical,
45 QuantLib::Settlement::Method
settlementMethod = QuantLib::Settlement::PhysicalOTC);
59 void fetchResults(
const PricingEngine::results*)
const override;
61 ext::shared_ptr<QuantLib::Swap>
swap_;
71 ext::shared_ptr<QuantLib::Swap>
swap;
81 void reset()
override;
Arguments for swaption calculation
ext::shared_ptr< QuantLib::Swap > swap
QuantLib::Settlement::Type settlementType
QuantLib::Settlement::Method settlementMethod
void validate() const override
base class for swaption engines
Results from CDS-option calculation
Swaption class with QuantLib::Swap underlying
ext::shared_ptr< QuantLib::Swap > swap_
QuantLib::Settlement::Type settlementType_
void setupArguments(PricingEngine::arguments *) const override
Settlement::Type settlementType() const
bool isExpired() const override
Real underlyingValue() const
QuantLib::Settlement::Method settlementMethod_
const ext::shared_ptr< QuantLib::Swap > & underlyingSwap() const
void fetchResults(const PricingEngine::results *) const override
Settlement::Method settlementMethod() const