QuantLib
A free/open-source library for quantitative finance
Reference manual - version 1.20
Public Member Functions | Friends | List of all members
IndexManager Class Reference

global repository for past index fixings More...

#include <ql/indexes/indexmanager.hpp>

+ Inheritance diagram for IndexManager:

Public Member Functions

bool hasHistory (const std::string &name) const
 returns whether historical fixings were stored for the index
 
const TimeSeries< Real > & getHistory (const std::string &name) const
 returns the (possibly empty) history of the index fixings
 
void setHistory (const std::string &name, const TimeSeries< Real > &)
 stores the historical fixings of the index
 
ext::shared_ptr< Observablenotifier (const std::string &name) const
 observer notifying of changes in the index fixings
 
std::vector< std::string > histories () const
 returns all names of the indexes for which fixings were stored
 
void clearHistory (const std::string &name)
 clears the historical fixings of the index
 
void clearHistories ()
 clears all stored fixings
 

Friends

class Singleton< IndexManager >
 

Additional Inherited Members

- Static Public Member Functions inherited from Singleton< IndexManager >
static IndexManagerinstance ()
 access to the unique instance
 

Detailed Description

global repository for past index fixings

Note
index names are case insensitive