Spread data class. More...
#include <ored/marketdata/marketdatum.hpp>
Inheritance diagram for CorrelationQuote:
Collaboration diagram for CorrelationQuote:Public Member Functions | |
| CorrelationQuote () | |
| CorrelationQuote (QuantLib::Real value, const QuantLib::Date &asof, const std::string &name, QuoteType quoteType, const std::string &index1, const std::string &index2, const std::string &expiry, const std::string &strike) | |
| Constructor. More... | |
| QuantLib::ext::shared_ptr< MarketDatum > | clone () override |
| Make a copy of the market datum. More... | |
Public Member Functions inherited from MarketDatum | |
| MarketDatum () | |
| MarketDatum (Real value, Date asofDate, const string &name, QuoteType quoteType, InstrumentType instrumentType) | |
| Constructor. More... | |
| virtual | ~MarketDatum () |
| Default destructor. More... | |
| virtual QuantLib::ext::shared_ptr< MarketDatum > | clone () |
| Make a copy of the market datum. More... | |
| const string & | name () const |
| const Handle< Quote > & | quote () const |
| Date | asofDate () const |
| InstrumentType | instrumentType () const |
| QuoteType | quoteType () const |
Inspectors | |
| std::string | index1_ |
| std::string | index2_ |
| std::string | expiry_ |
| std::string | strike_ |
| class | boost::serialization::access |
| Serialization. More... | |
| const std::string & | index1 () const |
| const std::string & | index2 () const |
| const std::string & | expiry () const |
| const std::string & | strike () const |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
Spread data class.
This class holds single market points of type SPREAD
Definition at line 1840 of file marketdatum.hpp.
| CorrelationQuote | ( | ) |
Definition at line 1842 of file marketdatum.hpp.
| CorrelationQuote | ( | QuantLib::Real | value, |
| const QuantLib::Date & | asof, | ||
| const std::string & | name, | ||
| QuoteType | quoteType, | ||
| const std::string & | index1, | ||
| const std::string & | index2, | ||
| const std::string & | expiry, | ||
| const std::string & | strike | ||
| ) |
Constructor.
| value | The correlation value |
| asof | The quote date |
| name | The quote name |
| quoteType | The quote type, should be RATE or PRICE |
| index1 | The name of the first index |
| index2 | The name of the second index |
| expiry | Expiry can be a period or a date |
| strike | Can be underlying commodity price or ATM |
|
overridevirtual |
Make a copy of the market datum.
Reimplemented from MarketDatum.
Definition at line 1858 of file marketdatum.hpp.
| const std::string & index1 | ( | ) | const |
Definition at line 1864 of file marketdatum.hpp.
| const std::string & index2 | ( | ) | const |
Definition at line 1865 of file marketdatum.hpp.
| const std::string & expiry | ( | ) | const |
Definition at line 1866 of file marketdatum.hpp.
| const std::string & strike | ( | ) | const |
Definition at line 1867 of file marketdatum.hpp.
|
private |
|
friend |
Serialization.
Definition at line 1876 of file marketdatum.hpp.
|
private |
Definition at line 1871 of file marketdatum.hpp.
|
private |
Definition at line 1872 of file marketdatum.hpp.
|
private |
Definition at line 1873 of file marketdatum.hpp.
|
private |
Definition at line 1874 of file marketdatum.hpp.