26#include <ql/time/date.hpp>
32#include <boost/serialization/serialization.hpp>
33#include <ql/shared_ptr.hpp>
46 QuantLib::Date
date = QuantLib::Date();
48 std::string
name = string();
50 QuantLib::Real
fixing = QuantLib::Null<QuantLib::Real>();
54 Fixing(
const QuantLib::Date& d,
const std::string& s,
const QuantLib::Real f) :
date(d),
name(s),
fixing(f) {}
55 bool empty() {
return name.empty() &&
date == QuantLib::Date() &&
fixing == QuantLib::Null<QuantLib::Real>(); }
60 template <
class Archive>
void serialize(Archive& ar,
const unsigned int version) {
Currency and instrument specific conventions/defaults.
Market data representation.
bool operator<(const Dividend &d1, const Dividend &d2)
void applyFixings(const set< Fixing > &fixings)
Utility to write a vector of fixings in the QuantLib index manager's fixing history.
Serializable Credit Default Swap.
support for QuantLib::Date serialization
QuantLib::Real fixing
Fixing amount.
void serialize(Archive &ar, const unsigned int version)
Fixing(const QuantLib::Date &d, const std::string &s, const QuantLib::Real f)
std::string name
Index name.
friend class boost::serialization::access
Serialization.
QuantLib::Date date
Fixing date.