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_type & | operator= (const this_type &source) |
| const value_type & | value () const |
| const this_type & | operator+= (const value_type &val) |
| const this_type & | operator-= (const value_type &val) |
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.
| typedef absolute<Y> boost::units::absolute< Y >::this_type |
| typedef Y boost::units::absolute< Y >::value_type |
|
inline |
|
inline |
|
inline |
|
inline |
References boost::phoenix::val().
|
inline |
References boost::phoenix::val().
|
inline |
|
inline |
Referenced by boost::units::operator+(), and boost::units::operator-().