#include <ored/marketdata/expiry.hpp>
Public Member Functions | |
FutureContinuationExpiry (QuantLib::Natural expiryIndex=1) | |
Constructor with optional explicit future continuation index. More... | |
QuantLib::Natural | expiryIndex () const |
Return the future continuation expiry index. More... | |
void | fromString (const std::string &strIndex) 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::Natural | expiryIndex_ |
Friends | |
class | boost::serialization::access |
Serialization. More... | |
Expiry represented by a future continuation index
Definition at line 132 of file expiry.hpp.
FutureContinuationExpiry | ( | QuantLib::Natural | expiryIndex = 1 | ) |
Constructor with optional explicit future continuation index.
Definition at line 83 of file expiry.cpp.
QuantLib::Natural expiryIndex | ( | ) | const |
Return the future continuation expiry index.
Definition at line 85 of file expiry.cpp.
|
overridevirtual |
Populate FutureContinuationExpiry object from strIndex
which should be of the form c<Index>
where Index is a positive integer. An exception is thrown if strIndex
is not of this form.
Implements Expiry.
Definition at line 87 of file expiry.cpp.
|
overridevirtual |
Writes the FutureContinuationExpiry object to string. This returns the string representation of the future continuation index i.e. a string of the form c<Index>
.
Implements Expiry.
Definition at line 93 of file expiry.cpp.
Override in derived classes to compare specific expiries.
Implements Expiry.
Definition at line 95 of file expiry.cpp.
|
private |
Definition at line 103 of file expiry.cpp.
|
friend |
Serialization.
Definition at line 156 of file expiry.hpp.
|
private |
Definition at line 154 of file expiry.hpp.