Generic Index.
More...
#include <qle/indexes/genericindex.hpp>
|
std::string | name_ |
|
QuantLib::Date | expiry_ |
|
std::string | name () const override |
|
const QuantLib::Date & | expiry () const |
|
QuantLib::Calendar | fixingCalendar () const override |
|
bool | isValidFixingDate (const QuantLib::Date &fixingDate) const override |
|
QuantLib::Real | fixing (const QuantLib::Date &fixingDate, bool forecastTodaysFixing=false) const override |
|
Generic Index.
Definition at line 33 of file genericindex.hpp.
◆ GenericIndex()
GenericIndex |
( |
const std::string & |
name, |
|
|
const QuantLib::Date & |
expiry = QuantLib::Date() |
|
) |
| |
|
explicit |
Definition at line 35 of file genericindex.hpp.
35 :
std::string name() const override
const QuantLib::Date & expiry() const
◆ name()
std::string name |
( |
| ) |
const |
|
override |
◆ expiry()
const QuantLib::Date & expiry |
( |
| ) |
const |
◆ fixingCalendar()
QuantLib::Calendar fixingCalendar |
( |
| ) |
const |
|
override |
◆ isValidFixingDate()
bool isValidFixingDate |
( |
const QuantLib::Date & |
fixingDate | ) |
const |
|
override |
◆ fixing()
QuantLib::Real fixing |
( |
const QuantLib::Date & |
fixingDate, |
|
|
bool |
forecastTodaysFixing = false |
|
) |
| const |
|
override |
Definition at line 43 of file genericindex.hpp.
43 {
45 QL_FAIL("GenericIndex, fixingDate is after expiry");
47 QL_REQUIRE(tmp != QuantLib::Null<QuantLib::Real>(),
"Missing " <<
name() <<
" fixing for " << fixingDate);
48 return tmp;
49 }
QuantLib::Date fixingDate(const QuantLib::Date &d, const QuantLib::Period obsLag, const QuantLib::Frequency freq, bool interpolated)
◆ name_
◆ expiry_