QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
MakeSchedule Class Reference

helper class More...

#include <schedule.hpp>

+ Collaboration diagram for MakeSchedule:

Public Member Functions

MakeSchedulefrom (const Date &effectiveDate)
 
MakeScheduleto (const Date &terminationDate)
 
MakeSchedulewithTenor (const Period &)
 
MakeSchedulewithFrequency (Frequency)
 
MakeSchedulewithCalendar (const Calendar &)
 
MakeSchedulewithConvention (BusinessDayConvention)
 
MakeSchedulewithTerminationDateConvention (BusinessDayConvention)
 
MakeSchedulewithRule (DateGeneration::Rule)
 
MakeScheduleforwards ()
 
MakeSchedulebackwards ()
 
MakeScheduleendOfMonth (bool flag=true)
 
MakeSchedulewithFirstDate (const Date &d)
 
MakeSchedulewithNextToLastDate (const Date &d)
 
 operator Schedule () const
 

Private Attributes

Calendar calendar_
 
Date effectiveDate_
 
Date terminationDate_
 
ext::optional< Periodtenor_
 
ext::optional< BusinessDayConventionconvention_
 
ext::optional< BusinessDayConventionterminationDateConvention_
 
DateGeneration::Rule rule_ = DateGeneration::Backward
 
bool endOfMonth_ = false
 
Date firstDate_
 
Date nextToLastDate_
 

Detailed Description

helper class

This class provides a more comfortable interface to the argument list of Schedule's constructor.

Examples
CDS.cpp.

Definition at line 126 of file schedule.hpp.

Member Function Documentation

◆ from()

MakeSchedule & from ( const Date effectiveDate)
Examples
CDS.cpp.

Definition at line 532 of file schedule.cpp.

+ Here is the caller graph for this function:

◆ to()

MakeSchedule & to ( const Date terminationDate)
Examples
CDS.cpp.

Definition at line 537 of file schedule.cpp.

+ Here is the caller graph for this function:

◆ withTenor()

MakeSchedule & withTenor ( const Period tenor)

Definition at line 542 of file schedule.cpp.

+ Here is the caller graph for this function:

◆ withFrequency()

MakeSchedule & withFrequency ( Frequency  frequency)
Examples
CDS.cpp.

Definition at line 547 of file schedule.cpp.

+ Here is the caller graph for this function:

◆ withCalendar()

MakeSchedule & withCalendar ( const Calendar calendar)
Examples
CDS.cpp.

Definition at line 552 of file schedule.cpp.

+ Here is the caller graph for this function:

◆ withConvention()

MakeSchedule & withConvention ( BusinessDayConvention  conv)
Examples
CDS.cpp.

Definition at line 557 of file schedule.cpp.

+ Here is the caller graph for this function:

◆ withTerminationDateConvention()

MakeSchedule & withTerminationDateConvention ( BusinessDayConvention  conv)
Examples
CDS.cpp.

Definition at line 562 of file schedule.cpp.

+ Here is the caller graph for this function:

◆ withRule()

Examples
CDS.cpp.

Definition at line 568 of file schedule.cpp.

+ Here is the caller graph for this function:

◆ forwards()

MakeSchedule & forwards ( )

Definition at line 573 of file schedule.cpp.

+ Here is the caller graph for this function:

◆ backwards()

MakeSchedule & backwards ( )

Definition at line 578 of file schedule.cpp.

+ Here is the caller graph for this function:

◆ endOfMonth()

MakeSchedule & endOfMonth ( bool  flag = true)

Definition at line 583 of file schedule.cpp.

+ Here is the caller graph for this function:

◆ withFirstDate()

MakeSchedule & withFirstDate ( const Date d)

Definition at line 588 of file schedule.cpp.

◆ withNextToLastDate()

MakeSchedule & withNextToLastDate ( const Date d)

Definition at line 593 of file schedule.cpp.

◆ operator Schedule()

operator Schedule ( ) const

Definition at line 598 of file schedule.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ calendar_

Calendar calendar_
private

Definition at line 143 of file schedule.hpp.

◆ effectiveDate_

Date effectiveDate_
private

Definition at line 144 of file schedule.hpp.

◆ terminationDate_

Date terminationDate_
private

Definition at line 144 of file schedule.hpp.

◆ tenor_

ext::optional<Period> tenor_
private

Definition at line 145 of file schedule.hpp.

◆ convention_

ext::optional<BusinessDayConvention> convention_
private

Definition at line 146 of file schedule.hpp.

◆ terminationDateConvention_

ext::optional<BusinessDayConvention> terminationDateConvention_
private

Definition at line 147 of file schedule.hpp.

◆ rule_

Definition at line 148 of file schedule.hpp.

◆ endOfMonth_

bool endOfMonth_ = false
private

Definition at line 149 of file schedule.hpp.

◆ firstDate_

Date firstDate_
private

Definition at line 150 of file schedule.hpp.

◆ nextToLastDate_

Date nextToLastDate_
private

Definition at line 150 of file schedule.hpp.