Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

Class template year_based_generator

Boost , The Boost C++ Libraries BoostBook Documentation Subset , Library Reference

Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Class template year_based_generator

boost::date_time::year_based_generator — Base class for all generators that take a year and produce a date.

Synopsis

// In header: <boost/date_time/date_generators.hpp>
template<typename date_type> 
class year_based_generator {
public:
  // types
  typedef date_type::calendar_type calendar_type;
  typedef calendar_type::year_type year_type;    
  // construct/copy/destruct
  year_based_generator();
  ~year_based_generator();
  // public member functions
  virtual date_type get_date(year_type) const = 0;
  virtual std::string to_string() const = 0;
};

Description

Этот класс является базовым классом для объектов полиморфных функций, которые занимают год и дают конкретную дату.

year_based_generator public construct/copy/destruct

  1. <
    year_based_generator();
    >
  2. <
    ~year_based_generator();
    >

year_based_generator public member functions

  1. <
    virtualdate_typeget_date(year_typey)const=0;
    >
  2. <
    virtualstd::stringto_string()const=0;
    >Возвращает строку для использования в строке POSIX time_zone.

PrevUpHomeNext

Статья Class template year_based_generator раздела The Boost C++ Libraries BoostBook Documentation Subset Library Reference может быть полезна для разработчиков на c++ и boost.




Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



:: Главная :: Library Reference ::


реклама


©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
Top.Mail.Ru

Время компиляции файла: 2024-08-30 11:47:00
2025-05-20 02:27:45/0.0033278465270996/0