#include <ored/marketdata/compositeloader.hpp>
Public Member Functions | |
CompositeLoader (const QuantLib::ext::shared_ptr< Loader > &a, const QuantLib::ext::shared_ptr< Loader > &b) | |
std::vector< QuantLib::ext::shared_ptr< MarketDatum > > | loadQuotes (const QuantLib::Date &d) const override |
get all quotes, TODO change the return value to std::set More... | |
QuantLib::ext::shared_ptr< MarketDatum > | get (const std::string &name, const QuantLib::Date &d) const override |
get quote by its unique name, throws if not existent, override in derived classes for performance More... | |
std::set< QuantLib::ext::shared_ptr< MarketDatum > > | get (const std::set< std::string > &names, const QuantLib::Date &asof) const override |
get quotes matching a set of names, this should be overridden in derived classes for performance More... | |
std::set< QuantLib::ext::shared_ptr< MarketDatum > > | get (const Wildcard &wildcard, const QuantLib::Date &asof) const override |
get quotes matching a wildcard, this should be overriden in derived classes for performance More... | |
bool | has (const std::string &name, const QuantLib::Date &d) const override |
Default implementation, returns false if get throws or returns a null pointer. More... | |
std::set< Fixing > | loadFixings () const override |
std::set< QuantExt::Dividend > | loadDividends () const override |
Optional load dividends method. More... | |
Public Member Functions inherited from Loader | |
virtual | ~Loader () |
virtual bool | hasQuotes (const QuantLib::Date &d) const |
check if there are quotes for a date More... | |
virtual QuantLib::ext::shared_ptr< MarketDatum > | get (const std::pair< std::string, bool > &name, const QuantLib::Date &d) const |
virtual bool | hasFixing (const string &name, const QuantLib::Date &d) const |
virtual Fixing | getFixing (const string &name, const QuantLib::Date &d) const |
Default implementation for getFixing. More... | |
void | setActualDate (const QuantLib::Date &d) |
const Date & | actualDate () const |
std::pair< bool, string > | checkFxDuplicate (const ext::shared_ptr< MarketDatum >, const QuantLib::Date &) |
Private Attributes | |
const QuantLib::ext::shared_ptr< Loader > | a_ |
const QuantLib::ext::shared_ptr< Loader > | b_ |
Additional Inherited Members | |
Protected Attributes inherited from Loader | |
Date | actualDate_ = Date() |
Definition at line 32 of file compositeloader.hpp.
CompositeLoader | ( | const QuantLib::ext::shared_ptr< Loader > & | a, |
const QuantLib::ext::shared_ptr< Loader > & | b | ||
) |
Definition at line 34 of file compositeloader.hpp.
|
overridevirtual |
get all quotes, TODO change the return value to std::set
Implements Loader.
Definition at line 38 of file compositeloader.hpp.
|
overridevirtual |
get quote by its unique name, throws if not existent, override in derived classes for performance
Reimplemented from Loader.
Definition at line 51 of file compositeloader.hpp.
|
overridevirtual |
get quotes matching a set of names, this should be overridden in derived classes for performance
Reimplemented from Loader.
Definition at line 59 of file compositeloader.hpp.
|
overridevirtual |
get quotes matching a wildcard, this should be overriden in derived classes for performance
Reimplemented from Loader.
Definition at line 73 of file compositeloader.hpp.
|
overridevirtual |
|
overridevirtual |
Implements Loader.
Definition at line 90 of file compositeloader.hpp.
|
overridevirtual |
Optional load dividends method.
Reimplemented from Loader.
Definition at line 103 of file compositeloader.hpp.
|
private |
Definition at line 117 of file compositeloader.hpp.
|
private |
Definition at line 117 of file compositeloader.hpp.