QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
#include <swapratetrigger.hpp>
Public Member Functions | |
SwapRateTrigger (const std::vector< Time > &rateTimes, std::vector< Rate > swapTriggers, const std::vector< Time > &exerciseTimes) | |
std::vector< Time > | exerciseTimes () const override |
std::vector< Time > | relevantTimes () const override |
void | reset () override |
bool | exercise (const CurveState ¤tState) const override |
void | nextStep (const CurveState ¤tState) override |
std::unique_ptr< ExerciseStrategy< CurveState > > | clone () const override |
Public Member Functions inherited from ExerciseStrategy< CurveState > | |
virtual | ~ExerciseStrategy ()=default |
virtual std::vector< Time > | exerciseTimes () const=0 |
virtual std::vector< Time > | relevantTimes () const=0 |
virtual void | reset ()=0 |
virtual bool | exercise (const CurveState ¤tState) const=0 |
virtual void | nextStep (const CurveState ¤tState)=0 |
virtual std::unique_ptr< ExerciseStrategy< CurveState > > | clone () const=0 |
Private Attributes | |
std::vector< Time > | rateTimes_ |
std::vector< Rate > | swapTriggers_ |
std::vector< Time > | exerciseTimes_ |
Size | currentIndex_ |
std::vector< Size > | rateIndex_ |
Definition at line 29 of file swapratetrigger.hpp.
SwapRateTrigger | ( | const std::vector< Time > & | rateTimes, |
std::vector< Rate > | swapTriggers, | ||
const std::vector< Time > & | exerciseTimes | ||
) |
|
overridevirtual |
Implements ExerciseStrategy< CurveState >.
Definition at line 48 of file swapratetrigger.cpp.
|
overridevirtual |
Implements ExerciseStrategy< CurveState >.
Definition at line 52 of file swapratetrigger.cpp.
|
overridevirtual |
Implements ExerciseStrategy< CurveState >.
Definition at line 56 of file swapratetrigger.cpp.
|
overridevirtual |
Implements ExerciseStrategy< CurveState >.
Definition at line 60 of file swapratetrigger.cpp.
|
overridevirtual |
Implements ExerciseStrategy< CurveState >.
Definition at line 67 of file swapratetrigger.cpp.
|
overridevirtual |
Implements ExerciseStrategy< CurveState >.
Definition at line 72 of file swapratetrigger.cpp.
|
private |
Definition at line 41 of file swapratetrigger.hpp.
|
private |
Definition at line 42 of file swapratetrigger.hpp.
|
private |
Definition at line 43 of file swapratetrigger.hpp.
|
private |
Definition at line 44 of file swapratetrigger.hpp.
|
private |
Definition at line 45 of file swapratetrigger.hpp.