#include <ored/marketdata/inmemoryloader.hpp>
Public Member Functions | |
InMemoryLoader () | |
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 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... | |
std::set< Fixing > | loadFixings () const override |
std::set< QuantExt::Dividend > | loadDividends () const override |
Optional load dividends method. More... | |
bool | hasQuotes (const QuantLib::Date &d) const override |
check if there are quotes for a date More... | |
virtual void | add (QuantLib::Date date, const string &name, QuantLib::Real value) |
virtual void | addFixing (QuantLib::Date date, const string &name, QuantLib::Real value) |
virtual void | addDividend (const QuantExt::Dividend ÷nd) |
void | reset () |
Public Member Functions inherited from Loader | |
virtual | ~Loader () |
virtual bool | has (const std::string &name, const QuantLib::Date &d) const |
Default implementation, returns false if get throws or returns a null pointer. 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 &) |
Protected Attributes | |
std::map< QuantLib::Date, std::set< QuantLib::ext::shared_ptr< MarketDatum >, SharedPtrMarketDatumComparator > > | data_ |
std::set< Fixing > | fixings_ |
std::set< QuantExt::Dividend > | dividends_ |
Protected Attributes inherited from Loader | |
Date | actualDate_ = Date() |
Definition at line 28 of file inmemoryloader.hpp.
InMemoryLoader | ( | ) |
Definition at line 30 of file inmemoryloader.hpp.
|
overridevirtual |
get all quotes, TODO change the return value to std::set
Implements Loader.
Definition at line 38 of file inmemoryloader.cpp.
|
overridevirtual |
get quote by its unique name, throws if not existent, override in derived classes for performance
Reimplemented from Loader.
Definition at line 45 of file inmemoryloader.cpp.
|
overridevirtual |
get quotes matching a set of names, this should be overridden in derived classes for performance
Reimplemented from Loader.
Definition at line 53 of file inmemoryloader.cpp.
|
overridevirtual |
get quotes matching a wildcard, this should be overriden in derived classes for performance
Reimplemented from Loader.
Definition at line 67 of file inmemoryloader.cpp.
|
overridevirtual |
|
overridevirtual |
Optional load dividends method.
Reimplemented from Loader.
Definition at line 38 of file inmemoryloader.hpp.
|
overridevirtual |
check if there are quotes for a date
Reimplemented from Loader.
Definition at line 99 of file inmemoryloader.cpp.
|
virtual |
Reimplemented in AdjustedInMemoryLoader.
Definition at line 104 of file inmemoryloader.cpp.
|
virtual |
Reimplemented in AdjustedInMemoryLoader.
Definition at line 133 of file inmemoryloader.cpp.
|
virtual |
Definition at line 139 of file inmemoryloader.cpp.
void reset | ( | ) |
Definition at line 145 of file inmemoryloader.cpp.
|
protected |
Definition at line 54 of file inmemoryloader.hpp.
|
protected |
Definition at line 55 of file inmemoryloader.hpp.
|
protected |
Definition at line 56 of file inmemoryloader.hpp.