#include <ored/marketdata/expiry.hpp>
|
|
| ExpiryPeriod () |
| | Default constructor.
|
|
| ExpiryPeriod (const QuantLib::Period &expiryPeriod) |
| | Constructor with expiry period.
|
|
const QuantLib::Period & | expiryPeriod () const |
| | Return the expiry period.
|
| void | fromString (const std::string &strExpiryPeriod) override |
| std::string | toString () const override |
|
| bool | equal_to (const Expiry &other) const override |
| | Override in derived classes to compare specific expiries.
|
|
|
class | boost::serialization::access |
| | Serialization.
|
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.
◆ equal_to()
| bool equal_to |
( |
const Expiry & | other | ) |
const |
|
overrideprotectedvirtual |
Override in derived classes to compare specific expiries.
Implements Expiry.