Base class for year-on-year inflation indices. More...
#include <ql/indexes/inflationindex.hpp>
Public Member Functions | |
YoYInflationIndex (const std::string &familyName, const Region ®ion, bool revised, bool interpolated, bool ratio, Frequency frequency, const Period &availabilityLag, const Currency ¤cy, const Handle< YoYInflationTermStructure > &ts=Handle< YoYInflationTermStructure >()) | |
Index interface | |
Rate | fixing (const Date &fixingDate, bool forecastTodaysFixing=false) const |
Other methods | |
bool | ratio () const |
Handle< YoYInflationTermStructure > | yoyInflationTermStructure () const |
boost::shared_ptr < YoYInflationIndex > | clone (const Handle< YoYInflationTermStructure > &h) const |
![]() | |
InflationIndex (const std::string &familyName, const Region ®ion, bool revised, bool interpolated, Frequency frequency, const Period &availabilitiyLag, const Currency ¤cy) | |
std::string | name () const |
Returns the name of the index. | |
Calendar | fixingCalendar () const |
bool | isValidFixingDate (const Date &fixingDate) const |
returns TRUE if the fixing date is a valid one | |
void | addFixing (const Date &fixingDate, Rate fixing, bool forceOverwrite=false) |
void | update () |
std::string | familyName () const |
Region | region () const |
bool | revised () const |
bool | interpolated () const |
Frequency | frequency () const |
Period | availabilityLag () const |
Currency | currency () const |
![]() | |
const TimeSeries< Real > & | timeSeries () const |
returns the fixing TimeSeries | |
void | addFixings (const TimeSeries< Real > &t, bool forceOverwrite=false) |
stores historical fixings from a TimeSeries | |
template<class DateIterator , class ValueIterator > | |
void | addFixings (DateIterator dBegin, DateIterator dEnd, ValueIterator vBegin, bool forceOverwrite=false) |
stores historical fixings at the given dates | |
void | clearFixings () |
clears all stored historical fixings | |
![]() | |
Observable (const Observable &) | |
Observable & | operator= (const Observable &) |
void | notifyObservers () |
![]() | |
Observer (const Observer &) | |
Observer & | operator= (const Observer &) |
std::pair< std::set < boost::shared_ptr < Observable > >::iterator, bool > | registerWith (const boost::shared_ptr< Observable > &) |
Size | unregisterWith (const boost::shared_ptr< Observable > &) |
void | unregisterWithAll () |
Additional Inherited Members | |
![]() | |
Date | referenceDate_ |
std::string | familyName_ |
Region | region_ |
bool | revised_ |
bool | interpolated_ |
Frequency | frequency_ |
Period | availabilityLag_ |
Currency | currency_ |
Base class for year-on-year inflation indices.
These may be genuine indices published on, say, Bloomberg, or "fake" indices that are defined as the ratio of an index at different time points.
Implements InflationIndex.