#include <ored/marketdata/expiry.hpp>
|
|
| FutureContinuationExpiry (QuantLib::Natural expiryIndex=1) |
| | Constructor with optional explicit future continuation index.
|
|
QuantLib::Natural | expiryIndex () const |
| | Return the future continuation expiry index.
|
| void | fromString (const std::string &strIndex) 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 represented by a future continuation index
◆ fromString()
| void fromString |
( |
const std::string & | strIndex | ) |
|
|
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.
◆ toString()
| std::string toString |
( |
| ) |
const |
|
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.
◆ equal_to()
| bool equal_to |
( |
const Expiry & | other | ) |
const |
|
overrideprotectedvirtual |
Override in derived classes to compare specific expiries.
Implements Expiry.