#include <ored/utilities/indexnametranslator.hpp>
Inheritance diagram for IndexNameTranslator:
Collaboration diagram for IndexNameTranslator:Public Member Functions | |
| std::string | oreName (const std::string &qlName) const |
| throws if qlName is not known More... | |
| std::string | qlName (const std::string &oreName) const |
| throws if oreName is not known More... | |
| void | add (const std::string &qlName, const std::string &oreName) |
| adds a pair to the mapping More... | |
| void | clear () |
| clears the mapping More... | |
Private Attributes | |
| boost::bimap< std::string, std::string > | data_ |
| boost::shared_mutex | mutex_ |
Allows translating from QuantLib::Index::name() to the ORE name that parses to that index and vice versa.
Definition at line 39 of file indexnametranslator.hpp.
| std::string oreName | ( | const std::string & | qlName | ) | const |
throws if qlName is not known
Definition at line 27 of file indexnametranslator.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::string qlName | ( | const std::string & | oreName | ) | const |
throws if oreName is not known
Definition at line 36 of file indexnametranslator.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void add | ( | const std::string & | qlName, |
| const std::string & | oreName | ||
| ) |
adds a pair to the mapping
Definition at line 43 of file indexnametranslator.cpp.
Here is the call graph for this function:| void clear | ( | ) |
clears the mapping
Definition at line 49 of file indexnametranslator.cpp.
|
private |
Definition at line 54 of file indexnametranslator.hpp.
|
mutableprivate |
Definition at line 55 of file indexnametranslator.hpp.