ZeroToParCube class. More...
#include <orea/engine/zerotoparcube.hpp>
Collaboration diagram for ZeroToParCube:Public Member Functions | |
| ZeroToParCube (const QuantLib::ext::shared_ptr< ore::analytics::SensitivityCube > &zeroCube, const QuantLib::ext::shared_ptr< ParSensitivityConverter > &parConverter, const std::set< ore::analytics::RiskFactorKey::KeyType > &typesDisabled={}, const bool continueOnError=false) | |
| Constructor. More... | |
| ZeroToParCube (const std::vector< QuantLib::ext::shared_ptr< ore::analytics::SensitivityCube > > &zeroCubes, const QuantLib::ext::shared_ptr< ParSensitivityConverter > &parConverter, const std::set< ore::analytics::RiskFactorKey::KeyType > &typesDisabled={}, const bool continueOnError=false) | |
| Another Constructor! More... | |
| const std::vector< QuantLib::ext::shared_ptr< ore::analytics::SensitivityCube > > & | zeroCubes () const |
| Inspectors. More... | |
| const QuantLib::ext::shared_ptr< ParSensitivityConverter > & | parConverter () const |
| Par converter object. More... | |
| const std::set< ore::analytics::RiskFactorKey::KeyType > & | typesDisabled () const |
| The par risk factor types that are disabled for this instance of ZeroToParCube. More... | |
| std::map< ore::analytics::RiskFactorKey, QuantLib::Real > | parDeltas (const std::string &tradeId) const |
Return the non-zero par deltas for the given tradeId. More... | |
| std::map< ore::analytics::RiskFactorKey, QuantLib::Real > | parDeltas (QuantLib::Size cubeIdx, QuantLib::Size tradeIdx) const |
| Return the non-zero par deltas for the given cube and trade index. More... | |
Private Attributes | |
| std::vector< QuantLib::ext::shared_ptr< ore::analytics::SensitivityCube > > | zeroCubes_ |
| QuantLib::ext::shared_ptr< ParSensitivityConverter > | parConverter_ |
| std::map< ore::analytics::RiskFactorKey, Size > | factorToIndex_ |
| std::set< ore::analytics::RiskFactorKey::KeyType > | typesDisabled_ |
| Set of risk factor types available for par conversion but that are disabled for this instance of ZeroToParCube. More... | |
| const bool | continueOnError_ |
ZeroToParCube class.
Takes a cube of zero sensitivities, a par sensitivity converter and can return the par deltas for a given trade ID from the cube.
Definition at line 38 of file zerotoparcube.hpp.
| ZeroToParCube | ( | const QuantLib::ext::shared_ptr< ore::analytics::SensitivityCube > & | zeroCube, |
| const QuantLib::ext::shared_ptr< ParSensitivityConverter > & | parConverter, | ||
| const std::set< ore::analytics::RiskFactorKey::KeyType > & | typesDisabled = {}, |
||
| const bool | continueOnError = false |
||
| ) |
Constructor.
| ZeroToParCube | ( | const std::vector< QuantLib::ext::shared_ptr< ore::analytics::SensitivityCube > > & | zeroCubes, |
| const QuantLib::ext::shared_ptr< ParSensitivityConverter > & | parConverter, | ||
| const std::set< ore::analytics::RiskFactorKey::KeyType > & | typesDisabled = {}, |
||
| const bool | continueOnError = false |
||
| ) |
Another Constructor!
| const std::vector< QuantLib::ext::shared_ptr< ore::analytics::SensitivityCube > > & zeroCubes | ( | ) | const |
Inspectors.
Underlying zero sensitivity cubes
Definition at line 54 of file zerotoparcube.hpp.
| const QuantLib::ext::shared_ptr< ParSensitivityConverter > & parConverter | ( | ) | const |
Par converter object.
Definition at line 56 of file zerotoparcube.hpp.
| const std::set< ore::analytics::RiskFactorKey::KeyType > & typesDisabled | ( | ) | const |
The par risk factor types that are disabled for this instance of ZeroToParCube.
Definition at line 58 of file zerotoparcube.hpp.
| map< RiskFactorKey, Real > parDeltas | ( | const std::string & | tradeId | ) | const |
Return the non-zero par deltas for the given tradeId.
Definition at line 120 of file zerotoparcube.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| map< RiskFactorKey, Real > parDeltas | ( | QuantLib::Size | cubeIdx, |
| QuantLib::Size | tradeIdx | ||
| ) | const |
Return the non-zero par deltas for the given cube and trade index.
Definition at line 55 of file zerotoparcube.cpp.
Here is the call graph for this function:
|
private |
Definition at line 69 of file zerotoparcube.hpp.
|
private |
Definition at line 70 of file zerotoparcube.hpp.
|
private |
Definition at line 71 of file zerotoparcube.hpp.
|
private |
Set of risk factor types available for par conversion but that are disabled for this instance of ZeroToParCube.
Definition at line 74 of file zerotoparcube.hpp.
|
private |
Definition at line 75 of file zerotoparcube.hpp.