QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
List of all members
RangeAccrualPricer Class Reference

#include <rangeaccrual.hpp>

+ Inheritance diagram for RangeAccrualPricer:
+ Collaboration diagram for RangeAccrualPricer:

Observer interface

const RangeAccrualFloatersCouponcoupon_
 
Real startTime_
 
Real endTime_
 
Real accrualFactor_
 
std::vector< RealobservationTimeLags_
 
std::vector< RealobservationTimes_
 
std::vector< RealinitialValues_
 
Size observationsNo_
 
Real lowerTrigger_
 
Real upperTrigger_
 
Real discount_
 
Real gearing_
 
Spread spread_
 
Real spreadLegValue_
 
Rate swapletRate () const override
 
Real capletPrice (Rate effectiveCap) const override
 
Rate capletRate (Rate effectiveCap) const override
 
Real floorletPrice (Rate effectiveFloor) const override
 
Rate floorletRate (Rate effectiveFloor) const override
 
void initialize (const FloatingRateCoupon &coupon) override
 

Additional Inherited Members

- Public Types inherited from Observer
typedef set_type::iterator iterator
 
- Public Member Functions inherited from FloatingRateCouponPricer
 ~FloatingRateCouponPricer () override=default
 
virtual Real swapletPrice () const =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 ()
 

Detailed Description

Definition at line 91 of file rangeaccrual.hpp.

Member Function Documentation

◆ swapletRate()

Real swapletRate ( ) const
overridevirtual

Implements FloatingRateCouponPricer.

Definition at line 150 of file rangeaccrual.cpp.

+ Here is the call graph for this function:

◆ capletPrice()

Real capletPrice ( Rate  effectiveCap) const
overridevirtual

Implements FloatingRateCouponPricer.

Definition at line 154 of file rangeaccrual.cpp.

◆ capletRate()

Rate capletRate ( Rate  effectiveCap) const
overridevirtual

Implements FloatingRateCouponPricer.

Definition at line 158 of file rangeaccrual.cpp.

◆ floorletPrice()

Real floorletPrice ( Rate  effectiveFloor) const
overridevirtual

Implements FloatingRateCouponPricer.

Definition at line 162 of file rangeaccrual.cpp.

◆ floorletRate()

Rate floorletRate ( Rate  effectiveFloor) const
overridevirtual

Implements FloatingRateCouponPricer.

Definition at line 166 of file rangeaccrual.cpp.

◆ initialize()

void initialize ( const FloatingRateCoupon coupon)
overridevirtual

Implements FloatingRateCouponPricer.

Definition at line 111 of file rangeaccrual.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ coupon_

const RangeAccrualFloatersCoupon* coupon_
protected

Definition at line 104 of file rangeaccrual.hpp.

◆ startTime_

Real startTime_
protected

Definition at line 105 of file rangeaccrual.hpp.

◆ endTime_

Real endTime_
protected

Definition at line 106 of file rangeaccrual.hpp.

◆ accrualFactor_

Real accrualFactor_
protected

Definition at line 107 of file rangeaccrual.hpp.

◆ observationTimeLags_

std::vector<Real> observationTimeLags_
protected

Definition at line 108 of file rangeaccrual.hpp.

◆ observationTimes_

std::vector<Real> observationTimes_
protected

Definition at line 109 of file rangeaccrual.hpp.

◆ initialValues_

std::vector<Real> initialValues_
protected

Definition at line 110 of file rangeaccrual.hpp.

◆ observationsNo_

Size observationsNo_
protected

Definition at line 111 of file rangeaccrual.hpp.

◆ lowerTrigger_

Real lowerTrigger_
protected

Definition at line 112 of file rangeaccrual.hpp.

◆ upperTrigger_

Real upperTrigger_
protected

Definition at line 113 of file rangeaccrual.hpp.

◆ discount_

Real discount_
protected

Definition at line 114 of file rangeaccrual.hpp.

◆ gearing_

Real gearing_
protected

Definition at line 115 of file rangeaccrual.hpp.

◆ spread_

Spread spread_
protected

Definition at line 116 of file rangeaccrual.hpp.

◆ spreadLegValue_

Real spreadLegValue_
protected

Definition at line 117 of file rangeaccrual.hpp.