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::year_based_generator< date_type > Class Template Referenceabstract

Base class for all generators that take a year and produce a date. More...

#include <date_generators.hpp>

Inheritance diagram for boost::date_time::year_based_generator< date_type >:

Public Types

typedef date_type::calendar_type calendar_type
 
typedef calendar_type::year_type year_type
 

Public Member Functions

 year_based_generator ()
 
virtual ~year_based_generator ()
 
virtual date_type get_date (year_type y) const =0
 
virtual std::string to_string () const =0
 Returns a string for use in a POSIX time_zone string. More...
 

Detailed Description

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

Base class for all generators that take a year and produce a date.

This class is a base class for polymorphic function objects that take a year and produce a concrete date.

Parameters
date_typeThe type representing a date. This type must export a calender_type which defines a year_type.

Member Typedef Documentation

template<class date_type >
typedef date_type::calendar_type boost::date_time::year_based_generator< date_type >::calendar_type
template<class date_type >
typedef calendar_type::year_type boost::date_time::year_based_generator< date_type >::year_type

Constructor & Destructor Documentation

template<class date_type >
boost::date_time::year_based_generator< date_type >::year_based_generator ( )
inline
template<class date_type >
virtual boost::date_time::year_based_generator< date_type >::~year_based_generator ( )
inlinevirtual

Member Function Documentation

template<class date_type >
virtual std::string boost::date_time::year_based_generator< date_type >::to_string ( ) const
pure virtual

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