#include <Redemption.h>
Public Member Functions | |
| Redemption (void) | |
| This will initialize a Redemption with an empty date, a value of 0.0, and a null lastInterestDate. | |
| Redemption (const FISADate &date, double value) | |
| This will initialize a Redemption with the provided date and value and will set lastInterestDate to null. | |
| Redemption (const FISADate &date, double value, const FISADate &lastInterestDate) | |
| This will initialize a Redemption with the provided date, value, and lastInterestDate. | |
| Redemption (const Redemption &redemption) | |
| virtual | ~Redemption (void) |
| Redemption & | operator= (const Redemption &redemption) |
| bool | operator== (const Redemption &redemption) const |
| bool | operator!= (const Redemption &redemption) const |
| bool | operator< (const Redemption &redemption) const |
| bool | operator> (const Redemption &redemption) const |
| bool | operator<= (const Redemption &redemption) const |
| bool | operator>= (const Redemption &redemption) const |
| const FISADate & | getDate (void) const |
| Get the redemption date. | |
| void | setDate (const FISADate &date) |
| Set the redemption date. | |
| double | getValue (void) const |
| Get the redemption value. | |
| void | setValue (double value) |
| Set the redemption value. | |
| const FISADate * | getLastInterestDate (void) const |
| Get the last interest date, which would be the interest date just prior to redemption. | |
| void | setLastInterestDate (const FISADate *lastInterestDate) |
| Set or clear the last interest date, which would be the interest date just prior to redemption. | |
| const FISADate * | generateLastInterestDate (const FISADate &synchronizeDate, const InterestFrequency &interestFrequency, bool eomAdjust) |
| Generates a date that would be the interest/dividend date just prior to redemption. This method stores the generated lastInterestDate to this Redemption object and returns the result. | |
| bool | isEmpty (void) const |
Private Attributes | |
| FISADate | date |
| double | value |
| FISADate * | lastInterestDate |
This could be maturity, a call, a put etc...
| com::ftlabs::fisa::Redemption::Redemption | ( | void | ) |
This will initialize a Redemption with an empty date, a value of 0.0, and a null lastInterestDate.
| com::ftlabs::fisa::Redemption::Redemption | ( | const FISADate & | date, | |
| double | value | |||
| ) |
This will initialize a Redemption with the provided date and value and will set lastInterestDate to null.
| date | the date of this Redemption. | |
| value | the redemtpion value. |
| com::ftlabs::fisa::Redemption::Redemption | ( | const FISADate & | date, | |
| double | value, | |||
| const FISADate & | lastInterestDate | |||
| ) |
This will initialize a Redemption with the provided date, value, and lastInterestDate.
| date | the date of this Redemption. | |
| value | the redemption value. | |
| lastInterestDate | the interest date just prior to redemption. This value is usually only needed if a Security has an odd last period. |
| com::ftlabs::fisa::Redemption::Redemption | ( | const Redemption & | redemption | ) |
| virtual com::ftlabs::fisa::Redemption::~Redemption | ( | void | ) | [virtual] |
| Redemption& com::ftlabs::fisa::Redemption::operator= | ( | const Redemption & | redemption | ) |
| bool com::ftlabs::fisa::Redemption::operator== | ( | const Redemption & | redemption | ) | const |
| bool com::ftlabs::fisa::Redemption::operator!= | ( | const Redemption & | redemption | ) | const |
| bool com::ftlabs::fisa::Redemption::operator< | ( | const Redemption & | redemption | ) | const |
| bool com::ftlabs::fisa::Redemption::operator> | ( | const Redemption & | redemption | ) | const |
| bool com::ftlabs::fisa::Redemption::operator<= | ( | const Redemption & | redemption | ) | const |
| bool com::ftlabs::fisa::Redemption::operator>= | ( | const Redemption & | redemption | ) | const |
| const FISADate& com::ftlabs::fisa::Redemption::getDate | ( | void | ) | const |
Get the redemption date.
| void com::ftlabs::fisa::Redemption::setDate | ( | const FISADate & | date | ) |
Set the redemption date.
| date | a redemption date. |
| double com::ftlabs::fisa::Redemption::getValue | ( | void | ) | const |
Get the redemption value.
| void com::ftlabs::fisa::Redemption::setValue | ( | double | value | ) |
Set the redemption value.
| value | the redemption value. |
| const FISADate* com::ftlabs::fisa::Redemption::getLastInterestDate | ( | void | ) | const |
Get the last interest date, which would be the interest date just prior to redemption.
| void com::ftlabs::fisa::Redemption::setLastInterestDate | ( | const FISADate * | lastInterestDate | ) |
Set or clear the last interest date, which would be the interest date just prior to redemption.
| lastInterestDate | a pointer to the lastInterestDate, or NULL. If the pointer is not zero (NULL), then a copy is made of the object referenced by the pointer and the pointers value is not stored. |
| const FISADate* com::ftlabs::fisa::Redemption::generateLastInterestDate | ( | const FISADate & | synchronizeDate, | |
| const InterestFrequency & | interestFrequency, | |||
| bool | eomAdjust | |||
| ) |
Generates a date that would be the interest/dividend date just prior to redemption. This method stores the generated lastInterestDate to this Redemption object and returns the result.
| synchronizeDate | a date to synchronize the lastInterestDate to. This will usually be a datedDate, firstInterestDate, or dividendPayDate, but this could also be the redemption date. |
| interestFrequency | the interestFrequency to use. | |
| eomAdjust | Determines whether or not the end of month adjust rule is used. |
| bool com::ftlabs::fisa::Redemption::isEmpty | ( | void | ) | const |
FISADate com::ftlabs::fisa::Redemption::date [private] |
double com::ftlabs::fisa::Redemption::value [private] |
1.5.2