global repository for past dividends More...
#include <qle/indexes/dividendmanager.hpp>
Inheritance diagram for DividendManager:
Collaboration diagram for DividendManager:Public Member Functions | |
| bool | hasHistory (const std::string &name) const |
| returns whether historical fixings were stored for the index More... | |
| const std::set< Dividend > & | getHistory (const std::string &name) |
| returns the (possibly empty) history of the index fixings More... | |
| void | setHistory (const std::string &name, const std::set< Dividend > &) |
| stores the historical fixings of the index More... | |
| QuantLib::ext::shared_ptr< QuantLib::Observable > | notifier (const std::string &name) |
| observer notifying of changes in the index fixings More... | |
| void | clearHistory (const std::string &name) |
| void | clearHistories () |
Private Types | |
| typedef std::map< std::string, QuantLib::ObservableValue< std::set< Dividend > > > | history_map |
Private Member Functions | |
| DividendManager ()=default | |
Private Attributes | |
| history_map | data_ |
Friends | |
| class | QuantLib::Singleton< DividendManager > |
global repository for past dividends
Definition at line 62 of file dividendmanager.hpp.
|
private |
Definition at line 81 of file dividendmanager.hpp.
|
privatedefault |
| bool hasHistory | ( | const std::string & | name | ) | const |
returns whether historical fixings were stored for the index
Definition at line 59 of file dividendmanager.cpp.
| const set< Dividend > & getHistory | ( | const std::string & | name | ) |
returns the (possibly empty) history of the index fixings
Definition at line 61 of file dividendmanager.cpp.
| void setHistory | ( | const std::string & | name, |
| const std::set< Dividend > & | history | ||
| ) |
stores the historical fixings of the index
Definition at line 65 of file dividendmanager.cpp.
| QuantLib::ext::shared_ptr< Observable > notifier | ( | const std::string & | name | ) |
observer notifying of changes in the index fixings
Definition at line 69 of file dividendmanager.cpp.
| void clearHistory | ( | const std::string & | name | ) |
Definition at line 71 of file dividendmanager.cpp.
| void clearHistories | ( | ) |
Definition at line 73 of file dividendmanager.cpp.
|
friend |
Definition at line 46 of file dividendmanager.hpp.
|
private |
Definition at line 82 of file dividendmanager.hpp.