QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
helper class More...
#include <makecds.hpp>
Public Member Functions | |
MakeCreditDefaultSwap (const Period &tenor, Real couponRate) | |
MakeCreditDefaultSwap (const Date &termDate, Real couponRate) | |
operator CreditDefaultSwap () const | |
operator ext::shared_ptr< CreditDefaultSwap > () const | |
MakeCreditDefaultSwap & | withUpfrontRate (Real) |
MakeCreditDefaultSwap & | withSide (Protection::Side) |
MakeCreditDefaultSwap & | withNominal (Real) |
MakeCreditDefaultSwap & | withCouponTenor (Period) |
MakeCreditDefaultSwap & | withDayCounter (DayCounter &) |
MakeCreditDefaultSwap & | withLastPeriodDayCounter (DayCounter &) |
MakeCreditDefaultSwap & | withDateGenerationRule (DateGeneration::Rule rule) |
MakeCreditDefaultSwap & | withCashSettlementDays (Natural cashSettlementDays) |
MakeCreditDefaultSwap & | withPricingEngine (const ext::shared_ptr< PricingEngine > &) |
MakeCreditDefaultSwap & | withTradeDate (const Date &tradeDate) |
Private Attributes | |
Protection::Side | side_ |
Real | nominal_ |
ext::optional< Period > | tenor_ |
ext::optional< Date > | termDate_ |
Period | couponTenor_ |
Real | couponRate_ |
Real | upfrontRate_ |
DayCounter | dayCounter_ |
DayCounter | lastPeriodDayCounter_ |
DateGeneration::Rule | rule_ |
Natural | cashSettlementDays_ |
Date | tradeDate_ |
ext::shared_ptr< PricingEngine > | engine_ |
helper class
This class provides a more comfortable way to instantiate standard cds.
Definition at line 37 of file makecds.hpp.
MakeCreditDefaultSwap | ( | const Period & | tenor, |
Real | couponRate | ||
) |
Definition at line 28 of file makecds.cpp.
MakeCreditDefaultSwap | ( | const Date & | termDate, |
Real | couponRate | ||
) |
Definition at line 35 of file makecds.cpp.
operator CreditDefaultSwap | ( | ) | const |
operator ext::shared_ptr< CreditDefaultSwap > | ( | ) | const |
MakeCreditDefaultSwap & withUpfrontRate | ( | Real | upfrontRate | ) |
Definition at line 85 of file makecds.cpp.
MakeCreditDefaultSwap & withSide | ( | Protection::Side | side | ) |
Definition at line 91 of file makecds.cpp.
MakeCreditDefaultSwap & withNominal | ( | Real | nominal | ) |
Definition at line 96 of file makecds.cpp.
MakeCreditDefaultSwap & withCouponTenor | ( | Period | couponTenor | ) |
Definition at line 102 of file makecds.cpp.
MakeCreditDefaultSwap & withDayCounter | ( | DayCounter & | dayCounter | ) |
Definition at line 108 of file makecds.cpp.
MakeCreditDefaultSwap & withLastPeriodDayCounter | ( | DayCounter & | lastPeriodDayCounter | ) |
Definition at line 113 of file makecds.cpp.
MakeCreditDefaultSwap & withDateGenerationRule | ( | DateGeneration::Rule | rule | ) |
Definition at line 119 of file makecds.cpp.
MakeCreditDefaultSwap & withCashSettlementDays | ( | Natural | cashSettlementDays | ) |
Definition at line 124 of file makecds.cpp.
MakeCreditDefaultSwap & withPricingEngine | ( | const ext::shared_ptr< PricingEngine > & | engine | ) |
Definition at line 129 of file makecds.cpp.
MakeCreditDefaultSwap & withTradeDate | ( | const Date & | tradeDate | ) |
Definition at line 135 of file makecds.cpp.
|
private |
Definition at line 59 of file makecds.hpp.
|
private |
Definition at line 60 of file makecds.hpp.
|
private |
Definition at line 61 of file makecds.hpp.
|
private |
Definition at line 62 of file makecds.hpp.
|
private |
Definition at line 63 of file makecds.hpp.
|
private |
Definition at line 64 of file makecds.hpp.
|
private |
Definition at line 65 of file makecds.hpp.
|
private |
Definition at line 66 of file makecds.hpp.
|
private |
Definition at line 67 of file makecds.hpp.
|
private |
Definition at line 68 of file makecds.hpp.
|
private |
Definition at line 69 of file makecds.hpp.
|
private |
Definition at line 70 of file makecds.hpp.
|
private |
Definition at line 72 of file makecds.hpp.