QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
DiscountingSwapEngine Class Reference

#include <ql/pricingengines/swap/discountingswapengine.hpp>

+ Inheritance diagram for DiscountingSwapEngine:
+ Collaboration diagram for DiscountingSwapEngine:

Public Member Functions

 DiscountingSwapEngine (Handle< YieldTermStructure > discountCurve=Handle< YieldTermStructure >(), const ext::optional< bool > &includeSettlementDateFlows=ext::nullopt, Date settlementDate=Date(), Date npvDate=Date())
 
void calculate () const override
 
Handle< YieldTermStructurediscountCurve () const
 
- Public Member Functions inherited from GenericEngine< Swap::arguments, Swap::results >
PricingEngine::argumentsgetArguments () const override
 
const PricingEngine::resultsgetResults () const override
 
void reset () override
 
void update () override
 
- Public Member Functions inherited from PricingEngine
 ~PricingEngine () override=default
 
virtual argumentsgetArguments () const =0
 
virtual const resultsgetResults () const =0
 
virtual void reset ()=0
 
virtual void calculate () const =0
 
- Public Member Functions inherited from Observable
 Observable ()
 
 Observable (const Observable &)
 
Observableoperator= (const Observable &)
 
 Observable (Observable &&)=delete
 
Observableoperator= (Observable &&)=delete
 
virtual ~Observable ()=default
 
void notifyObservers ()
 
- Public Member Functions inherited from Observer
 Observer ()=default
 
 Observer (const Observer &)
 
Observeroperator= (const Observer &)
 
virtual ~Observer ()
 
std::pair< iterator, boolregisterWith (const ext::shared_ptr< Observable > &)
 
void registerWithObservables (const ext::shared_ptr< Observer > &)
 
Size unregisterWith (const ext::shared_ptr< Observable > &)
 
void unregisterWithAll ()
 
virtual void update ()=0
 
virtual void deepUpdate ()
 

Private Attributes

Handle< YieldTermStructurediscountCurve_
 
ext::optional< boolincludeSettlementDateFlows_
 
Date settlementDate_
 
Date npvDate_
 

Additional Inherited Members

- Public Types inherited from Observer
typedef set_type::iterator iterator
 
- Protected Attributes inherited from GenericEngine< Swap::arguments, Swap::results >
Swap::arguments arguments_
 
Swap::results results_
 

Detailed Description

Definition at line 35 of file discountingswapengine.hpp.

Constructor & Destructor Documentation

◆ DiscountingSwapEngine()

DiscountingSwapEngine ( Handle< YieldTermStructure discountCurve = Handle<YieldTermStructure>(),
const ext::optional< bool > &  includeSettlementDateFlows = ext::nullopt,
Date  settlementDate = Date(),
Date  npvDate = Date() 
)

Definition at line 29 of file discountingswapengine.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ calculate()

void calculate ( ) const
overridevirtual

Implements PricingEngine.

Definition at line 40 of file discountingswapengine.cpp.

+ Here is the call graph for this function:

◆ discountCurve()

Handle< YieldTermStructure > discountCurve ( ) const

Definition at line 43 of file discountingswapengine.hpp.

Member Data Documentation

◆ discountCurve_

Handle<YieldTermStructure> discountCurve_
private

Definition at line 47 of file discountingswapengine.hpp.

◆ includeSettlementDateFlows_

ext::optional<bool> includeSettlementDateFlows_
private

Definition at line 48 of file discountingswapengine.hpp.

◆ settlementDate_

Date settlementDate_
private

Definition at line 49 of file discountingswapengine.hpp.

◆ npvDate_

Date npvDate_
private

Definition at line 49 of file discountingswapengine.hpp.