40 void calculate(
const QuantLib::ext::shared_ptr<Trade>& trade, Size tradeIndex,
41 const QuantLib::ext::shared_ptr<SimMarket>& simMarket, QuantLib::ext::shared_ptr<NPVCube>& outputCube,
42 QuantLib::ext::shared_ptr<NPVCube>& outputCubeNettingSet,
const Date& date, Size dateIndex, Size sample,
43 bool isCloseOut =
false)
override;
45 void calculateT0(
const QuantLib::ext::shared_ptr<Trade>& trade, Size tradeIndex,
46 const QuantLib::ext::shared_ptr<SimMarket>& simMarket, QuantLib::ext::shared_ptr<NPVCube>& outputCube,
47 QuantLib::ext::shared_ptr<NPVCube>& outputCubeNettingSet)
override;
49 std::vector<Real>
multiStateNpv(Size tradeIndex,
const QuantLib::ext::shared_ptr<Trade>& trade,
50 const QuantLib::ext::shared_ptr<SimMarket>& simMarket);
std::vector< Real > multiStateNpv(Size tradeIndex, const QuantLib::ext::shared_ptr< Trade > &trade, const QuantLib::ext::shared_ptr< SimMarket > &simMarket)
void calculateT0(const QuantLib::ext::shared_ptr< Trade > &trade, Size tradeIndex, const QuantLib::ext::shared_ptr< SimMarket > &simMarket, QuantLib::ext::shared_ptr< NPVCube > &outputCube, QuantLib::ext::shared_ptr< NPVCube > &outputCubeNettingSet) override
void calculate(const QuantLib::ext::shared_ptr< Trade > &trade, Size tradeIndex, const QuantLib::ext::shared_ptr< SimMarket > &simMarket, QuantLib::ext::shared_ptr< NPVCube > &outputCube, QuantLib::ext::shared_ptr< NPVCube > &outputCubeNettingSet, const Date &date, Size dateIndex, Size sample, bool isCloseOut=false) override
MultiStateNPVCalculator(const std::string &baseCcyCode, Size index, Size states)
base ccy and index to write to
The counterparty cube calculator interface.