optionTheta.hpp
Go to the documentation of this file.
1 #ifndef JULIAN_OPTIONTHETA_HPP
2 #define JULIAN_OPTIONTHETA_HPP
3 
6 
7 namespace julian {
21  public:
24  OptionTheta(SmartPointer<OptionGreeks> input, const std::string& risk_name = "Theta"):
25  OptionGreeksDecorator(input), risk_name_(risk_name) {}
27  const SmartPointer<PricingEngine>& prizer,
28  const SmartPointer<Option>& option);
29 
30  std::map<std::string,double> getRisks(const SmartPointer<MarketModel>& model,
31  const SmartPointer<PricingEngine>& prizer,
32  const SmartPointer<Option>& option);
33  OptionTheta* clone() const;
34 
36  private:
37  std::string risk_name_;
39  };
40 } // namespace julian
41 
42 #endif
OptionTheta(SmartPointer< OptionGreeks > input, const std::string &risk_name="Theta")
Constructor.
Definition: optionTheta.hpp:24
Definition: cadHoliday.cpp:3
Calculates option&#39;s theta.
Definition: optionTheta.hpp:20
OptionTheta * clone() const
Virtual copy constructor.
Definition: optionTheta.cpp:35
Template of deep-coping smart pointer.
Definition: smartPointer.hpp:14
std::map< std::string, double > getRisks(const SmartPointer< MarketModel > &model, const SmartPointer< PricingEngine > &prizer, const SmartPointer< Option > &option)
returns the PV and Greek parameter
Definition: optionTheta.cpp:26
Interface of option Greeks decorating classes.
Data structure holding the PV and Greeks.
Definition: optionGreeks.hpp:23
File contains small mathematical classes and functions.
GreeksIntermediateResults calculateRisks(const SmartPointer< MarketModel > &model, const SmartPointer< PricingEngine > &prizer, const SmartPointer< Option > &option)
calculates the option&#39;s theta
Definition: optionTheta.cpp:10
std::string risk_name_
Risk name that will be used as key for result map. Default name is Theta.
Definition: optionTheta.hpp:35
Interface for classes decorating Option Greeks.
Definition: optionGreeksDecorator.hpp:15