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 | List of all members
ForwardPerformanceVanillaEngine< Engine > Class Template Reference

Forward performance engine for vanilla options More...

#include <ql/pricingengines/forward/forwardperformanceengine.hpp>

+ Inheritance diagram for ForwardPerformanceVanillaEngine< Engine >:
+ Collaboration diagram for ForwardPerformanceVanillaEngine< Engine >:

Public Member Functions

 ForwardPerformanceVanillaEngine (const ext::shared_ptr< GeneralizedBlackScholesProcess > &)
 
void calculate () const override
 
- Public Member Functions inherited from ForwardVanillaEngine< Engine >
 ForwardVanillaEngine (ext::shared_ptr< GeneralizedBlackScholesProcess >)
 
void calculate () const override
 
- Public Member Functions inherited from GenericEngine< ForwardOptionArguments< VanillaOption::arguments >, VanillaOption::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

void getOriginalResults () const
 
- Protected Member Functions inherited from ForwardVanillaEngine< Engine >
void setup () const
 
void getOriginalResults () const
 

Additional Inherited Members

- Public Types inherited from Observer
typedef set_type::iterator iterator
 
- Protected Attributes inherited from ForwardVanillaEngine< Engine >
ext::shared_ptr< GeneralizedBlackScholesProcessprocess_
 
ext::shared_ptr< Engine > originalEngine_
 
VanillaOption::argumentsoriginalArguments_
 
const VanillaOption::resultsoriginalResults_
 
- Protected Attributes inherited from GenericEngine< ForwardOptionArguments< VanillaOption::arguments >, VanillaOption::results >
ForwardOptionArguments< VanillaOption::argumentsarguments_
 
VanillaOption::results results_
 

Detailed Description

template<class Engine>
class QuantLib::ForwardPerformanceVanillaEngine< Engine >

Forward performance engine for vanilla options

Tests:
  • the correctness of the returned value is tested by reproducing results available in literature.
  • the correctness of the returned greeks is tested by reproducing numerical derivatives.

Definition at line 42 of file forwardperformanceengine.hpp.

Constructor & Destructor Documentation

◆ ForwardPerformanceVanillaEngine()

ForwardPerformanceVanillaEngine ( const ext::shared_ptr< GeneralizedBlackScholesProcess > &  process)

Definition at line 57 of file forwardperformanceengine.hpp.

Member Function Documentation

◆ calculate()

void calculate
overridevirtual

Reimplemented from ForwardVanillaEngine< Engine >.

Definition at line 62 of file forwardperformanceengine.hpp.

◆ getOriginalResults()

void getOriginalResults
protected

Definition at line 69 of file forwardperformanceengine.hpp.

+ Here is the call graph for this function: