Logo
Reference manual - version ored_version
TradeStrike Class Reference

Classes

struct  StrikeYield

Public Types

enum class  Type { Price , Yield }
typedef TradeMonetary StrikePrice

Public Member Functions

 TradeStrike (Type type, const QuantLib::Real &value)
 TradeStrike (const QuantLib::Real &value, const std::string &currency)
 TradeStrike (const QuantLib::Real &value, QuantLib::Compounding compounding)
QuantLib::Real value () const
Type type () const
std::string currency ()
const QuantLib::Compounding & compounding ()
StrikePrice & strikePrice () const
StrikeYieldstrikeYield () const
void setValue (const QuantLib::Real &value)
void setCurrency (const std::string &currency)
void fromXML (XMLNode *node, const bool isRequired=true, const bool allowYieldStrike=false)
XMLNode * toXML (XMLDocument &doc) const
const bool empty () const