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

Class template discrete_interval

Boost , Chapter 1. Boost.Icl , Header <boost/icl/discrete_interval.hpp>

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 discrete_interval

boost::icl::discrete_interval

Synopsis

// In header: <boost/icl/discrete_interval.hpp>
template<typename DomainT, 
         ICL_COMPARE Compare = ICL_COMPARE_INSTANCE(ICL_COMPARE_DEFAULT, DomainT)> 
class discrete_interval {
public:
  // types
  typedef discrete_interval< DomainT, Compare > type;               
  typedef DomainT                               domain_type;        
  typedef bounded_value< DomainT >::type        bounded_domain_type;
  // construct/copy/destruct
  discrete_interval();
  explicit discrete_interval(const DomainT &);
  discrete_interval(const DomainT &, const DomainT &, 
                    interval_bounds = interval_bounds::right_open(), 
                    discrete_interval * = 0);
  // public member functions
  typedef ICL_COMPARE_DOMAIN(Compare, DomainT);
  domain_type lower() const;
  domain_type upper() const;
  interval_bounds bounds() const;
  // public static functions
  static discrete_interval open(const DomainT &, const DomainT &);
  static discrete_interval right_open(const DomainT &, const DomainT &);
  static discrete_interval left_open(const DomainT &, const DomainT &);
  static discrete_interval closed(const DomainT &, const DomainT &);
};

Description

discrete_interval public construct/copy/destruct

  1. <
    discrete_interval();
    >

    Конструктор по умолчанию; дает пустой интервал<[0,0)>.

  2. <
    explicitdiscrete_interval(constDomainT&val);
    >

    Конструктор для замкнутого однотонного интервала<[val,val]>

  3. <
    discrete_interval(constDomainT&low,constDomainT&up,
                     interval_boundsbounds=interval_bounds::right_open(),
                     discrete_interval*=0);
    >

    Интервал от<low>до<up>с границами<bounds>

discrete_interval public member functions

  1. <
    typedefICL_COMPARE_DOMAIN(Compare,DomainT);
    >
  2. <
    domain_typelower()const;
    >
  3. <
    domain_typeupper()const;
    >
  4. <
    interval_boundsbounds()const;
    >

discrete_interval public static functions

  1. <
    staticdiscrete_intervalopen(constDomainT&lo,constDomainT&up);
    >
  2. <
    staticdiscrete_intervalright_open(constDomainT&lo,constDomainT&up);
    >
  3. <
    staticdiscrete_intervalleft_open(constDomainT&lo,constDomainT&up);
    >
  4. <
    staticdiscrete_intervalclosed(constDomainT&lo,constDomainT&up);
    >

PrevUpHomeNext

Статья Class template discrete_interval раздела Chapter 1. Boost.Icl Header <boost/icl/discrete_interval.hpp> может быть полезна для разработчиков на c++ и boost.




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



:: Главная :: Header <boost/icl/discrete_interval.hpp> ::


реклама


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

Время компиляции файла: 2024-08-30 11:47:00
2025-05-19 19:47:50/0.028062105178833/1