QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
QdPutCallParityEngine Class Referenceabstract

#include <ql/pricingengines/vanilla/qdplusamericanengine.hpp>

+ Inheritance diagram for QdPutCallParityEngine:
+ Collaboration diagram for QdPutCallParityEngine:

Public Member Functions

 QdPutCallParityEngine (ext::shared_ptr< GeneralizedBlackScholesProcess > process)
 
void calculate () const override
 
- Public Member Functions inherited from GenericEngine< OneAssetOption::arguments, OneAssetOption::results >
PricingEngine::argumentsgetArguments () const override
 
const PricingEngine::resultsgetResults () const override
 
void reset () override
 
void update () override
 
- Public Member Functions inherited from PricingEngine
 ~PricingEngine () override=default
 
virtual argumentsgetArguments () const =0
 
virtual const resultsgetResults () const =0
 
virtual void reset ()=0
 
virtual void calculate () const =0
 
- Public Member Functions inherited from Observable
 Observable ()
 
 Observable (const Observable &)
 
Observableoperator= (const Observable &)
 
 Observable (Observable &&)=delete
 
Observableoperator= (Observable &&)=delete
 
virtual ~Observable ()=default
 
void notifyObservers ()
 
- Public Member Functions inherited from Observer
 Observer ()=default
 
 Observer (const Observer &)
 
Observeroperator= (const Observer &)
 
virtual ~Observer ()
 
std::pair< iterator, boolregisterWith (const ext::shared_ptr< Observable > &)
 
void registerWithObservables (const ext::shared_ptr< Observer > &)
 
Size unregisterWith (const ext::shared_ptr< Observable > &)
 
void unregisterWithAll ()
 
virtual void update ()=0
 
virtual void deepUpdate ()
 

Protected Member Functions

virtual Real calculatePut (Real S, Real K, Rate r, Rate q, Volatility vol, Time T) const =0
 

Protected Attributes

const ext::shared_ptr< GeneralizedBlackScholesProcessprocess_
 
- Protected Attributes inherited from GenericEngine< OneAssetOption::arguments, OneAssetOption::results >
OneAssetOption::arguments arguments_
 
OneAssetOption::results results_
 

Private Member Functions

Real calculatePutWithEdgeCases (Real S, Real K, Rate r, Rate q, Volatility vol, Time T) const
 

Additional Inherited Members

- Public Types inherited from Observer
typedef set_type::iterator iterator
 

Detailed Description

Definition at line 40 of file qdplusamericanengine.hpp.

Constructor & Destructor Documentation

◆ QdPutCallParityEngine()

QdPutCallParityEngine ( ext::shared_ptr< GeneralizedBlackScholesProcess process)
explicit

Definition at line 160 of file qdplusamericanengine.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ calculate()

void calculate ( ) const
overridevirtual

Implements PricingEngine.

Definition at line 166 of file qdplusamericanengine.cpp.

◆ calculatePut()

virtual Real calculatePut ( Real  S,
Real  K,
Rate  r,
Rate  q,
Volatility  vol,
Time  T 
) const
protectedpure virtual

◆ calculatePutWithEdgeCases()

Real calculatePutWithEdgeCases ( Real  S,
Real  K,
Rate  r,
Rate  q,
Volatility  vol,
Time  T 
) const
private

Definition at line 197 of file qdplusamericanengine.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ process_

const ext::shared_ptr<GeneralizedBlackScholesProcess> process_
protected

Definition at line 51 of file qdplusamericanengine.hpp.