#include <ored/marketdata/strike.hpp>
Inheritance diagram for MoneynessStrike:
Collaboration diagram for MoneynessStrike:Public Types | |
| enum class | Type { Spot , Forward } |
Public Member Functions | |
| MoneynessStrike () | |
| Default constructor. More... | |
| MoneynessStrike (Type type, QuantLib::Real moneyness) | |
| 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 | |
| Type | type_ |
| QuantLib::Real | moneyness_ |
| class | boost::serialization::access |
| Serialization. More... | |
| Type | type () const |
| Return the moneyness type. More... | |
| QuantLib::Real | moneyness () const |
| Return the moneyness 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 moneyness type and a moneyness level.
Definition at line 206 of file strike.hpp.
|
strong |
The MoneynessStrike type.
Spot, the moneyness level will be interpreted as the implicit strike divided by the spot value.Forward, the moneyness level will be interpreted as the implicit strike divided by the forward value. | Enumerator | |
|---|---|
| Spot | |
| Forward | |
Definition at line 214 of file strike.hpp.
| MoneynessStrike | ( | ) |
| MoneynessStrike | ( | Type | type, |
| QuantLib::Real | moneyness | ||
| ) |
Explicit constructor.
| MoneynessStrike::Type type | ( | ) | const |
Return the moneyness type.
Definition at line 171 of file strike.cpp.
Here is the caller graph for this function:| Real moneyness | ( | ) | const |
Return the moneyness level.
Definition at line 173 of file strike.cpp.
Here is the caller graph for this function:
|
overridevirtual |
Populate MoneynessStrike object from strStrike.
The strStrike is expected to be of the form MNY / Spot|Fwd / MONEYNESS_VALUE.
Implements BaseStrike.
Definition at line 175 of file strike.cpp.
Here is the call graph for this function:
|
overridevirtual |
Writes the MoneynessStrike object to string.
The string representation of the MoneynessStrike object is of the form MNY / Spot|Fwd / MONEYNESS_VALUE.
Implements BaseStrike.
Definition at line 187 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 195 of file strike.cpp.
|
private |
Definition at line 309 of file strike.cpp.
|
friend |
Serialization.
Definition at line 251 of file strike.hpp.
|
private |
Definition at line 247 of file strike.hpp.
|
private |
Definition at line 248 of file strike.hpp.