Singleton to hold conventions. More...
#include <ored/configuration/conventions.hpp>
Inheritance diagram for InstrumentConventions:
Collaboration diagram for InstrumentConventions:Public Member Functions | |
| const QuantLib::ext::shared_ptr< ore::data::Conventions > & | conventions (QuantLib::Date d=QuantLib::Date()) const |
| void | setConventions (const QuantLib::ext::shared_ptr< ore::data::Conventions > &conventions, QuantLib::Date d=QuantLib::Date()) |
| void | clear () |
Private Member Functions | |
| InstrumentConventions () | |
Private Attributes | |
| std::map< QuantLib::Date, QuantLib::ext::shared_ptr< ore::data::Conventions > > | conventions_ |
| boost::shared_mutex | mutex_ |
| std::size_t | numberOfEmittedWarnings_ = 0 |
Friends | |
| class | QuantLib::Singleton< InstrumentConventions, std::integral_constant< bool, true > > |
Singleton to hold conventions.
Definition at line 162 of file conventions.hpp.
|
private |
Definition at line 166 of file conventions.hpp.
| const QuantLib::ext::shared_ptr< ore::data::Conventions > & conventions | ( | QuantLib::Date | d = QuantLib::Date() | ) | const |
Definition at line 72 of file conventions.cpp.
Here is the caller graph for this function:| void setConventions | ( | const QuantLib::ext::shared_ptr< ore::data::Conventions > & | conventions, |
| QuantLib::Date | d = QuantLib::Date() |
||
| ) |
Definition at line 92 of file conventions.cpp.
Here is the call graph for this function:| void clear | ( | ) |
Definition at line 176 of file conventions.hpp.
|
friend |
Definition at line 157 of file conventions.hpp.
|
mutableprivate |
Definition at line 168 of file conventions.hpp.
|
mutableprivate |
Definition at line 169 of file conventions.hpp.
|
mutableprivate |
Definition at line 170 of file conventions.hpp.