26#ifndef quantlib_fixed_vs_floating_swap_hpp
27#define quantlib_fixed_vs_floating_swap_hpp
76 const std::vector<Real>&
nominals()
const;
85 const ext::shared_ptr<IborIndex>&
iborIndex()
const;
158 void reset()
override;
162 FixedVsFloatingSwap::results> {};
Arguments for simple swap calculation
std::vector< Date > floatingResetDates
std::vector< Real > floatingNominals
std::vector< Spread > floatingSpreads
std::vector< Real > fixedNominals
std::vector< Date > floatingFixingDates
std::vector< Date > fixedPayDates
std::vector< Date > fixedResetDates
void validate() const override
std::vector< Real > floatingCoupons
std::vector< Time > floatingAccrualTimes
std::vector< Real > fixedCoupons
std::vector< Date > floatingPayDates
Results from simple swap calculation
std::vector< Real > floatingNominals_
DayCounter floatingDayCount_
const DayCounter & fixedDayCount() const
const std::vector< Real > & fixedNominals() const
Schedule floatingSchedule_
BusinessDayConvention paymentConvention() const
const Schedule & fixedSchedule() const
DayCounter fixedDayCount_
const Leg & floatingLeg() const
const Schedule & floatingSchedule() const
virtual void setupFloatingArguments(arguments *args) const =0
Spread fairSpread() const
Real floatingLegBPS() const
std::vector< Real > fixedNominals_
ext::shared_ptr< IborIndex > iborIndex_
const ext::shared_ptr< IborIndex > & iborIndex() const
const std::vector< Real > & nominals() const
const std::vector< Real > & floatingNominals() const
const DayCounter & floatingDayCount() const
void setupArguments(PricingEngine::arguments *args) const override
BusinessDayConvention paymentConvention_
const Leg & fixedLeg() const
void setupExpired() const override
Real floatingLegNPV() const
void fetchResults(const PricingEngine::results *) const override
template base class for option pricing engines
template class providing a null value for a given type.
#define QL_REQUIRE(condition, message)
throw an error if the given pre-condition is not verified
BusinessDayConvention
Business Day conventions.
QL_INTEGER Integer
integer number
Real Spread
spreads on interest rates
const boost::none_t & nullopt
std::vector< ext::shared_ptr< CashFlow > > Leg
Sequence of cash-flows.
Maps optional to either the boost or std implementation.