#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. More... | |
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. More... | |
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 sensitivityDefinition at line 38 of file sensitivityrecord.hpp.
Default ctor to prevent uninitialised variables Could use in class initialisation and avoid ctor but may be confusing
Definition at line 56 of file sensitivityrecord.hpp.
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 & | currency, | ||
QuantLib::Real | baseNpv, | ||
QuantLib::Real | delta, | ||
QuantLib::Real | gamma | ||
) |
bool operator== | ( | const SensitivityRecord & | sr | ) | const |
Comparison operators for SensitivityRecord
Definition at line 33 of file sensitivityrecord.cpp.
bool operator!= | ( | const SensitivityRecord & | sr | ) | const |
Definition at line 53 of file sensitivityrecord.cpp.
bool operator< | ( | const SensitivityRecord & | sr | ) | const |
Definition at line 38 of file sensitivityrecord.cpp.
|
explicit |
This method will be used to denote the end of a stream of SensitivityRecord objects.
Definition at line 58 of file sensitivityrecord.cpp.
bool isCrossGamma | ( | ) | const |
True if a SensitivityRecord is a cross gamma, otherwise false.
Definition at line 63 of file sensitivityrecord.cpp.
std::string tradeId |
Definition at line 40 of file sensitivityrecord.hpp.
bool isPar |
Definition at line 41 of file sensitivityrecord.hpp.
RiskFactorKey key_1 |
Definition at line 42 of file sensitivityrecord.hpp.
std::string desc_1 |
Definition at line 43 of file sensitivityrecord.hpp.
QuantLib::Real shift_1 |
Definition at line 44 of file sensitivityrecord.hpp.
RiskFactorKey key_2 |
Definition at line 45 of file sensitivityrecord.hpp.
std::string desc_2 |
Definition at line 46 of file sensitivityrecord.hpp.
QuantLib::Real shift_2 |
Definition at line 47 of file sensitivityrecord.hpp.
std::string currency |
Definition at line 48 of file sensitivityrecord.hpp.
|
mutable |
Definition at line 49 of file sensitivityrecord.hpp.
|
mutable |
Definition at line 50 of file sensitivityrecord.hpp.
|
mutable |
Definition at line 51 of file sensitivityrecord.hpp.