Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::date_time::first_kday_before< date_type > Class Template Reference

Calculate something like "First Sunday before Jan 1,2002. More...

#include <date_generators.hpp>

Public Types

typedef date_type::calendar_type calendar_type
 
typedef
calendar_type::day_of_week_type 
day_of_week_type
 
typedef date_type::duration_type duration_type
 

Public Member Functions

 first_kday_before (day_of_week_type dow)
 
date_type get_date (date_type start_day) const
 Return next kday given. More...
 
day_of_week_type day_of_week () const
 

Detailed Description

template<class date_type>
class boost::date_time::first_kday_before< date_type >

Calculate something like "First Sunday before Jan 1,2002.

Date generator that takes a date and finds kday after

firstkdaybefore fkbf(Monday);
fkbf.get_date(date(2002,Feb,1));

Member Typedef Documentation

template<class date_type >
typedef date_type::calendar_type boost::date_time::first_kday_before< date_type >::calendar_type
template<class date_type >
typedef calendar_type::day_of_week_type boost::date_time::first_kday_before< date_type >::day_of_week_type
template<class date_type >
typedef date_type::duration_type boost::date_time::first_kday_before< date_type >::duration_type

Constructor & Destructor Documentation

template<class date_type >
boost::date_time::first_kday_before< date_type >::first_kday_before ( day_of_week_type  dow)
inline

Member Function Documentation

template<class date_type >
date_type boost::date_time::first_kday_before< date_type >::get_date ( date_type  start_day) const
inline

Return next kday given.


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