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

Base class for FX Linked cashflows. More...

#include <qle/cashflows/fxlinkedcashflow.hpp>

+ Inheritance diagram for FXLinked:
+ Collaboration diagram for FXLinked:

Public Member Functions

 FXLinked (const Date &fixingDate, Real foreignAmount, QuantLib::ext::shared_ptr< FxIndex > fxIndex)
 
virtual ~FXLinked ()
 
Date fxFixingDate () const
 
Real foreignAmount () const
 
const QuantLib::ext::shared_ptr< FxIndex > & fxIndex () const
 
Real fxRate () const
 
virtual QuantLib::ext::shared_ptr< FXLinkedclone (QuantLib::ext::shared_ptr< FxIndex > fxIndex)=0
 

Protected Attributes

Date fxFixingDate_
 
Real foreignAmount_
 
QuantLib::ext::shared_ptr< FxIndexfxIndex_
 

Detailed Description

Base class for FX Linked cashflows.

Definition at line 39 of file fxlinkedcashflow.hpp.

Constructor & Destructor Documentation

◆ FXLinked()

FXLinked ( const Date &  fixingDate,
Real  foreignAmount,
QuantLib::ext::shared_ptr< FxIndex fxIndex 
)

Definition at line 24 of file fxlinkedcashflow.cpp.

QuantLib::ext::shared_ptr< FxIndex > fxIndex_
const QuantLib::ext::shared_ptr< FxIndex > & fxIndex() const
Real foreignAmount() const
Date fxFixingDate() const

◆ ~FXLinked()

virtual ~FXLinked ( )
virtual

Definition at line 42 of file fxlinkedcashflow.hpp.

42{}

Member Function Documentation

◆ fxFixingDate()

Date fxFixingDate ( ) const

Definition at line 43 of file fxlinkedcashflow.hpp.

43{ return fxFixingDate_; }
+ Here is the caller graph for this function:

◆ foreignAmount()

Real foreignAmount ( ) const

Definition at line 44 of file fxlinkedcashflow.hpp.

44{ return foreignAmount_; }
+ Here is the caller graph for this function:

◆ fxIndex()

const QuantLib::ext::shared_ptr< FxIndex > & fxIndex ( ) const

Definition at line 45 of file fxlinkedcashflow.hpp.

45{ return fxIndex_; }
+ Here is the caller graph for this function:

◆ fxRate()

Real fxRate ( ) const

Definition at line 31 of file fxlinkedcashflow.cpp.

31 {
32 return fxIndex_->fixing(fxFixingDate_);
33}
+ Here is the caller graph for this function:

◆ clone()

virtual QuantLib::ext::shared_ptr< FXLinked > clone ( QuantLib::ext::shared_ptr< FxIndex fxIndex)
pure virtual

Member Data Documentation

◆ fxFixingDate_

Date fxFixingDate_
protected

Definition at line 51 of file fxlinkedcashflow.hpp.

◆ foreignAmount_

Real foreignAmount_
protected

Definition at line 52 of file fxlinkedcashflow.hpp.

◆ fxIndex_

QuantLib::ext::shared_ptr<FxIndex> fxIndex_
protected

Definition at line 53 of file fxlinkedcashflow.hpp.