22#include <ql/math/comparison.hpp>
28using std::setprecision;
35 return !(*
this < sr) && !(sr < *
this);
55 return !(*
this == sr);
58SensitivityRecord::operator
bool()
const {
67 <<
", " << fixed << setprecision(6) << sr.
shift_1 <<
", " << sr.
key_2 <<
", " << sr.
desc_2 <<
", "
68 << fixed << setprecision(6) << sr.
shift_2 <<
", " << sr.
currency <<
", " << fixed << setprecision(2)
69 << sr.
baseNpv <<
", " << fixed << setprecision(2) << sr.
delta <<
", " << fixed << setprecision(2)
Data types stored in the scenario class.
std::ostream & operator<<(std::ostream &out, EquityReturnType t)
Struct for holding a sensitivity record.
bool operator==(const SensitivityRecord &sr) const
bool operator!=(const SensitivityRecord &sr) const
bool operator<(const SensitivityRecord &sr) const
bool isCrossGamma() const
True if a SensitivityRecord is a cross gamma, otherwise false.