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

Class template date_itr_base

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 date_itr_base

boost::date_time::date_itr_base — Base date iterator type.

Synopsis

// In header: <boost/date_time/date_iterator.hpp>
template<typename date_type> 
class date_itr_base {
public:
  // types
  typedef date_type::duration_type duration_type;    
  typedef date_type                value_type;       
  typedef std::input_iterator_tag  iterator_category;
  // construct/copy/destruct
  date_itr_base(date_type);
  ~date_itr_base();
  // public member functions
  date_itr_base & operator++();
  date_itr_base & operator--();
  virtual duration_type get_offset(const date_type &) const = 0;
  virtual duration_type get_neg_offset(const date_type &) const = 0;
  date_type operator*();
  date_type * operator->();
  bool operator<(const date_type &);
  bool operator<=(const date_type &);
  bool operator>(const date_type &);
  bool operator>=(const date_type &);
  bool operator==(const date_type &);
  bool operator!=(const date_type &);
};

Description

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

Параметры шаблонов

Дата_тип

Дата_тип - конкретная дата_тип. Дата_тип должна определять продолжительность_тип и календарь_тип.

date_itr_base public construct/copy/destruct

  1. <
    date_itr_base(date_typed);
    >
  2. <
    ~date_itr_base();
    >

date_itr_base public member functions

  1. <
    date_itr_base&operator++();
    >
  2. <
    date_itr_base&operator--();
    >
  3. <
    virtualduration_typeget_offset(constdate_type&current)const=0;
    >
  4. <
    virtualduration_typeget_neg_offset(constdate_type&current)const=0;
    >
  5. <
    date_typeoperator*();
    >
  6. <
    date_type*operator->();
    >
  7. <
    booloperator<(constdate_type&d);
    >
  8. <
    booloperator<=(constdate_type&d);
    >
  9. <
    booloperator>(constdate_type&d);
    >
  10. <
    booloperator>=(constdate_type&d);
    >
  11. <
    booloperator==(constdate_type&d);
    >
  12. <
    booloperator!=(constdate_type&d);
    >

PrevUpHomeNext

Статья Class template date_itr_base раздела 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 05:47:27/0.0081920623779297/1