#include <orea/engine/parsensitivitycubestream.hpp>
Inheritance diagram for ParSensitivityCubeStream:
Collaboration diagram for ParSensitivityCubeStream:Public Member Functions | |
| ParSensitivityCubeStream (const QuantLib::ext::shared_ptr< ZeroToParCube > &cube, const std::string ¤cy) | |
| ore::analytics::SensitivityRecord | next () override |
| void | reset () override |
| Resets the stream so that SensitivityRecord objects can be streamed again. More... | |
Public Member Functions inherited from SensitivityStream | |
| virtual | ~SensitivityStream () |
| Destructor. More... | |
| virtual SensitivityRecord | next ()=0 |
| Returns the next SensitivityRecord in the stream. More... | |
| virtual void | reset ()=0 |
| Resets the stream so that SensitivityRecord objects can be streamed again. More... | |
Private Member Functions | |
| void | init () |
| Shared initialisation. More... | |
Private Attributes | |
| Size | zeroCubeIdx_ |
| zero cube idx More... | |
| QuantLib::ext::shared_ptr< ZeroToParCube > | cube_ |
| Handle on the SensitivityCube. More... | |
| std::string | currency_ |
| Currency of the sensitivities in the SensitivityCube. More... | |
| std::map< std::string, QuantLib::Size >::const_iterator | tradeIdx_ |
| TradeId and index of current trade ID in the underlying cube. More... | |
| std::map< ore::analytics::RiskFactorKey, QuantLib::Real > | currentDeltas_ |
| Par deltas for current trade ID. More... | |
| std::map< ore::analytics::RiskFactorKey, QuantLib::Real >::iterator | itCurrent_ |
| Iterator to current delta. More... | |
Class for streaming SensitivityRecords from a par sensitivity cube
Definition at line 35 of file parsensitivitycubestream.hpp.
| ParSensitivityCubeStream | ( | const QuantLib::ext::shared_ptr< ZeroToParCube > & | cube, |
| const std::string & | currency | ||
| ) |
Constructor providing the sensitivity cube and currency of the sensitivities
Definition at line 32 of file parsensitivitycubestream.cpp.
Here is the call graph for this function:
|
overridevirtual |
Returns the next SensitivityRecord in the stream
Implements SensitivityStream.
Definition at line 39 of file parsensitivitycubestream.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Resets the stream so that SensitivityRecord objects can be streamed again.
Implements SensitivityStream.
Definition at line 81 of file parsensitivitycubestream.cpp.
Here is the call graph for this function:
|
private |
Shared initialisation.
Definition at line 91 of file parsensitivitycubestream.cpp.
Here is the caller graph for this function:
|
private |
zero cube idx
Definition at line 51 of file parsensitivitycubestream.hpp.
|
private |
Handle on the SensitivityCube.
Definition at line 53 of file parsensitivitycubestream.hpp.
|
private |
Currency of the sensitivities in the SensitivityCube.
Definition at line 55 of file parsensitivitycubestream.hpp.
|
private |
TradeId and index of current trade ID in the underlying cube.
Definition at line 57 of file parsensitivitycubestream.hpp.
|
private |
Par deltas for current trade ID.
Definition at line 59 of file parsensitivitycubestream.hpp.
|
private |
Iterator to current delta.
Definition at line 61 of file parsensitivitycubestream.hpp.