#include <ored/marketdata/expiry.hpp>
|
|
bool | equal_to (const Expiry &other) const override |
| | Override in derived classes to compare specific expiries.
|
| |
Expiry consisting of a period
◆ fromString()
| void fromString |
( |
const std::string & |
strExpiryPeriod | ) |
|
|
overridevirtual |
Populate ExpiryPeriod object from strExpiryPeriod which should be a period. An exception is thrown if strExpiryPeriod cannot be parsed as a QuantLib::Period.
Implements Expiry.
◆ toString()
| std::string toString |
( |
| ) |
const |
|
overridevirtual |
Writes the ExpiryPeriod object to string. This returns the string representation of the expiry period.
Implements Expiry.