#include <ored/marketdata/expiry.hpp>
Inheritance diagram for ExpiryDate:
Collaboration diagram for ExpiryDate:Public Member Functions | |
| ExpiryDate () | |
| Default constructor. More... | |
| ExpiryDate (const QuantLib::Date &expiryDate) | |
| Constructor with explicit expiry date. More... | |
| const QuantLib::Date & | expiryDate () const |
| Return the expiry date. More... | |
| void | fromString (const std::string &strExpiryDate) override |
| std::string | toString () const override |
Public Member Functions inherited from Expiry | |
| virtual | ~Expiry () |
| virtual void | fromString (const std::string &strExpiry)=0 |
Populate the Expiry object from strExpiry. More... | |
| virtual std::string | toString () const =0 |
| Write the Expiry object to string. More... | |
Protected Member Functions | |
| bool | equal_to (const Expiry &other) const override |
| Override in derived classes to compare specific expiries. More... | |
| virtual bool | equal_to (const Expiry &other) const =0 |
| Override in derived classes to compare specific expiries. More... | |
Private Member Functions | |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
Private Attributes | |
| QuantLib::Date | expiryDate_ |
Friends | |
| class | boost::serialization::access |
| Serialization. More... | |
Expiry consisting of an explicit expiry date
Definition at line 66 of file expiry.hpp.
| ExpiryDate | ( | ) |
| ExpiryDate | ( | const QuantLib::Date & | expiryDate | ) |
Constructor with explicit expiry date.
| const Date & expiryDate | ( | ) | const |
Return the expiry date.
Definition at line 41 of file expiry.cpp.
Here is the caller graph for this function:
|
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.
Definition at line 43 of file expiry.cpp.
Here is the call graph for this function:
|
overridevirtual |
Writes the ExpiryDate object to string. This returns the string representation of the expiry date.
Implements Expiry.
Definition at line 45 of file expiry.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Override in derived classes to compare specific expiries.
Implements Expiry.
Definition at line 47 of file expiry.cpp.
|
private |
Definition at line 55 of file expiry.cpp.
|
friend |
Serialization.
Definition at line 93 of file expiry.hpp.
|
private |
Definition at line 91 of file expiry.hpp.