Logo Search packages:      
Sourcecode: quantlib version File versions  Download package

QuantLib::NullCalendar Class Reference

#include <nullcalendar.hpp>

Inheritance diagram for QuantLib::NullCalendar:

QuantLib::Calendar

List of all members.


Detailed Description

Calendar for reproducing theoretical calculations.

This calendar has no holidays. It ensures that dates at whole-month distances have the same day of month.

Definition at line 38 of file nullcalendar.hpp.


Calendar interface

void addHoliday (const Date &)
Date adjust (const Date &, BusinessDayConvention convention=Following) const
Date advance (const Date &date, const Period &period, BusinessDayConvention convention=Following, bool endOfMonth=false) const
Date advance (const Date &, Integer n, TimeUnit unit, BusinessDayConvention convention=Following, bool endOfMonth=false) const
BigInteger businessDaysBetween (const Date &from, const Date &to, bool includeFirst=true, bool includeLast=false) const
bool empty () const
 Returns whether or not the calendar is initialized.
Date endOfMonth (const Date &d) const
 last business day of the month to which the given date belongs
bool isBusinessDay (const Date &d) const
bool isEndOfMonth (const Date &d) const
bool isHoliday (const Date &d) const
bool isWeekend (Weekday w) const
std::string name () const
 Returns the name of the calendar.
void removeHoliday (const Date &)
static std::vector< DateholidayList (const Calendar &calendar, const Date &from, const Date &to, bool includeWeekEnds=false)
 Returns the holidays between two dates.

Protected Attributes

boost::shared_ptr< Implimpl_

Related Functions

(Note that these are not member functions.)

bool operator!= (const Calendar &, const Calendar &)
std::ostream & operator<< (std::ostream &, const Calendar &)
bool operator== (const Calendar &, const Calendar &)

Classes

class  Impl

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index