Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
OvernightIndexWithFixingOverride Class Reference

#include <qle/indexes/iborindexfixingoverride.hpp>

+ Inheritance diagram for OvernightIndexWithFixingOverride:
+ Collaboration diagram for OvernightIndexWithFixingOverride:

Public Member Functions

 OvernightIndexWithFixingOverride (const QuantLib::ext::shared_ptr< QuantLib::OvernightIndex > &index, const std::map< QuantLib::Date, double > &fixingOverrides)
 
 OvernightIndexWithFixingOverride (const std::string &familyName, QuantLib::Natural settlementDays, const QuantLib::Currency &currency, const QuantLib::Calendar &fixingCalendar, const QuantLib::DayCounter &dayCounter, const QuantLib::Handle< QuantLib::YieldTermStructure > &h, const std::map< QuantLib::Date, double > &fixingOverrides)
 
QuantLib::ext::shared_ptr< QuantLib::IborIndex > clone (const QuantLib::Handle< QuantLib::YieldTermStructure > &forwarding) const override
 

Protected Member Functions

QuantLib::Rate pastFixing (const QuantLib::Date &fixingDate) const override
 

Private Attributes

std::map< QuantLib::Date, double > fixingOverrides_
 

Detailed Description

Definition at line 72 of file iborindexfixingoverride.hpp.

Constructor & Destructor Documentation

◆ OvernightIndexWithFixingOverride() [1/2]

OvernightIndexWithFixingOverride ( const QuantLib::ext::shared_ptr< QuantLib::OvernightIndex > &  index,
const std::map< QuantLib::Date, double > &  fixingOverrides 
)

Definition at line 74 of file iborindexfixingoverride.hpp.

76 : OvernightIndexWithFixingOverride(index->familyName(), index->fixingDays(), index->currency(),
77 index->fixingCalendar(), index->dayCounter(),
78 index->forwardingTermStructure(), fixingOverrides) {}
OvernightIndexWithFixingOverride(const QuantLib::ext::shared_ptr< QuantLib::OvernightIndex > &index, const std::map< QuantLib::Date, double > &fixingOverrides)

◆ OvernightIndexWithFixingOverride() [2/2]

OvernightIndexWithFixingOverride ( const std::string &  familyName,
QuantLib::Natural  settlementDays,
const QuantLib::Currency &  currency,
const QuantLib::Calendar &  fixingCalendar,
const QuantLib::DayCounter &  dayCounter,
const QuantLib::Handle< QuantLib::YieldTermStructure > &  h,
const std::map< QuantLib::Date, double > &  fixingOverrides 
)

Definition at line 80 of file iborindexfixingoverride.hpp.

85 : QuantLib::OvernightIndex(familyName, settlementDays, currency, fixingCalendar, dayCounter, h),
86 fixingOverrides_(fixingOverrides) {}
std::map< QuantLib::Date, double > fixingOverrides_

Member Function Documentation

◆ clone()

QuantLib::ext::shared_ptr< QuantLib::IborIndex > clone ( const QuantLib::Handle< QuantLib::YieldTermStructure > &  forwarding) const
override

Definition at line 89 of file iborindexfixingoverride.hpp.

89 {
90 return ext::make_shared<OvernightIndexWithFixingOverride>(
91 familyName(), fixingDays(), currency(), fixingCalendar(), dayCounter(), forwarding, fixingOverrides_);
92 }

◆ pastFixing()

QuantLib::Rate pastFixing ( const QuantLib::Date &  fixingDate) const
overrideprotected

Definition at line 95 of file iborindexfixingoverride.hpp.

95 {
96 auto histFixing = fixingOverrides_.find(fixingDate);
97 if (histFixing != fixingOverrides_.end()) {
98 return histFixing->second;
99 } else {
100 return QuantLib::IborIndex::pastFixing(fixingDate);
101 }
102 }

Member Data Documentation

◆ fixingOverrides_

std::map<QuantLib::Date, double> fixingOverrides_
private

Definition at line 105 of file iborindexfixingoverride.hpp.