45 virtual void build(
const QuantLib::ext::shared_ptr<EngineFactory>&)
override;
51 const vector<double>&
caps()
const {
return caps_; }
63 const std::map<std::string, boost::any>&
additionalData()
const override;
Serializable cap, floor, collar.
const vector< double > & floors() const
CapFloor(const Envelope &env, const string &longShort, const LegData &leg, const vector< double > &caps, const vector< double > &floors, const PremiumData &premiumData={})
const string & longShort() const
Inspectors.
const LegData & leg() const
virtual void fromXML(XMLNode *node) override
virtual XMLNode * toXML(XMLDocument &doc) const override
const vector< double > & caps() const
bool hasCashflows() const override
virtual void build(const QuantLib::ext::shared_ptr< EngineFactory > &) override
const std::map< std::string, boost::any > & additionalData() const override
returns all additional data returned by the trade once built
Serializable object holding generic trade data, reporting dimensions.
Serializable object holding leg data.
Serializable object holding premium data.
Trade()
Default constructor.
Small XML Document wrapper class.
leg data model and serialization
Serializable Credit Default Swap.
base trade data model and serialization