convertible bond
More...
#include <qle/instruments/convertiblebond.hpp>
convertible bond
Definition at line 56 of file convertiblebond.hpp.
◆ ConvertibleBond()
ConvertibleBond |
( |
Natural |
settlementDays, |
|
|
const Calendar & |
calendar, |
|
|
const Date & |
issueDate, |
|
|
const Leg & |
coupons, |
|
|
const QuantLib::ext::shared_ptr< Exercise > & |
exercise, |
|
|
const Real |
conversionRatio, |
|
|
const DividendSchedule & |
dividends, |
|
|
const CallabilitySchedule & |
callability |
|
) |
| |
similar to bond ctor, coupons should not contain redemption flows
Definition at line 36 of file convertiblebond.cpp.
42
44 QL_REQUIRE(
callability.back()->date() <= maturityDate_,
"last callability date (" <<
callability.back()->date()
45 << ") later than maturity ("
46 << maturityDate_ << ")");
47 }
48
49 QL_REQUIRE(
exercise_,
"no exercise for conversion given");
50 QL_REQUIRE(!
exercise_->dates().empty(),
"exercise does not contain any conversion dates");
51
52 option_ = QuantLib::ext::make_shared<option>(
this);
53}
QuantLib::ext::shared_ptr< Exercise > exercise_
Real conversionRatio() const
const CallabilitySchedule & callability() const
QuantLib::ext::shared_ptr< option > option_
const DividendSchedule & dividends() const
QuantLib::ext::shared_ptr< Exercise > exercise() const
CallabilitySchedule callability_
DividendSchedule dividends_
◆ exercise()
QuantLib::ext::shared_ptr< Exercise > exercise |
( |
| ) |
const |
◆ conversionRatio()
Real conversionRatio |
( |
| ) |
const |
◆ dividends()
const DividendSchedule & dividends |
( |
| ) |
const |
◆ callability()
const CallabilitySchedule & callability |
( |
| ) |
const |
◆ performCalculations()
void performCalculations |
( |
| ) |
const |
|
overrideprotected |
Definition at line 55 of file convertiblebond.cpp.
55 {
57 NPV_ = settlementValue_ =
option_->NPV();
58 additionalResults_ =
option_->additionalResults();
59 errorEstimate_ = Null<Real>();
60}
QuantLib::ext::shared_ptr< PricingEngine > engine_
◆ exercise_
QuantLib::ext::shared_ptr<Exercise> exercise_ |
|
protected |
◆ conversionRatio_
◆ dividends_
DividendSchedule dividends_ |
|
protected |
◆ callability_
CallabilitySchedule callability_ |
|
protected |
◆ option_
QuantLib::ext::shared_ptr<option> option_ |
|
protected |