#include <orea/engine/sensitivityrecord.hpp>
Public Member Functions | |
| SensitivityRecord () | |
| SensitivityRecord (const std::string &tradeId, bool isPar, const RiskFactorKey &key_1, const std::string &desc_1, QuantLib::Real shift_1, const RiskFactorKey &key_2, const std::string &desc_2, QuantLib::Real shift_2, const std::string ¤cy, QuantLib::Real baseNpv, QuantLib::Real delta, QuantLib::Real gamma) | |
| Full ctor to allow braced initialisation. | |
| bool | operator== (const SensitivityRecord &sr) const |
| bool | operator!= (const SensitivityRecord &sr) const |
| bool | operator< (const SensitivityRecord &sr) const |
| operator bool () const | |
| bool | isCrossGamma () const |
| True if a SensitivityRecord is a cross gamma, otherwise false. | |
Public Attributes | |
| std::string | tradeId |
| bool | isPar |
| RiskFactorKey | key_1 |
| std::string | desc_1 |
| QuantLib::Real | shift_1 |
| RiskFactorKey | key_2 |
| std::string | desc_2 |
| QuantLib::Real | shift_2 |
| std::string | currency |
| QuantLib::Real | baseNpv |
| QuantLib::Real | delta |
| QuantLib::Real | gamma |
A container for holding sensitivity records.
true for a par sensitivity, false for a zero sensitivityDefault ctor to prevent uninitialised variables Could use in class initialisation and avoid ctor but may be confusing
| bool operator== | ( | const SensitivityRecord & | sr | ) | const |
Comparison operators for SensitivityRecord
|
explicit |
This method will be used to denote the end of a stream of SensitivityRecord objects.