Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::units::absolute< Y > Singleton Reference

A wrapper to represent absolute units (points rather than vectors). More...

#include <units_fwd.hpp>

Public Types

typedef absolute< Y > this_type
 
typedef Y value_type
 

Public Member Functions

 absolute ()
 
 absolute (const value_type &val)
 
 absolute (const this_type &source)
 
this_typeoperator= (const this_type &source)
 
const value_typevalue () const
 
const this_typeoperator+= (const value_type &val)
 
const this_typeoperator-= (const value_type &val)
 

Detailed Description

template<class Y>
singleton boost::units::absolute< Y >

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.

Member Typedef Documentation

template<class Y>
typedef absolute<Y> boost::units::absolute< Y >::this_type
template<class Y>
typedef Y boost::units::absolute< Y >::value_type

Constructor & Destructor Documentation

template<class Y>
boost::units::absolute< Y >::absolute ( )
inline
template<class Y>
boost::units::absolute< Y >::absolute ( const value_type val)
inline
template<class Y>
boost::units::absolute< Y >::absolute ( const this_type source)
inline

Member Function Documentation

template<class Y>
const this_type& boost::units::absolute< Y >::operator+= ( const value_type val)
inline

References boost::phoenix::val().

template<class Y>
const this_type& boost::units::absolute< Y >::operator-= ( const value_type val)
inline

References boost::phoenix::val().

template<class Y>
this_type& boost::units::absolute< Y >::operator= ( const this_type source)
inline
template<class Y>
const value_type& boost::units::absolute< Y >::value ( ) const
inline

The documentation for this singleton was generated from the following file: