|
QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.38
|
Payment schedule. More...
#include <schedule.hpp>
Collaboration diagram for Schedule:Public Member Functions | |
| Schedule (const std::vector< Date > &, Calendar calendar=NullCalendar(), BusinessDayConvention convention=Unadjusted, const ext::optional< BusinessDayConvention > &terminationDateConvention=ext::nullopt, const ext::optional< Period > &tenor=ext::nullopt, const ext::optional< DateGeneration::Rule > &rule=ext::nullopt, const ext::optional< bool > &endOfMonth=ext::nullopt, std::vector< bool > isRegular=std::vector< bool >(0)) | |
| Schedule (Date effectiveDate, const Date &terminationDate, const Period &tenor, Calendar calendar, BusinessDayConvention convention, BusinessDayConvention terminationDateConvention, DateGeneration::Rule rule, bool endOfMonth, const Date &firstDate=Date(), const Date &nextToLastDate=Date()) | |
| Schedule ()=default | |
Element access | |
| Size | size () const |
| const Date & | operator[] (Size i) const |
| const Date & | at (Size i) const |
| const Date & | date (Size i) const |
| const std::vector< Date > & | dates () const |
| bool | empty () const |
| const Date & | front () const |
| const Date & | back () const |
Other inspectors | |
| Date | previousDate (const Date &refDate) const |
| Date | nextDate (const Date &refDate) const |
| bool | hasIsRegular () const |
| bool | isRegular (Size i) const |
| const std::vector< bool > & | isRegular () const |
| const Calendar & | calendar () const |
| const Date & | startDate () const |
| const Date & | endDate () const |
| bool | hasTenor () const |
| const Period & | tenor () const |
| BusinessDayConvention | businessDayConvention () const |
| bool | hasTerminationDateBusinessDayConvention () const |
| BusinessDayConvention | terminationDateBusinessDayConvention () const |
| bool | hasRule () const |
| DateGeneration::Rule | rule () const |
| bool | hasEndOfMonth () const |
| bool | endOfMonth () const |
Iterators | |
| typedef std::vector< Date >::const_iterator | const_iterator |
| const_iterator | begin () const |
| const_iterator | end () const |
| const_iterator | lower_bound (const Date &d=Date()) const |
Utilities | |
| ext::optional< Period > | tenor_ |
| Calendar | calendar_ |
| BusinessDayConvention | convention_ |
| ext::optional< BusinessDayConvention > | terminationDateConvention_ |
| ext::optional< DateGeneration::Rule > | rule_ |
| ext::optional< bool > | endOfMonth_ |
| Date | firstDate_ |
| Date | nextToLastDate_ |
| std::vector< Date > | dates_ |
| std::vector< bool > | isRegular_ |
| Schedule | after (const Date &truncationDate) const |
| truncated schedule More... | |
| Schedule | until (const Date &truncationDate) const |
Payment schedule.
Definition at line 40 of file schedule.hpp.
| typedef std::vector<Date>::const_iterator const_iterator |
Definition at line 100 of file schedule.hpp.
| Schedule | ( | const std::vector< Date > & | dates, |
| Calendar | calendar = NullCalendar(), |
||
| BusinessDayConvention | convention = Unadjusted, |
||
| const ext::optional< BusinessDayConvention > & | terminationDateConvention = ext::nullopt, |
||
| const ext::optional< Period > & | tenor = ext::nullopt, |
||
| const ext::optional< DateGeneration::Rule > & | rule = ext::nullopt, |
||
| const ext::optional< bool > & | endOfMonth = ext::nullopt, |
||
| std::vector< bool > | isRegular = std::vector<bool>(0) |
||
| ) |
constructor that takes any list of dates, and optionally meta information that can be used by client classes. Note that neither the list of dates nor the meta information is checked for plausibility in any sense.
Definition at line 58 of file schedule.cpp.
Here is the call graph for this function:| Schedule | ( | Date | effectiveDate, |
| const Date & | terminationDate, | ||
| const Period & | tenor, | ||
| Calendar | calendar, | ||
| BusinessDayConvention | convention, | ||
| BusinessDayConvention | terminationDateConvention, | ||
| DateGeneration::Rule | rule, | ||
| bool | endOfMonth, | ||
| const Date & | firstDate = Date(), |
||
| const Date & | nextToLastDate = Date() |
||
| ) |
rule based constructor
Definition at line 81 of file schedule.cpp.
Here is the call graph for this function:
|
default |
| Size size | ( | ) | const |
Definition at line 166 of file schedule.hpp.
Definition at line 174 of file schedule.hpp.
Definition at line 162 of file schedule.hpp.
Here is the caller graph for this function:| const std::vector< Date > & dates | ( | ) | const |
| bool empty | ( | ) | const |
| const Date & front | ( | ) | const |
| const Date & back | ( | ) | const |
| bool hasIsRegular | ( | ) | const |
Definition at line 513 of file schedule.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| const std::vector< bool > & isRegular | ( | ) | const |
Definition at line 522 of file schedule.cpp.
| const Calendar & calendar | ( | ) | const |
| const Date & startDate | ( | ) | const |
| const Date & endDate | ( | ) | const |
| bool hasTenor | ( | ) | const |
| const Period & tenor | ( | ) | const |
Definition at line 202 of file schedule.hpp.
Here is the call graph for this function:
Here is the caller graph for this function:| BusinessDayConvention businessDayConvention | ( | ) | const |
| bool hasTerminationDateBusinessDayConvention | ( | ) | const |
| BusinessDayConvention terminationDateBusinessDayConvention | ( | ) | const |
| bool hasRule | ( | ) | const |
| DateGeneration::Rule rule | ( | ) | const |
Definition at line 228 of file schedule.hpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool hasEndOfMonth | ( | ) | const |
| bool endOfMonth | ( | ) | const |
Definition at line 237 of file schedule.hpp.
Here is the call graph for this function:
Here is the caller graph for this function:| const_iterator begin | ( | ) | const |
Definition at line 101 of file schedule.hpp.
| const_iterator end | ( | ) | const |
Definition at line 102 of file schedule.hpp.
| std::vector< Date >::const_iterator lower_bound | ( | const Date & | d = Date() | ) | const |
Definition at line 488 of file schedule.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:truncated schedule
Definition at line 420 of file schedule.cpp.
|
private |
Definition at line 112 of file schedule.hpp.
|
private |
Definition at line 113 of file schedule.hpp.
|
private |
Definition at line 114 of file schedule.hpp.
|
private |
Definition at line 115 of file schedule.hpp.
|
private |
Definition at line 116 of file schedule.hpp.
|
private |
Definition at line 117 of file schedule.hpp.
|
private |
Definition at line 118 of file schedule.hpp.
|
private |
Definition at line 118 of file schedule.hpp.
|
private |
Definition at line 119 of file schedule.hpp.
|
private |
Definition at line 120 of file schedule.hpp.