Repository for currency dependent market conventions. More...
#include <ored/configuration/conventions.hpp>
Inheritance diagram for Conventions:
Collaboration diagram for Conventions:Public Member Functions | |
| Conventions () | |
| Default constructor. More... | |
| QuantLib::ext::shared_ptr< Convention > | get (const string &id) const |
| std::pair< bool, QuantLib::ext::shared_ptr< Convention > > | get (const std::string &id, const Convention::Type &type) const |
| std::set< QuantLib::ext::shared_ptr< Convention > > | get (const Convention::Type &type) const |
| QuantLib::ext::shared_ptr< Convention > | getFxConvention (const string &ccy1, const string &ccy2) const |
| bool | has (const std::string &id) const |
Checks if we have a convention with the given id. More... | |
| bool | has (const std::string &id, const Convention::Type &type) const |
Checks if we have a convention with the given id and type. More... | |
| void | clear () const |
| void | add (const QuantLib::ext::shared_ptr< Convention > &convention) const |
Public Member Functions inherited from XMLSerializable | |
| virtual | ~XMLSerializable () |
| virtual void | fromXML (XMLNode *node)=0 |
| virtual XMLNode * | toXML (XMLDocument &doc) const =0 |
| void | fromFile (const std::string &filename) |
| void | toFile (const std::string &filename) const |
| void | fromXMLString (const std::string &xml) |
| Parse from XML string. More... | |
| std::string | toXMLString () const |
| Parse from XML string. More... | |
Serialisation | |
| map< string, QuantLib::ext::shared_ptr< Convention > > | data_ |
| map< string, std::pair< string, string > > | unparsed_ |
| std::set< string > | used_ |
| boost::shared_mutex | mutex_ |
| virtual void | fromXML (XMLNode *node) override |
| virtual XMLNode * | toXML (XMLDocument &doc) const override |
Repository for currency dependent market conventions.
Definition at line 113 of file conventions.hpp.
| Conventions | ( | ) |
| QuantLib::ext::shared_ptr< Convention > get | ( | const string & | id | ) | const |
Returns the convention if found and throws if not
Definition at line 2585 of file conventions.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| pair< bool, QuantLib::ext::shared_ptr< Convention > > get | ( | const std::string & | id, |
| const Convention::Type & | type | ||
| ) | const |
Get a convention with the given id and type. If no convention of the given type with the given id is found, the first element of the returned pair is false and the second element is a nullptr. If a convention is found, the first element of the returned pair is true and the second element holds the convention.
Definition at line 2691 of file conventions.cpp.
Here is the call graph for this function:| std::set< QuantLib::ext::shared_ptr< Convention > > get | ( | const Convention::Type & | type | ) | const |
Get all conventions of a given type
Definition at line 2703 of file conventions.cpp.
Here is the call graph for this function:| QuantLib::ext::shared_ptr< Convention > getFxConvention | ( | const string & | ccy1, |
| const string & | ccy2 | ||
| ) | const |
Find a convention for an FX pair
Definition at line 2675 of file conventions.cpp.
| bool has | ( | const std::string & | id | ) | const |
Checks if we have a convention with the given id.
Definition at line 2726 of file conventions.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool has | ( | const std::string & | id, |
| const Convention::Type & | type | ||
| ) | const |
Checks if we have a convention with the given id and type.
Definition at line 2737 of file conventions.cpp.
Here is the call graph for this function:| void clear | ( | ) | const |
Clear all conventions
Definition at line 2558 of file conventions.cpp.
| void add | ( | const QuantLib::ext::shared_ptr< Convention > & | convention | ) | const |
Add a convention. This will overwrite an existing convention with the same id
Definition at line 2741 of file conventions.cpp.
Here is the caller graph for this function:
|
overridevirtual |
Implements XMLSerializable.
Definition at line 2493 of file conventions.cpp.
Here is the call graph for this function:
|
overridevirtual |
Implements XMLSerializable.
Definition at line 2545 of file conventions.cpp.
Here is the call graph for this function:
|
mutableprivate |
Definition at line 154 of file conventions.hpp.
|
mutableprivate |
Definition at line 155 of file conventions.hpp.
|
mutableprivate |
Definition at line 156 of file conventions.hpp.
|
mutableprivate |
Definition at line 157 of file conventions.hpp.