40 MPORCalculator(
const QuantLib::ext::shared_ptr<NPVCalculator>& npvCalc, Size defaultIndex = 0, Size closeOutIndex = 1)
43 void calculate(
const QuantLib::ext::shared_ptr<Trade>& trade, Size tradeIndex,
44 const QuantLib::ext::shared_ptr<SimMarket>& simMarket, QuantLib::ext::shared_ptr<NPVCube>& outputCube,
45 QuantLib::ext::shared_ptr<NPVCube>& outputCubeNettingSet,
const Date& date, Size dateIndex, Size sample,
46 bool isCloseOut =
false)
override;
48 void calculateT0(
const QuantLib::ext::shared_ptr<Trade>& trade, Size tradeIndex,
49 const QuantLib::ext::shared_ptr<SimMarket>& simMarket, QuantLib::ext::shared_ptr<NPVCube>& outputCube,
50 QuantLib::ext::shared_ptr<NPVCube>& outputCubeNettingSet)
override;
52 void init(
const QuantLib::ext::shared_ptr<Portfolio>& portfolio,
const QuantLib::ext::shared_ptr<SimMarket>& simMarket)
override;
56 QuantLib::ext::shared_ptr<NPVCalculator>
npvCalc_;
QuantLib::ext::shared_ptr< NPVCalculator > npvCalc_
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 init(const QuantLib::ext::shared_ptr< Portfolio > &portfolio, const QuantLib::ext::shared_ptr< SimMarket > &simMarket) override
void initScenario() 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
MPORCalculator(const QuantLib::ext::shared_ptr< NPVCalculator > &npvCalc, Size defaultIndex=0, Size closeOutIndex=1)
base ccy and index to write to
ValuationCalculator interface.
The counterparty cube calculator interface.