Skip to content

Commit

Permalink
QPR-12849 hide new methods
Browse files Browse the repository at this point in the history
  • Loading branch information
pcaspers committed Oct 6, 2024
1 parent 6957b0a commit 0e52676
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions ql/indexes/indexmanager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,7 @@ namespace QuantLib {

private:
IndexManager() = default;

public:
//! returns whether historical fixings were stored for the index
bool hasHistory(const std::string& name) const;
//! returns the (possibly empty) history of the index fixings
const TimeSeries<Real>& getHistory(const std::string& name) const;
//! stores the historical fixings of the index
void setHistory(const std::string& name, TimeSeries<Real> history);
friend class Index;
//! add a fixing
void addFixing(const std::string& name,
const Date& fixingDate,
Expand Down Expand Up @@ -97,6 +90,14 @@ namespace QuantLib {
<< " while " << h[duplicatedDate]
<< " value is already present");
}

public:
//! returns whether historical fixings were stored for the index
bool hasHistory(const std::string& name) const;
//! returns the (possibly empty) history of the index fixings
const TimeSeries<Real>& getHistory(const std::string& name) const;
//! stores the historical fixings of the index
void setHistory(const std::string& name, TimeSeries<Real> history);
//! observer notifying of changes in the index fixings_
ext::shared_ptr<Observable> notifier(const std::string& name) const;
//! returns all names of the indexes for which fixings were stored
Expand Down

0 comments on commit 0e52676

Please sign in to comment.