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

Class template absolute

Boost , The Boost C++ Libraries BoostBook Documentation Subset , 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 absolute

boost::units::absolute

Synopsis

// In header: <boost/units/absolute.hpp>
template<typename Y> 
class absolute {
public:
  // types
  typedef absolute< Y > this_type; 
  typedef Y             value_type;
  // construct/copy/destruct
  absolute();
  absolute(const value_type &);
  absolute(const this_type &);
  this_type & operator=(const this_type &);
  // public member functions
  const value_type & value() const;
  const this_type & operator+=(const value_type &);
  const this_type & operator-=(const value_type &);
};

Description

Обертка, представляющая абсолютные единицы (точки, а не векторы). Предназначенный первоначально для температур, этот класс реализует операторы для абсолютных единиц, так что добавление относительной единицы к абсолютной единице приводит к другой абсолютной единице: абсолютный+/- T ->Absoluteи вычитание одной абсолютной единицы из другой приводит к относительной единице: Absolute- Absolute->T.

absolute public construct/copy/destruct

  1. <
    absolute();
    >
  2. <
    absolute(constvalue_type&val);
    >
  3. <
    absolute(constthis_type&source);
    >
  4. <
    this_type&operator=(constthis_type&source);
    >

absolute public member functions

  1. <
    constvalue_type&value()const;
    >
  2. <
    constthis_type&operator+=(constvalue_type&val);
    >
  3. <
    constthis_type&operator-=(constvalue_type&val);
    >

PrevUpHomeNext

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




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



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


реклама


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

Время компиляции файла: 2024-08-30 11:47:00
2025-05-19 22:36:37/0.003328800201416/0