Equity Index. More...
#include <qle/indexes/equityindex.hpp>
Public Member Functions | |
EquityIndex2 (const std::string &familyName, const Calendar &fixingCalendar, const Currency ¤cy, const Handle< Quote > spotQuote=Handle< Quote >(), const Handle< YieldTermStructure > &rate=Handle< YieldTermStructure >(), const Handle< YieldTermStructure > ÷nd=Handle< YieldTermStructure >()) | |
Index interface | |
std::string | name () const override |
Currency | currency () const |
Calendar | fixingCalendar () const override |
bool | isValidFixingDate (const Date &fixingDate) const override |
Real | fixing (const Date &fixingDate, bool forecastTodaysFixing=false) const override |
Real | fixing (const Date &fixingDate, bool forecastTodaysFixing, bool incDividend) const |
virtual void | addDividend (const Dividend &fixing, bool forceOverwrite=false) |
stores the historical dividend at the given date More... | |
virtual const std::set< Dividend > & | dividendFixings () const |
Real | dividendsBetweenDates (const Date &startDate, const Date &endDate) const |
Observer interface | |
void | update () override |
Inspectors | |
std::string | familyName () const |
const Handle< Quote > & | equitySpot () const |
const Handle< YieldTermStructure > & | equityForecastCurve () const |
const Handle< YieldTermStructure > & | equityDividendCurve () const |
Fixing calculations | |
virtual Real | forecastFixing (const Date &fixingDate) const |
virtual Real | forecastFixing (const Time &fixingTime) const override |
returns the fixing at the given time More... | |
virtual Real | forecastFixing (const Date &fixingDate, bool incDividend) const |
virtual Real | forecastFixing (const Time &fixingTime, bool incDividend) const |
virtual Real | pastFixing (const Date &fixingDate) const override |
returns a past fixing at the given date More... | |
Public Member Functions inherited from EqFxIndexBase | |
virtual | ~EqFxIndexBase () |
virtual Real | forecastFixing (const Time &fixingTime) const =0 |
returns the fixing at the given time More... | |
virtual Real | pastFixing (const Date &fixingDate) const =0 |
returns a past fixing at the given date More... | |
Additional methods | |
std::string | familyName_ |
Currency | currency_ |
const Handle< YieldTermStructure > | rate_ |
const Handle< YieldTermStructure > | dividend_ |
std::string | name_ |
const Handle< Quote > | spotQuote_ |
Calendar | fixingCalendar_ |
virtual QuantLib::ext::shared_ptr< EquityIndex2 > | clone (const Handle< Quote > spotQuote, const Handle< YieldTermStructure > &rate, const Handle< YieldTermStructure > ÷nd) const |
Equity Index.
Renamed to EquityIndex2, because Quantlib has introduced an EquityIndex class in v1.30 which causes name conflicts in the compilation of the joint SWIG wrapper across QuantLib and QuantExt.
Definition at line 44 of file equityindex.hpp.
EquityIndex2 | ( | const std::string & | familyName, |
const Calendar & | fixingCalendar, | ||
const Currency & | currency, | ||
const Handle< Quote > | spotQuote = Handle<Quote>() , |
||
const Handle< YieldTermStructure > & | rate = Handle<YieldTermStructure>() , |
||
const Handle< YieldTermStructure > & | dividend = Handle<YieldTermStructure>() |
||
) |
spot quote is interpreted as of today
Definition at line 30 of file equityindex.cpp.
|
override |
Currency currency | ( | ) | const |
|
override |
|
override |
Definition at line 111 of file equityindex.hpp.
|
override |
Definition at line 44 of file equityindex.cpp.
Definition at line 48 of file equityindex.cpp.
stores the historical dividend at the given date
the date passed as arguments must be the actual calendar date of the dividend.
Reimplemented in CompoEquityIndex.
Definition at line 105 of file equityindex.cpp.
|
virtual |
Reimplemented in CompoEquityIndex.
Definition at line 67 of file equityindex.hpp.
Real dividendsBetweenDates | ( | const Date & | startDate, |
const Date & | endDate | ||
) | const |
Definition at line 121 of file equityindex.cpp.
|
override |
Definition at line 113 of file equityindex.hpp.
std::string familyName | ( | ) | const |
const Handle< Quote > & equitySpot | ( | ) | const |
Definition at line 77 of file equityindex.hpp.
const Handle< YieldTermStructure > & equityForecastCurve | ( | ) | const |
Definition at line 78 of file equityindex.hpp.
const Handle< YieldTermStructure > & equityDividendCurve | ( | ) | const |
Definition at line 79 of file equityindex.hpp.
|
virtual |
Definition at line 79 of file equityindex.cpp.
|
overridevirtual |
returns the fixing at the given time
Implements EqFxIndexBase.
Definition at line 86 of file equityindex.cpp.
|
virtual |
|
virtual |
Definition at line 88 of file equityindex.cpp.
|
overridevirtual |
returns a past fixing at the given date
the date passed as arguments must be the actual calendar date of the fixing; no settlement days must be used.
Implements EqFxIndexBase.
Reimplemented in CompoEquityIndex.
Definition at line 115 of file equityindex.hpp.
|
virtual |
Reimplemented in CompoEquityIndex.
Definition at line 137 of file equityindex.cpp.
|
protected |
Definition at line 95 of file equityindex.hpp.
|
protected |
Definition at line 96 of file equityindex.hpp.
|
protected |
Definition at line 97 of file equityindex.hpp.
|
protected |
Definition at line 97 of file equityindex.hpp.
|
protected |
Definition at line 98 of file equityindex.hpp.
|
protected |
Definition at line 99 of file equityindex.hpp.
|
private |
Definition at line 102 of file equityindex.hpp.