Netting Set Manager. More...
#include <ored/portfolio/nettingsetmanager.hpp>
Public Member Functions | |
NettingSetManager () | |
void | reset () |
const bool | empty () const |
const bool | calculateIMAmount () const |
const std::set< NettingSetDetails > | calculateIMNettingSets () const |
bool | has (const string &id) const |
bool | has (const NettingSetDetails &nettingSetDetails) const |
void | add (const QuantLib::ext::shared_ptr< NettingSetDefinition > &nettingSet) |
QuantLib::ext::shared_ptr< NettingSetDefinition > | get (const string &id) const |
QuantLib::ext::shared_ptr< NettingSetDefinition > | get (const NettingSetDetails &nettingSetDetails) const |
vector< NettingSetDetails > | uniqueKeys () const |
void | fromXML (XMLNode *node) override |
XMLNode * | toXML (XMLDocument &doc) const override |
const std::map< NettingSetDetails, const QuantLib::ext::shared_ptr< NettingSetDefinition > > & | nettingSetDefinitions () |
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... | |
Private Attributes | |
map< NettingSetDetails, const QuantLib::ext::shared_ptr< NettingSetDefinition > > | data_ |
vector< NettingSetDetails > | uniqueKeys_ |
Netting Set Manager.
This class is a manager to store netting set definitions
Definition at line 42 of file nettingsetmanager.hpp.
void reset | ( | ) |
clears the manager of all data
Definition at line 49 of file nettingsetmanager.cpp.
const bool empty | ( | ) | const |
checks if the manager is empty
Definition at line 54 of file nettingsetmanager.cpp.
const bool calculateIMAmount | ( | ) | const |
checks if at least one of the netting set definitions has calculateIMAmount = true
Definition at line 58 of file nettingsetmanager.cpp.
const set< NettingSetDetails > calculateIMNettingSets | ( | ) | const |
returns the list of netting sets for which SIMM will be calculated as IM
Definition at line 66 of file nettingsetmanager.cpp.
bool has | ( | const string & | id | ) | const |
checks if object named id exists in manager
Definition at line 45 of file nettingsetmanager.cpp.
bool has | ( | const NettingSetDetails & | nettingSetDetails | ) | const |
checks if object with the given nettingSetDetails exists in manager
Definition at line 41 of file nettingsetmanager.cpp.
void add | ( | const QuantLib::ext::shared_ptr< NettingSetDefinition > & | nettingSet | ) |
adds a new NettingSetDefinition object to manager
Definition at line 29 of file nettingsetmanager.cpp.
QuantLib::ext::shared_ptr< NettingSetDefinition > get | ( | const string & | id | ) | const |
extracts a pointer to a NettingSetDefinition from manager
Definition at line 83 of file nettingsetmanager.cpp.
QuantLib::ext::shared_ptr< NettingSetDefinition > get | ( | const NettingSetDetails & | nettingSetDetails | ) | const |
Definition at line 76 of file nettingsetmanager.cpp.
vector< NettingSetDetails > uniqueKeys | ( | ) | const |
vector containing the ids of all objects stored in manager
Definition at line 93 of file nettingsetmanager.hpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 92 of file nettingsetmanager.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 108 of file nettingsetmanager.cpp.
const std::map< NettingSetDetails, const QuantLib::ext::shared_ptr< NettingSetDefinition > > & nettingSetDefinitions | ( | ) |
Definition at line 97 of file nettingsetmanager.hpp.
|
private |
Definition at line 100 of file nettingsetmanager.hpp.
|
private |
Definition at line 101 of file nettingsetmanager.hpp.