IndexManager Class Reference

#include <ql/indexes/indexmanager.hpp>

Inheritance diagram for IndexManager:

Inheritance graph
[legend]
List of all members.

Detailed Description

global repository for past index fixings

Note:
index names are case insensitive


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
boost::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 >