#include <ored/marketdata/strike.hpp>
Inheritance diagram for DeltaStrike:
Collaboration diagram for DeltaStrike:Public Member Functions | |
| DeltaStrike () | |
| Default constructor. More... | |
| DeltaStrike (QuantLib::DeltaVolQuote::DeltaType deltaType, QuantLib::Option::Type optionType, QuantLib::Real delta) | |
| Explicit constructor. More... | |
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::DeltaType | deltaType_ |
| QuantLib::Option::Type | optionType_ |
| QuantLib::Real | delta_ |
| class | boost::serialization::access |
| Serialization. More... | |
| QuantLib::DeltaVolQuote::DeltaType | deltaType () const |
| Return the delta type. More... | |
| QuantLib::Option::Type | optionType () const |
| Return the option type. More... | |
| QuantLib::Real | delta () const |
| Return the delta level. 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... | |
| 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 where the strike is described by a delta type, an option type and a delta level.
Definition at line 101 of file strike.hpp.
| DeltaStrike | ( | ) |
Default constructor.
Definition at line 58 of file strike.cpp.
| DeltaStrike | ( | QuantLib::DeltaVolQuote::DeltaType | deltaType, |
| QuantLib::Option::Type | optionType, | ||
| QuantLib::Real | delta | ||
| ) |
Explicit constructor.
| DeltaVolQuote::DeltaType deltaType | ( | ) | const |
Return the delta type.
Definition at line 63 of file strike.cpp.
Here is the caller graph for this function:| Option::Type optionType | ( | ) | const |
Return the option type.
Definition at line 65 of file strike.cpp.
Here is the caller graph for this function:| Real delta | ( | ) | const |
Return the delta level.
Definition at line 67 of file strike.cpp.
Here is the caller graph for this function:
|
overridevirtual |
Populate DeltaStrike object from strStrike.
The strStrike is expected to be of the form DEL / Spot|Fwd|PaSpot|PaFwd / Call|Put / DELTA_VALUE. An exception is thrown if strStrike is not of this form and cannot be parsed properly.
Implements BaseStrike.
Definition at line 69 of file strike.cpp.
Here is the call graph for this function:
|
overridevirtual |
Writes the DeltaStrike object to string.
The string representation of the DeltaStrike object is of the form DEL / Spot|Fwd|PaSpot|PaFwd / Call|Put / DELTA_VALUE.
Implements BaseStrike.
Definition at line 82 of file strike.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overrideprotectedvirtual |
Override in derived classes to compare specific Strikes.
Implements BaseStrike.
Definition at line 90 of file strike.cpp.
|
private |
Definition at line 296 of file strike.cpp.
|
friend |
Serialization.
Definition at line 143 of file strike.hpp.
|
private |
Definition at line 139 of file strike.hpp.
|
private |
Definition at line 140 of file strike.hpp.
|
private |
Definition at line 141 of file strike.hpp.