QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
CmsCouponPricer Class Reference

base pricer for vanilla CMS coupons More...

#include <couponpricer.hpp>

+ Inheritance diagram for CmsCouponPricer:
+ Collaboration diagram for CmsCouponPricer:

Public Member Functions

 CmsCouponPricer (Handle< SwaptionVolatilityStructure > v=Handle< SwaptionVolatilityStructure >())
 
Handle< SwaptionVolatilityStructureswaptionVolatility () const
 
void setSwaptionVolatility (const Handle< SwaptionVolatilityStructure > &v=Handle< SwaptionVolatilityStructure >())
 
- Public Member Functions inherited from FloatingRateCouponPricer
 ~FloatingRateCouponPricer () override=default
 
virtual Real swapletPrice () const =0
 
virtual Rate swapletRate () const =0
 
virtual Real capletPrice (Rate effectiveCap) const =0
 
virtual Rate capletRate (Rate effectiveCap) const =0
 
virtual Real floorletPrice (Rate effectiveFloor) const =0
 
virtual Rate floorletRate (Rate effectiveFloor) const =0
 
virtual void initialize (const FloatingRateCoupon &coupon)=0
 
void update () override
 
- Public Member Functions inherited from Observer
 Observer ()=default
 
 Observer (const Observer &)
 
Observeroperator= (const Observer &)
 
virtual ~Observer ()
 
std::pair< iterator, boolregisterWith (const ext::shared_ptr< Observable > &)
 
void registerWithObservables (const ext::shared_ptr< Observer > &)
 
Size unregisterWith (const ext::shared_ptr< Observable > &)
 
void unregisterWithAll ()
 
virtual void update ()=0
 
virtual void deepUpdate ()
 
- Public Member Functions inherited from Observable
 Observable ()
 
 Observable (const Observable &)
 
Observableoperator= (const Observable &)
 
 Observable (Observable &&)=delete
 
Observableoperator= (Observable &&)=delete
 
virtual ~Observable ()=default
 
void notifyObservers ()
 

Private Attributes

Handle< SwaptionVolatilityStructureswaptionVol_
 

Additional Inherited Members

- Public Types inherited from Observer
typedef set_type::iterator iterator
 

Detailed Description

base pricer for vanilla CMS coupons

Definition at line 149 of file couponpricer.hpp.

Constructor & Destructor Documentation

◆ CmsCouponPricer()

Definition at line 151 of file couponpricer.hpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ swaptionVolatility()

Handle< SwaptionVolatilityStructure > swaptionVolatility ( ) const

Definition at line 157 of file couponpricer.hpp.

+ Here is the caller graph for this function:

◆ setSwaptionVolatility()

void setSwaptionVolatility ( const Handle< SwaptionVolatilityStructure > &  v = Handle<SwaptionVolatilityStructure>())

Definition at line 160 of file couponpricer.hpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ swaptionVol_

Handle<SwaptionVolatilityStructure> swaptionVol_
private

Definition at line 169 of file couponpricer.hpp.