22#include <ql/errors.hpp>
28 boost::shared_lock<boost::shared_mutex> lock(
mutex_);
30 if (n ==
data_.left.end())
37 boost::shared_lock<boost::shared_mutex> lock(
mutex_);
39 QL_REQUIRE(n !=
data_.right.end(),
"IndexNameTranslator: oreName '" <<
oreName <<
"' not found.");
44 boost::unique_lock<boost::shared_mutex> lock(
mutex_);
50 boost::unique_lock<boost::shared_mutex> lock(
mutex_);
boost::bimap< std::string, std::string > data_
std::string oreName(const std::string &qlName) const
throws if qlName is not known
void add(const std::string &qlName, const std::string &oreName)
adds a pair to the mapping
boost::shared_mutex mutex_
void clear()
clears the mapping
std::string qlName(const std::string &oreName) const
throws if oreName is not known
translates between QuantLib::Index::name() and ORE names
Classes and functions for log message handling.
#define TLOG(text)
Logging Macro (Level = Data)
Serializable Credit Default Swap.