Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class template absolute

boost::units::absolute

Synopsis

// In header: <boost/units/absolute.hpp>

template<typename Y> 
class absolute {
public:
  // types
  typedef absolute< Y > ; 
  typedef Y             ;

  // construct/copy/destruct
  ();
  (const );
  (const );
  BOOST_CXX14_CONSTEXPR  (const );

  // public member functions
  BOOST_CONSTEXPR const  () ;
  BOOST_CXX14_CONSTEXPR const  (const );
  BOOST_CXX14_CONSTEXPR const  (const );
};

Description

A wrapper to represent absolute units (points rather than vectors). Intended originally for temperatures, this class implements operators for absolute units so that addition of a relative unit to an absolute unit results in another absolute unit : absolute<T> +/- T -> absolute<T> and subtraction of one absolute unit from another results in a relative unit : absolute<T> - absolute<T> -> T.

absolute public construct/copy/destruct

  1. ();
  2. (const  val);
  3. (const  source);
  4. BOOST_CXX14_CONSTEXPR  (const  source);

absolute public member functions

  1. BOOST_CONSTEXPR const  () ;
  2. BOOST_CXX14_CONSTEXPR const  (const  val);
  3. BOOST_CXX14_CONSTEXPR const  (const  val);

PrevUpHomeNext