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

Class template time_resolution_traits

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 time_resolution_traits

boost::date_time::time_resolution_traits

Synopsis

// In header: <boost/date_time/time_resolution_traits.hpp>
template<typename frac_sec_type, time_resolutions res, 
         #if(defined(BOOST_MSVC)&&(_MSC_VER< 1300)) boost::int64_t resolution_adjust, 
         #else typename frac_sec_type::int_type resolution_adjust, 
         #endif unsigned short frac_digits, 
         typename var_type = boost::int32_t> 
class time_resolution_traits {
public:
  // types
  typedef frac_sec_type::int_type  fractional_seconds_type;
  typedef frac_sec_type::int_type  tick_type;              
  typedef frac_sec_type::impl_type impl_type;              
  typedef var_type                 day_type;               
  typedef var_type                 hour_type;              
  typedef var_type                 min_type;               
  typedef var_type                 sec_type;               
  // public static functions
  static fractional_seconds_type as_number(impl_type);
  static bool is_adapted();
  static time_resolutions resolution();
  static unsigned short num_fractional_digits();
  static fractional_seconds_type res_adjust();
  static tick_type 
  to_tick_count(hour_type, min_type, sec_type, fractional_seconds_type);
  // public member functions
   BOOST_STATIC_CONSTANT(boost::int64_t, ticks_per_second = resolution_adjust);
   BOOST_STATIC_CONSTANT(fractional_seconds_type, 
                         ticks_per_second = resolution_adjust);
};

Description

time_resolution_traits public static functions

  1. <
    staticfractional_seconds_typeas_number(impl_typei);
    >
  2. <
    staticboolis_adapted();
    >
  3. <
    statictime_resolutionsresolution();
    >
  4. <
    staticunsignedshortnum_fractional_digits();
    >
  5. <
    staticfractional_seconds_typeres_adjust();
    >
  6. <
    statictick_type
    to_tick_count(hour_typehours,min_typeminutes,sec_typeseconds,
                 fractional_seconds_typefs);
    >Любой отрицательный аргумент приводит к отрицательному счету tick_count.

time_resolution_traits public member functions

  1. <
    BOOST_STATIC_CONSTANT(boost::int64_t,ticks_per_second=resolution_adjust);
    >
  2. <
    BOOST_STATIC_CONSTANT(fractional_seconds_type,
                          ticks_per_second=resolution_adjust);
    >

PrevUpHomeNext

Статья Class template time_resolution_traits раздела 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 01:49:57/0.0054850578308105/1