formula based index class More...
#include <qle/indexes/formulabasedindex.hpp>
Public Member Functions | |
FormulaBasedIndex (const std::string &familyName, const std::vector< QuantLib::ext::shared_ptr< InterestRateIndex > > &indices, const CompiledFormula &formula, const Calendar &fixingCalendar) | |
Date | maturityDate (const Date &valueDate) const override |
Rate | forecastFixing (const Date &fixingDate) const override |
Rate | pastFixing (const Date &fixingDate) const override |
bool | allowsNativeFixings () override |
const std::vector< QuantLib::ext::shared_ptr< InterestRateIndex > > & | indices () const |
const CompiledFormula & | formula () const |
Private Attributes | |
const std::vector< QuantLib::ext::shared_ptr< InterestRateIndex > > | indices_ |
const CompiledFormula | formula_ |
formula based index class
The variables in the given formula must correspond to index vector, both w.r.t. size and position.
Warning:
Definition at line 48 of file formulabasedindex.hpp.
FormulaBasedIndex | ( | const std::string & | familyName, |
const std::vector< QuantLib::ext::shared_ptr< InterestRateIndex > > & | indices, | ||
const CompiledFormula & | formula, | ||
const Calendar & | fixingCalendar | ||
) |
Definition at line 25 of file formulabasedindex.cpp.
|
override |
Definition at line 54 of file formulabasedindex.hpp.
|
override |
Definition at line 44 of file formulabasedindex.cpp.
|
override |
Definition at line 54 of file formulabasedindex.cpp.
|
override |
Definition at line 59 of file formulabasedindex.hpp.
const std::vector< QuantLib::ext::shared_ptr< InterestRateIndex > > & indices | ( | ) | const |
Definition at line 62 of file formulabasedindex.hpp.
const CompiledFormula & formula | ( | ) | const |
Definition at line 63 of file formulabasedindex.hpp.
|
private |
Definition at line 66 of file formulabasedindex.hpp.
|
private |
Definition at line 67 of file formulabasedindex.hpp.