QuantLib: a free/open-source library for quantitative finance
Reference manual - version 1.40
Loading...
Searching...
No Matches
Redemption Class Reference

Bond redemption. More...

#include <ql/cashflows/simplecashflow.hpp>

Inheritance diagram for Redemption:

Public Member Functions

 Redemption (Real amount, const Date &date)
Visitability
void accept (AcyclicVisitor &) override
Public Member Functions inherited from SimpleCashFlow
 SimpleCashFlow (Real amount, const Date &date)
Date date () const override
Real amount () const override
 returns the amount of the cash flow
void accept (AcyclicVisitor &) override
Public Member Functions inherited from CashFlow
bool hasOccurred (const Date &refDate=Date(), ext::optional< bool > includeRefDate=ext::nullopt) const override
 returns true if an event has already occurred before a date
void performCalculations () const override
virtual Date exCouponDate () const
 returns the date that the cash flow trades exCoupon
bool tradingExCoupon (const Date &refDate=Date()) const
 returns true if the cashflow is trading ex-coupon on the refDate
Public Member Functions inherited from Event
Public Member Functions inherited from Observable
 Observable (const Observable &)
Observableoperator= (const Observable &)
 Observable (Observable &&)=delete
Observableoperator= (Observable &&)=delete
void notifyObservers ()
Public Member Functions inherited from LazyObject
void update () override
bool isCalculated () const
void forwardFirstNotificationOnly ()
void alwaysForwardNotifications ()
void recalculate ()
void freeze ()
void unfreeze ()
Public Member Functions inherited from Observer
 Observer (const Observer &)
Observeroperator= (const Observer &)
std::pair< iterator, bool > registerWith (const ext::shared_ptr< Observable > &)
void registerWithObservables (const ext::shared_ptr< Observer > &)
Size unregisterWith (const ext::shared_ptr< Observable > &)
void unregisterWithAll ()
virtual void deepUpdate ()

Additional Inherited Members

Public Types inherited from Observer
typedef set_type::iterator iterator
virtual void calculate () const
bool calculated_ = false
bool frozen_ = false
bool alwaysForward_

Detailed Description

Bond redemption.

This class specializes SimpleCashFlow so that visitors can perform more detailed cash-flow analysis.

Member Function Documentation

◆ accept()

void accept ( AcyclicVisitor & v)
overridevirtual

Reimplemented from CashFlow.