#include <qle/instruments/riskparticipationagreement.hpp>
Classes | |
class | arguments |
class | engine |
class | results |
Public Member Functions | |
RiskParticipationAgreement (const std::vector< Leg > &underlying, const std::vector< bool > &underlyingPayer, const std::vector< std::string > &underlyingCcys, const std::vector< Leg > &protectionFee, const bool protectionFeePayer, const std::vector< std::string > &protectionFeeCcys, const Real participationRate, const Date &protectionStart, const Date &protectionEnd, const bool settlesAccrual, const Real fixedRecoveryRate=Null< Real >(), const QuantLib::ext::shared_ptr< QuantLib::Exercise > &exercise=nullptr, const bool exerciseIsLong=false, const std::vector< QuantLib::ext::shared_ptr< CashFlow > > &premium=std::vector< QuantLib::ext::shared_ptr< CashFlow > >(), const bool nakedOption=false) | |
bool | isExpired () const override |
Instrument interface. More... | |
const std::vector< Leg > & | underlying () const |
Inspectors. More... | |
const std::vector< bool > & | underlyingPayer () const |
const std::vector< std::string > & | underlyingCcys () const |
const std::vector< Leg > & | protectionFee () const |
bool | protectionFeePayer () const |
const std::vector< std::string > & | protectionFeeCcys () const |
Real | participationRate () const |
const Date & | protectionStart () const |
const Date & | protectionEnd () const |
bool | settlesAccrual () const |
Real | fixedRecoveryRate () const |
const QuantLib::ext::shared_ptr< Exercise > & | exercise () const |
const bool | nakedOption () const |
const Date & | maturity () const |
const Date & | underlyingMaturity () const |
Private Member Functions | |
void | setupArguments (QuantLib::PricingEngine::arguments *) const override |
void | setupExpired () const override |
void | fetchResults (const QuantLib::PricingEngine::results *) const override |
Private Attributes | |
const std::vector< Leg > | underlying_ |
const std::vector< bool > | underlyingPayer_ |
const std::vector< std::string > | underlyingCcys_ |
const std::vector< Leg > | protectionFee_ |
const bool | protectionFeePayer_ |
const std::vector< std::string > | protectionFeeCcys_ |
const Real | participationRate_ |
const Date | protectionStart_ |
const Date | protectionEnd_ |
const bool | settlesAccrual_ |
const Real | fixedRecoveryRate_ |
const QuantLib::ext::shared_ptr< Exercise > | exercise_ |
const bool | exerciseIsLong_ |
const std::vector< QuantLib::ext::shared_ptr< CashFlow > > | premium_ |
const bool | nakedOption_ |
Date | maturity_ |
Date | underlyingMaturity_ |
Date | optionRepresentationReferenceDate_ |
std::vector< std::tuple< Date, Date, Date > > | optionRepresentationPeriods_ |
std::vector< QuantLib::ext::shared_ptr< Instrument > > | optionRepresentation_ |
std::vector< Real > | optionMultiplier_ |
Definition at line 35 of file riskparticipationagreement.hpp.
RiskParticipationAgreement | ( | const std::vector< Leg > & | underlying, |
const std::vector< bool > & | underlyingPayer, | ||
const std::vector< std::string > & | underlyingCcys, | ||
const std::vector< Leg > & | protectionFee, | ||
const bool | protectionFeePayer, | ||
const std::vector< std::string > & | protectionFeeCcys, | ||
const Real | participationRate, | ||
const Date & | protectionStart, | ||
const Date & | protectionEnd, | ||
const bool | settlesAccrual, | ||
const Real | fixedRecoveryRate = Null<Real>() , |
||
const QuantLib::ext::shared_ptr< QuantLib::Exercise > & | exercise = nullptr , |
||
const bool | exerciseIsLong = false , |
||
const std::vector< QuantLib::ext::shared_ptr< CashFlow > > & | premium = std::vector<QuantLib::ext::shared_ptr<CashFlow>>() , |
||
const bool | nakedOption = false |
||
) |
Definition at line 26 of file riskparticipationagreement.cpp.
|
override |
Instrument interface.
Definition at line 82 of file riskparticipationagreement.cpp.
const std::vector< Leg > & underlying | ( | ) | const |
Inspectors.
Definition at line 52 of file riskparticipationagreement.hpp.
const std::vector< bool > & underlyingPayer | ( | ) | const |
Definition at line 53 of file riskparticipationagreement.hpp.
const std::vector< std::string > & underlyingCcys | ( | ) | const |
Definition at line 54 of file riskparticipationagreement.hpp.
const std::vector< Leg > & protectionFee | ( | ) | const |
Definition at line 55 of file riskparticipationagreement.hpp.
bool protectionFeePayer | ( | ) | const |
Definition at line 56 of file riskparticipationagreement.hpp.
const std::vector< std::string > & protectionFeeCcys | ( | ) | const |
Definition at line 57 of file riskparticipationagreement.hpp.
Real participationRate | ( | ) | const |
Definition at line 58 of file riskparticipationagreement.hpp.
const Date & protectionStart | ( | ) | const |
Definition at line 59 of file riskparticipationagreement.hpp.
const Date & protectionEnd | ( | ) | const |
Definition at line 60 of file riskparticipationagreement.hpp.
bool settlesAccrual | ( | ) | const |
Definition at line 61 of file riskparticipationagreement.hpp.
Real fixedRecoveryRate | ( | ) | const |
Definition at line 62 of file riskparticipationagreement.hpp.
const QuantLib::ext::shared_ptr< Exercise > & exercise | ( | ) | const |
Definition at line 63 of file riskparticipationagreement.hpp.
const bool nakedOption | ( | ) | const |
Definition at line 64 of file riskparticipationagreement.hpp.
const Date & maturity | ( | ) | const |
Definition at line 66 of file riskparticipationagreement.hpp.
const Date & underlyingMaturity | ( | ) | const |
Definition at line 67 of file riskparticipationagreement.hpp.
|
overrideprivate |
Definition at line 92 of file riskparticipationagreement.cpp.
|
overrideprivate |
Definition at line 84 of file riskparticipationagreement.cpp.
|
overrideprivate |
Definition at line 118 of file riskparticipationagreement.cpp.
|
private |
Definition at line 74 of file riskparticipationagreement.hpp.
|
private |
Definition at line 75 of file riskparticipationagreement.hpp.
|
private |
Definition at line 76 of file riskparticipationagreement.hpp.
|
private |
Definition at line 77 of file riskparticipationagreement.hpp.
|
private |
Definition at line 78 of file riskparticipationagreement.hpp.
|
private |
Definition at line 79 of file riskparticipationagreement.hpp.
|
private |
Definition at line 80 of file riskparticipationagreement.hpp.
|
private |
Definition at line 81 of file riskparticipationagreement.hpp.
|
private |
Definition at line 81 of file riskparticipationagreement.hpp.
|
private |
Definition at line 82 of file riskparticipationagreement.hpp.
|
private |
Definition at line 83 of file riskparticipationagreement.hpp.
|
private |
Definition at line 84 of file riskparticipationagreement.hpp.
|
private |
Definition at line 85 of file riskparticipationagreement.hpp.
|
private |
Definition at line 86 of file riskparticipationagreement.hpp.
|
private |
Definition at line 87 of file riskparticipationagreement.hpp.
|
private |
Definition at line 90 of file riskparticipationagreement.hpp.
|
private |
Definition at line 90 of file riskparticipationagreement.hpp.
|
mutableprivate |
Definition at line 93 of file riskparticipationagreement.hpp.
|
mutableprivate |
Definition at line 94 of file riskparticipationagreement.hpp.
|
mutableprivate |
Definition at line 95 of file riskparticipationagreement.hpp.
|
mutableprivate |
Definition at line 96 of file riskparticipationagreement.hpp.