Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Member Functions | List of all members
BlackMultiLegOptionEngine Class Reference

#include <qle/pricingengines/blackmultilegoptionengine.hpp>

+ Inheritance diagram for BlackMultiLegOptionEngine:
+ Collaboration diagram for BlackMultiLegOptionEngine:

Public Member Functions

 BlackMultiLegOptionEngine (const Handle< YieldTermStructure > &discountCurve, const Handle< SwaptionVolatilityStructure > &volatility)
 
void calculate () const override
 
- Public Member Functions inherited from BlackMultiLegOptionEngineBase
 BlackMultiLegOptionEngineBase (const Handle< YieldTermStructure > &discountCurve, const Handle< SwaptionVolatilityStructure > &volatility)
 

Additional Inherited Members

- Static Public Member Functions inherited from BlackMultiLegOptionEngineBase
static bool instrumentIsHandled (const MultiLegOption &m, std::vector< std::string > &messages)
 
- Protected Member Functions inherited from BlackMultiLegOptionEngineBase
void calculate () const
 
- Static Protected Member Functions inherited from BlackMultiLegOptionEngineBase
static bool instrumentIsHandled (const std::vector< Leg > &legs, const std::vector< bool > &payer, const std::vector< Currency > &currency, const QuantLib::ext::shared_ptr< Exercise > &exercise, const Settlement::Type &settlementType, const Settlement::Method &settlementMethod, std::vector< std::string > &messages)
 
- Protected Attributes inherited from BlackMultiLegOptionEngineBase
Handle< YieldTermStructure > discountCurve_
 
Handle< SwaptionVolatilityStructurevolatility_
 
std::vector< Leg > legs_
 
std::vector< boolpayer_
 
std::vector< Currency > currency_
 
QuantLib::ext::shared_ptr< Exercise > exercise_
 
Settlement::Type settlementType_
 
Settlement::Method settlementMethod_
 
Real npv_
 
Real underlyingNpv_
 
std::map< std::string, boost::any > additionalResults_
 

Detailed Description

Definition at line 66 of file blackmultilegoptionengine.hpp.

Constructor & Destructor Documentation

◆ BlackMultiLegOptionEngine()

BlackMultiLegOptionEngine ( const Handle< YieldTermStructure > &  discountCurve,
const Handle< SwaptionVolatilityStructure > &  volatility 
)

Definition at line 353 of file blackmultilegoptionengine.cpp.

355 : BlackMultiLegOptionEngineBase(discountCurve, volatility) {
356 registerWith(discountCurve_);
357 registerWith(volatility_);
358}
BlackMultiLegOptionEngineBase(const Handle< YieldTermStructure > &discountCurve, const Handle< SwaptionVolatilityStructure > &volatility)
Handle< SwaptionVolatilityStructure > volatility_

Member Function Documentation

◆ calculate()

void calculate ( ) const
override

Definition at line 360 of file blackmultilegoptionengine.cpp.

360 {
361 legs_ = arguments_.legs;
362 payer_ = arguments_.payer;
363 currency_ = arguments_.currency;
364 exercise_ = arguments_.exercise;
365 settlementType_ = arguments_.settlementType;
366 settlementMethod_ = arguments_.settlementMethod;
367
369
370 results_.value = npv_;
371 results_.underlyingNpv = underlyingNpv_;
372 results_.additionalResults = additionalResults_;
373 results_.additionalResults["underlyingNpv"] = underlyingNpv_;
374}
const Instrument::results * results_
Definition: cdsoption.cpp:81
QuantLib::ext::shared_ptr< Exercise > exercise_
std::map< std::string, boost::any > additionalResults_
Swap::arguments * arguments_
+ Here is the call graph for this function: