26#include <ql/patterns/singleton.hpp>
28#include <boost/bimap.hpp>
29#include <boost/thread/shared_mutex.hpp>
30#include <boost/thread/lock_types.hpp>
39class IndexNameTranslator :
public QuantLib::Singleton<IndexNameTranslator, std::integral_constant<bool, true>> {
54 boost::bimap<std::string, std::string>
data_;
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
Serializable Credit Default Swap.