julian::OptionGreeks Class Referenceabstract

Interface for OptionGreeks decorator. More...

#include <optionGreeks.hpp>

Inheritance diagram for julian::OptionGreeks:
julian::OptionGreeksDecorator julian::OptionPV julian::OptionDelta julian::OptionGamma julian::OptionTheta julian::OptionVanna julian::OptionVega julian::OptionVolga

Public Member Functions

virtual std::map< std::string, double > getRisks (const SmartPointer< MarketModel > &, const SmartPointer< PricingEngine > &, const SmartPointer< Option > &)=0
 returns the PV and Greek parameter More...
 
virtual GreeksIntermediateResults calculateRisks (const SmartPointer< MarketModel > &, const SmartPointer< PricingEngine > &, const SmartPointer< Option > &)=0
 calculates the PV or Greek parameter More...
 
virtual OptionGreeksclone () const
 Virtual copy constructor. More...
 
virtual ~OptionGreeks ()
 Destructor. More...
 

Detailed Description

Interface for OptionGreeks decorator.

Constructor & Destructor Documentation

virtual julian::OptionGreeks::~OptionGreeks ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual GreeksIntermediateResults julian::OptionGreeks::calculateRisks ( const SmartPointer< MarketModel > &  ,
const SmartPointer< PricingEngine > &  ,
const SmartPointer< Option > &   
)
pure virtual

calculates the PV or Greek parameter

Returns
method returns the OptionResults

Implemented in julian::OptionVolga, julian::OptionVanna, julian::OptionGamma, julian::OptionVega, julian::OptionDelta, julian::OptionTheta, julian::OptionPV, and julian::OptionGreeksDecorator.

virtual OptionGreeks* julian::OptionGreeks::clone ( ) const
virtual
virtual std::map<std::string,double> julian::OptionGreeks::getRisks ( const SmartPointer< MarketModel > &  ,
const SmartPointer< PricingEngine > &  ,
const SmartPointer< Option > &   
)
pure virtual

returns the PV and Greek parameter

Returns
method returns map with name of Greeks as key and the value of Greeks as value

Implemented in julian::OptionGamma, julian::OptionVega, julian::OptionDelta, julian::OptionVolga, julian::OptionVanna, julian::OptionTheta, julian::OptionGreeksDecorator, and julian::OptionPV.

Examples:
optionPricingExample.cpp.

The documentation for this class was generated from the following file: