29 return data_[name].value();
33 data_[name] = std::move(history);
41 std::vector<std::string> temp;
42 temp.reserve(
data_.size());
43 for (
const auto& i :
data_)
44 temp.push_back(i.first);
53 auto const& indexIter =
data_.find(name);
54 return (indexIter !=
data_.end()) &&
55 ((*indexIter).second.value()[fixingDate] !=
Null<Real>());
const TimeSeries< Real > & getHistory(const std::string &name) const
returns the (possibly empty) history of the index fixings
bool hasHistoricalFixing(const std::string &name, const Date &fixingDate) const
returns whether a specific historical fixing was stored for the index and date
void setHistory(const std::string &name, TimeSeries< Real > history)
stores the historical fixings of the index
void clearHistories()
clears all stored fixings
std::map< std::string, ObservableValue< TimeSeries< Real > >, CaseInsensitiveCompare > data_
ext::shared_ptr< Observable > notifier(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
bool hasHistory(const std::string &name) const
returns whether historical fixings were stored for the index
template class providing a null value for a given type.
Container for historical data.
global repository for past index fixings