Collateral Balances. More...
#include <ored/portfolio/collateralbalance.hpp>
Public Member Functions | |
CollateralBalances () | |
void | reset () |
const bool | empty () |
bool | has (const std::string &nettingSetId) const |
bool | has (const NettingSetDetails &nettingSetDetails) const |
void | add (const QuantLib::ext::shared_ptr< CollateralBalance > &cb) |
const QuantLib::ext::shared_ptr< CollateralBalance > & | get (const std::string &nettingSetId) const |
const QuantLib::ext::shared_ptr< CollateralBalance > & | get (const NettingSetDetails &nettingSetDetails) const |
void | currentIM (const std::string &baseCurrency, std::map< std::string, QuantLib::Real > ¤tIM) |
void | fromXML (ore::data::XMLNode *node) override |
ore::data::XMLNode * | toXML (ore::data::XMLDocument &doc) const override |
const std::map< NettingSetDetails, QuantLib::ext::shared_ptr< CollateralBalance > > & | collateralBalances () |
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 | |
std::map< NettingSetDetails, QuantLib::ext::shared_ptr< CollateralBalance > > | collateralBalances_ |
Collateral Balances.
This class hold collateral balances
Definition at line 85 of file collateralbalance.hpp.
void reset | ( | ) |
clears the manager of all data
Definition at line 47 of file collateralbalance.cpp.
const bool empty | ( | ) |
checks if there are any collateral balance entries
Definition at line 51 of file collateralbalance.cpp.
bool has | ( | const std::string & | nettingSetId | ) | const |
checks if object named nettingSetId exists in manager
Definition at line 43 of file collateralbalance.cpp.
bool has | ( | const NettingSetDetails & | nettingSetDetails | ) | const |
checks if object with the given nettingSetDetails exists in manager
Definition at line 39 of file collateralbalance.cpp.
void add | ( | const QuantLib::ext::shared_ptr< CollateralBalance > & | cb | ) |
adds a new collateral balance to manager
Definition at line 33 of file collateralbalance.cpp.
const QuantLib::ext::shared_ptr< CollateralBalance > & get | ( | const std::string & | nettingSetId | ) | const |
extracts a collateral balance from manager
Definition at line 66 of file collateralbalance.cpp.
const QuantLib::ext::shared_ptr< CollateralBalance > & get | ( | const NettingSetDetails & | nettingSetDetails | ) | const |
Definition at line 59 of file collateralbalance.cpp.
void currentIM | ( | const std::string & | baseCurrency, |
std::map< std::string, QuantLib::Real > & | currentIM | ||
) |
gets currentIM for DIM calculation
Definition at line 71 of file collateralbalance.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 126 of file collateralbalance.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 141 of file collateralbalance.cpp.
const std::map< NettingSetDetails, QuantLib::ext::shared_ptr< CollateralBalance > > & collateralBalances | ( | ) |
Definition at line 149 of file collateralbalance.cpp.
|
private |
Definition at line 133 of file collateralbalance.hpp.