30#include <ql/types.hpp>
43 typedef std::tuple<ProductClass, RiskClass, MarginType, std::string>
Key;
45 SimmResults(
const std::string& resultCcy =
"",
const std::string& calcCcy =
"")
63 void convert(
const QuantLib::ext::shared_ptr<ore::data::Market>& market,
const std::string& currency);
64 void convert(QuantLib::Real fxSpot,
const std::string& currency);
92 const std::map<Key, QuantLib::Real>&
data()
const {
return data_; }
93 std::map<Key, QuantLib::Real>&
data() {
return data_; }
102 std::map<Key, QuantLib::Real>
data_;
const std::map< Key, QuantLib::Real > & data() const
Return the map containing the results.
std::map< Key, QuantLib::Real > & data()
SimmConfiguration::RiskClass RiskClass
std::string & calculationCurrency()
SimmConfiguration::MarginType MarginType
CrifRecord::ProductClass ProductClass
void convert(QuantLib::Real fxSpot, const std::string ¤cy)
bool empty() const
Return true if the container is empty, otherwise false.
void add(const CrifRecord::ProductClass &pc, const SimmConfiguration::RiskClass &rc, const SimmConfiguration::MarginType &mt, const std::string &b, QuantLib::Real im, const std::string &resultCurrency, const std::string &calculationCurrency, const bool overwrite)
std::tuple< ProductClass, RiskClass, MarginType, std::string > Key
bool has(const CrifRecord::ProductClass &pc, const SimmConfiguration::RiskClass &rc, const SimmConfiguration::MarginType &mt, const std::string b) const
const std::string & resultCurrency() const
const std::string & calculationCurrency() const
void convert(const QuantLib::ext::shared_ptr< ore::data::Market > &market, const std::string ¤cy)
Convert SIMM amounts to a different currency.
SimmResults(const std::string &resultCcy="", const std::string &calcCcy="")
QuantLib::Real get(const CrifRecord::ProductClass &pc, const SimmConfiguration::RiskClass &rc, const SimmConfiguration::MarginType &mt, const std::string b) const
void clear()
Clear the results from the container.
std::string & resultCurrency()
std::map< Key, QuantLib::Real > data_
std::ostream & operator<<(std::ostream &out, EquityReturnType t)
SIMM configuration interface.