#include <ored/marketdata/expiry.hpp>
Public Member Functions | |
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 | |
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) |
Friends | |
class | boost::serialization::access |
Serialization. More... | |
bool | operator== (const Expiry &lhs, const Expiry &rhs) |
Will be used for Expiry comparison. More... | |
Abstract base class to hold information that describes an expiry.
Definition at line 41 of file expiry.hpp.
|
virtual |
Definition at line 43 of file expiry.hpp.
|
pure virtual |
Populate the Expiry object from strExpiry
.
Implemented in ExpiryDate, ExpiryPeriod, and FutureContinuationExpiry.
|
pure virtual |
Write the Expiry object to string.
Implemented in ExpiryDate, ExpiryPeriod, and FutureContinuationExpiry.
Override in derived classes to compare specific expiries.
Implemented in ExpiryDate, ExpiryPeriod, and FutureContinuationExpiry.
|
private |
Definition at line 35 of file expiry.cpp.
|
friend |
Serialization.
Definition at line 60 of file expiry.hpp.