#include <ored/marketdata/strike.hpp>
Inheritance diagram for AtmStrike:
Collaboration diagram for AtmStrike:Public Member Functions | |
| AtmStrike () | |
| Default constructor. More... | |
| AtmStrike (QuantLib::DeltaVolQuote::AtmType atmType, boost::optional< QuantLib::DeltaVolQuote::DeltaType > deltaType=boost::none) | |
Public Member Functions inherited from BaseStrike | |
| virtual | ~BaseStrike () |
| virtual void | fromString (const std::string &strStrike)=0 |
Populate the Strike object from strStrike. More... | |
| virtual std::string | toString () const =0 |
| Write the Strike object to string. More... | |
Inspectors | |
| QuantLib::DeltaVolQuote::AtmType | atmType_ |
| boost::optional< QuantLib::DeltaVolQuote::DeltaType > | deltaType_ |
| class | boost::serialization::access |
| Serialization. More... | |
| QuantLib::DeltaVolQuote::AtmType | atmType () const |
| Return the ATM type. More... | |
| boost::optional< QuantLib::DeltaVolQuote::DeltaType > | deltaType () const |
| Return the delta type. More... | |
| void | fromString (const std::string &strStrike) override |
| std::string | toString () const override |
| bool | equal_to (const BaseStrike &other) const override |
| Override in derived classes to compare specific Strikes. More... | |
| void | check () const |
| Perform validation. More... | |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
Additional Inherited Members | |
| virtual bool | equal_to (const BaseStrike &other) const =0 |
| Override in derived classes to compare specific Strikes. More... | |
Strike implementation for an at-the-money strike of various types.
Definition at line 149 of file strike.hpp.
| AtmStrike | ( | ) |
Default constructor.
Definition at line 98 of file strike.cpp.
| AtmStrike | ( | QuantLib::DeltaVolQuote::AtmType | atmType, |
| boost::optional< QuantLib::DeltaVolQuote::DeltaType > | deltaType = boost::none |
||
| ) |
Explicit constructor. Note that:
atmType of AtmNull throws an error.atmType is AtmDeltaNeutral, a deltaType is needed.atmType is not AtmDeltaNeutral, deltaType should not be provided.atmType is AtmPutCall50, deltaType must be DeltaVolQuote::Fwd. | DeltaVolQuote::AtmType atmType | ( | ) | const |
Return the ATM type.
Definition at line 105 of file strike.cpp.
Here is the caller graph for this function:| boost::optional< DeltaVolQuote::DeltaType > deltaType | ( | ) | const |
Return the delta type.
Definition at line 107 of file strike.cpp.
Here is the caller graph for this function:
|
overridevirtual |
Populate AtmStrike object from strStrike.
The strStrike is expected to be of the form: ATM / AtmSpot|AtmFwd|AtmDeltaNeutral|AtmVegaMax|AtmGammaMax|AtmPutCall50 followed by an optional / DEL / Spot|Fwd|PaSpot|PaFwd to specify the delta if it is needed. An exception is thrown if strStrike is not of this form and cannot be parsed properly.
Implements BaseStrike.
Definition at line 109 of file strike.cpp.
Here is the call graph for this function:
|
overridevirtual |
Writes the AtmStrike object to string.
The string representation of the DeltaStrike object is of the form ATM / AtmSpot|AtmFwd|AtmDeltaNeutral|AtmVegaMax|AtmGammaMax|AtmPutCall50 followed by an optional / DEL / Spot|Fwd|PaSpot|PaFwd if the delta type has been populated.
Implements BaseStrike.
Definition at line 130 of file strike.cpp.
Here is the caller graph for this function:
|
overrideprotectedvirtual |
Override in derived classes to compare specific Strikes.
Implements BaseStrike.
Definition at line 145 of file strike.cpp.
|
private |
Perform validation.
Definition at line 154 of file strike.cpp.
Here is the caller graph for this function:
|
private |
Definition at line 303 of file strike.cpp.
|
friend |
Serialization.
Definition at line 200 of file strike.hpp.
|
private |
Definition at line 193 of file strike.hpp.
|
private |
Definition at line 194 of file strike.hpp.