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
NothingExerciseValue Class Reference

#include <nothingexercisevalue.hpp>

+ Inheritance diagram for NothingExerciseValue:
+ Collaboration diagram for NothingExerciseValue:

Public Member Functions

 NothingExerciseValue (const std::vector< Time > &rateTimes, std::valarray< bool > isExerciseTime=std::valarray< bool >())
 
Size numberOfExercises () const override
 
const EvolutionDescriptionevolution () const override
 
std::vector< TimepossibleCashFlowTimes () const override
 
void nextStep (const CurveState &) override
 
void reset () override
 
std::valarray< boolisExerciseTime () const override
 
MarketModelMultiProduct::CashFlow value (const CurveState &) const override
 
std::unique_ptr< MarketModelExerciseValueclone () const override
 
- Public Member Functions inherited from MarketModelExerciseValue
virtual ~MarketModelExerciseValue ()=default
 
virtual Size numberOfExercises () const =0
 
virtual const EvolutionDescriptionevolution () const =0
 
virtual std::vector< TimepossibleCashFlowTimes () const =0
 
virtual void nextStep (const CurveState &)=0
 
virtual void reset ()=0
 
virtual std::valarray< boolisExerciseTime () const =0
 
virtual MarketModelMultiProduct::CashFlow value (const CurveState &) const =0
 
virtual std::unique_ptr< MarketModelExerciseValueclone () const =0
 

Private Attributes

Size numberOfExercises_
 
std::vector< TimerateTimes_
 
std::valarray< boolisExerciseTime_
 
EvolutionDescription evolution_
 
Size currentIndex_ = 0
 
MarketModelMultiProduct::CashFlow cf_
 

Detailed Description

Examples
MarketModels.cpp.

Definition at line 28 of file nothingexercisevalue.hpp.

Constructor & Destructor Documentation

◆ NothingExerciseValue()

NothingExerciseValue ( const std::vector< Time > &  rateTimes,
std::valarray< bool isExerciseTime = std::valarray<bool>() 
)

Definition at line 27 of file nothingexercisevalue.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ numberOfExercises()

Size numberOfExercises ( ) const
overridevirtual

Implements MarketModelExerciseValue.

Definition at line 56 of file nothingexercisevalue.cpp.

◆ evolution()

const EvolutionDescription & evolution ( ) const
overridevirtual

Implements MarketModelExerciseValue.

Definition at line 60 of file nothingexercisevalue.cpp.

◆ possibleCashFlowTimes()

std::vector< Time > possibleCashFlowTimes ( ) const
overridevirtual

Implements MarketModelExerciseValue.

Definition at line 64 of file nothingexercisevalue.cpp.

◆ nextStep()

void nextStep ( const CurveState )
overridevirtual

Implements MarketModelExerciseValue.

Definition at line 72 of file nothingexercisevalue.cpp.

◆ reset()

void reset ( )
overridevirtual

Implements MarketModelExerciseValue.

Definition at line 68 of file nothingexercisevalue.cpp.

◆ isExerciseTime()

std::valarray< bool > isExerciseTime ( ) const
overridevirtual

Implements MarketModelExerciseValue.

Definition at line 78 of file nothingexercisevalue.cpp.

◆ value()

MarketModelMultiProduct::CashFlow value ( const CurveState ) const
overridevirtual

Implements MarketModelExerciseValue.

Definition at line 83 of file nothingexercisevalue.cpp.

◆ clone()

std::unique_ptr< MarketModelExerciseValue > clone ( ) const
overridevirtual

Implements MarketModelExerciseValue.

Definition at line 88 of file nothingexercisevalue.cpp.

Member Data Documentation

◆ numberOfExercises_

Size numberOfExercises_
private

Definition at line 44 of file nothingexercisevalue.hpp.

◆ rateTimes_

std::vector<Time> rateTimes_
private

Definition at line 45 of file nothingexercisevalue.hpp.

◆ isExerciseTime_

std::valarray<bool> isExerciseTime_
private

Definition at line 46 of file nothingexercisevalue.hpp.

◆ evolution_

EvolutionDescription evolution_
private

Definition at line 47 of file nothingexercisevalue.hpp.

◆ currentIndex_

Size currentIndex_ = 0
private

Definition at line 49 of file nothingexercisevalue.hpp.

◆ cf_

Definition at line 50 of file nothingexercisevalue.hpp.