PrevUpHomeNext

Class year_weekday_iterator

fd::gregorian::year_weekday_iterator — Year level iterator, which stays at the weekday of month specified at construction time, with the ability to add an optional number of days to the resulting date.

Synopsis

// In header: <fd/date_iterators.h>


class year_weekday_iterator : public fd::gregorian::month_weekday_iterator {
public:

  // public member functions
  year_weekday_iterator(date_type, int, nth_kday_of_month::week_num, 
                        boost::date_time::weekdays);
};

Description

year_weekday_iterator public member functions

  1. year_weekday_iterator(date_type d, int f, 
                          nth_kday_of_month::week_num originWeekNo, 
                          boost::date_time::weekdays originWeekday);

    Parameters:

    d

    Current date (year, month) where to set up the iterator.

    f

    Factor, i.e. how many years to forward on each iteration.

    originWeekNo

    The week number of a month [1..5] to set up the iterator.

    originWeekday

    The day of week [0..6] to set up the iterator.


PrevUpHomeNext