#include <ored/marketdata/strike.hpp>
Public Member Functions | |
AbsoluteStrike () | |
Default constructor. More... | |
AbsoluteStrike (QuantLib::Real strike) | |
Constructor with explicit strike. More... | |
QuantLib::Real | strike () const |
Return the absolute strike level. More... | |
void | fromString (const std::string &strStrike) override |
std::string | toString () const override |
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... | |
Protected Member Functions | |
bool | equal_to (const BaseStrike &other) const override |
Override in derived classes to compare specific Strikes. More... | |
virtual bool | equal_to (const BaseStrike &other) const =0 |
Override in derived classes to compare specific Strikes. More... | |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Private Attributes | |
QuantLib::Real | strike_ |
Friends | |
class | boost::serialization::access |
Serialization. More... | |
Strike implementation where the strike is described by a single number that represents the absolute strike level.
Definition at line 68 of file strike.hpp.
AbsoluteStrike | ( | ) |
AbsoluteStrike | ( | QuantLib::Real | strike | ) |
Constructor with explicit strike.
Real strike | ( | ) | const |
Return the absolute strike level.
Definition at line 44 of file strike.cpp.
|
overridevirtual |
Populate AbsoluteStrike object from strStrike
which should be a number. An exception is thrown if strStrike
cannot be parsed as a QuantLib::Real
.
Implements BaseStrike.
Definition at line 46 of file strike.cpp.
|
overridevirtual |
Writes the AbsoluteStrike object to string. This returns the string representation of the absolute strike number.
Implements BaseStrike.
Definition at line 48 of file strike.cpp.
|
overrideprotectedvirtual |
Override in derived classes to compare specific Strikes.
Implements BaseStrike.
Definition at line 50 of file strike.cpp.
|
private |
Definition at line 291 of file strike.cpp.
|
friend |
Serialization.
Definition at line 95 of file strike.hpp.
|
private |
Definition at line 93 of file strike.hpp.