#include <ored/marketdata/expiry.hpp>
|
|
| ExpiryDate () |
| | Default constructor.
|
|
| ExpiryDate (const QuantLib::Date &expiryDate) |
| | Constructor with explicit expiry date.
|
|
const QuantLib::Date & | expiryDate () const |
| | Return the expiry date.
|
| void | fromString (const std::string &strExpiryDate) 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 an explicit expiry date
◆ fromString()
| void fromString |
( |
const std::string & | strExpiryDate | ) |
|
|
overridevirtual |
Populate ExpiryDate object from strExpiryDate which should be a date. An exception is thrown if strExpiryDate cannot be parsed as a QuantLib::Date.
Implements Expiry.
◆ toString()
| std::string toString |
( |
| ) |
const |
|
overridevirtual |
Writes the ExpiryDate object to string. This returns the string representation of the expiry date.
Implements Expiry.
◆ equal_to()
| bool equal_to |
( |
const Expiry & | other | ) |
const |
|
overrideprotectedvirtual |
Override in derived classes to compare specific expiries.
Implements Expiry.