31#include <ql/shared_ptr.hpp>
50 const QuantLib::ext::shared_ptr<Portfolio>&
portfolio,
52 const QuantLib::ext::shared_ptr<NPVCube>& cube,
56 const QuantLib::ext::shared_ptr<Market>&
market,
70 const bool flipViewXVA
116 vector<Real>&
ee_b(
const string& tid) {
return ee_b_[tid]; }
118 vector<Real>&
pfe(
const string& tid) {
return pfe_[tid]; }
124 const QuantLib::ext::shared_ptr<NPVCube>
cube_;
126 const QuantLib::ext::shared_ptr<Market>
market_;
147 map<string, std::vector<Real>>
ee_b_;
149 map<string, std::vector<Real>>
pfe_;
XVA Calculator base class.
map< string, std::vector< Real > > pfe_
const bool exerciseNextBreak_
const QuantLib::ext::shared_ptr< Portfolio > portfolio_
map< string, vector< vector< Real > > > nettingSetDefaultValue_
const QuantLib::ext::shared_ptr< NPVCube > & exposureCube()
map< string, vector< vector< Real > > > nettingSetMporPositiveFlow_
vector< string > nettingSetIds()
const QuantLib::ext::shared_ptr< NPVCube > cube_
vector< Real > epe(const string &tid)
const map< string, vector< vector< Real > > > & nettingSetDefaultValue()
vector< Real > getMeanExposure(const string &tid, ExposureIndex index)
QuantLib::ext::shared_ptr< Market > market()
const string configuration_
map< string, Real > nettingSetValueToday_
map< string, Real > eepe_b_
map< string, Real > epe_b_
QuantLib::ext::shared_ptr< NPVCube > exposureCube_
const map< string, vector< vector< Real > > > & nettingSetCloseOutValue()
map< string, Date > nettingSetMaturity_
map< string, Real > nettingSetValueToday()
QuantLib::ext::shared_ptr< CubeInterpretation > cubeInterpretation()
virtual ~ExposureCalculator()
virtual void build()
Compute exposures along all paths and fill result structures.
const Size EXPOSURE_CUBE_DEPTH
bool isRegularCubeStorage_
const string baseCurrency_
vector< Real > & pfe(const string &tid)
map< string, vector< vector< Real > > > nettingSetMporNegativeFlow_
vector< Real > & eee_b(const string &tid)
map< string, std::vector< Real > > eee_b_
map< string, Date > nettingSetMaturity()
Real & eepe_b(const string &tid)
const map< string, vector< vector< Real > > > & nettingSetMporPositiveFlow()
Real & epe_b(const string &tid)
const CollateralExposureHelper::CalculationType calcType_
const map< string, vector< vector< Real > > > & nettingSetMporNegativeFlow()
map< string, vector< vector< Real > > > nettingSetCloseOutValue_
CollateralExposureHelper::CalculationType calcType()
QuantLib::ext::shared_ptr< Portfolio > portfolio()
const QuantLib::ext::shared_ptr< Market > market_
vector< Real > allocatedEne(const string &tid)
map< string, std::vector< Real > > ee_b_
vector< Real > & ee_b(const string &tid)
vector< string > nettingSetIds_
QuantLib::ext::shared_ptr< NPVCube > npvCube()
vector< Real > allocatedEpe(const string &tid)
const QuantLib::ext::shared_ptr< CubeInterpretation > cubeInterpretation_
vector< Real > ene(const string &tid)
bool isRegularCubeStorage()
Collateral Exposure Helper Functions (stored in base currency)
class describing the layout of an npv cube and aggregation scenario data