CashFlow Class Reference

#include <ql/cashflow.hpp>

Inheritance diagram for CashFlow:

Inheritance graph
[legend]
List of all members.

Detailed Description

Base class for cash flows.

This class is purely virtual and acts as a base class for the actual cash flow implementations.


Public Member Functions

CashFlow interface
virtual Real amount () const =0
 returns the amount of the cash flow
virtual Date date () const =0
 returns the date at which the cash flow is settled
Visitability
virtual void accept (AcyclicVisitor &)


Member Function Documentation

virtual Real amount  )  const [pure virtual]
 

returns the amount of the cash flow

Note:
The amount is not discounted, i.e., it is the actual amount paid at the cash flow date.

Implemented in FixedRateCoupon, IndexedCoupon, ParCoupon, Short< ParCoupon >, and SimpleCashFlow.


QuantLib.org
QuantLib
Hosted by
SourceForge.net Logo
Documentation generated by
doxygen