#include <SwapLeg.h>
Public Member Functions | |
SwapLeg (Date startDate, Real Frequency, Date endDate, Real Notional, Real AmortizingConstant, BusinessDayConvention convention) | |
Constructor that takes a notional and the constant value of which the notional should be decreasing every time. | |
SwapLeg (valarray< Date > dates, valarray< Real > Notionals) | |
For more general swaps : takes a valarray of notionals for every period and a valarray of dates. | |
LongInteger | returnSize () |
Return size of valarray. | |
valarray< Date > | returnDates () |
Return dates valarray. | |
valarray< Real > | returnAmounts () |
Return dates valarray. | |
~SwapLeg (void) | |
Private Attributes | |
valarray< Date > | _dateSchedule |
valarray< Real > | _flowSchedule |
|
Constructor that takes a notional and the constant value of which the notional should be decreasing every time. If endDate!=startDate + multiple of frequency then endDate is reduced until it satisfies the condition Definition at line 3 of file SwapLeg.cpp. References _dateSchedule, _flowSchedule, Date::applyConvention(), Frequency, Integer, LongInteger, Natural, Real, and Date::serialNumber(). |
|
For more general swaps : takes a valarray of notionals for every period and a valarray of dates.
Definition at line 27 of file SwapLeg.cpp. References _dateSchedule, and _flowSchedule. |
|
Definition at line 50 of file SwapLeg.cpp. |
|
Return dates valarray.
Definition at line 45 of file SwapLeg.cpp. References _flowSchedule. Referenced by CashFlow::CashFlow(). |
|
Return dates valarray.
Definition at line 40 of file SwapLeg.cpp. References _dateSchedule. Referenced by CashFlow::CashFlow(). |
|
Return size of valarray.
Definition at line 35 of file SwapLeg.cpp. References _dateSchedule, and LongInteger. |
|
Definition at line 36 of file SwapLeg.h. Referenced by returnDates(), returnSize(), and SwapLeg(). |
|
Definition at line 37 of file SwapLeg.h. Referenced by returnAmounts(), and SwapLeg(). |