|
| quantity () |
|
| quantity (value_type val) |
| construction from raw value_type is allowed More...
|
|
| quantity (const this_type &source) |
|
this_type & | operator= (const this_type &source) |
|
template<class YY > |
| quantity (const quantity< unit< dimension_type, system_type >, YY > &source, typename boost::enable_if< detail::is_non_narrowing_conversion< YY, Y > >::type *=0) |
| implicit conversion between value types is allowed if allowed for value types themselves More...
|
|
template<class YY > |
| quantity (const quantity< unit< dimension_type, system_type >, YY > &source, typename boost::disable_if< detail::is_non_narrowing_conversion< YY, Y > >::type *=0) |
| implicit conversion between value types is not allowed if not allowed for value types themselves More...
|
|
template<class YY > |
this_type & | operator= (const quantity< unit< dimension_type, system_type >, YY > &source) |
| implicit assignment between value types is allowed if allowed for value types themselves More...
|
|
template<class System2 , class Y2 > |
| quantity (const quantity< unit< dimensionless_type, System2 >, Y2 > &source, typename boost::enable_if< detail::is_non_narrowing_conversion< Y2, Y > >::type *=0, typename detail::disable_if_is_same< System, System2 >::type *=0, typename boost::enable_if< detail::is_dimensionless_system< System2 > >::type *=0) |
| implicit conversion between different unit systems is allowed More...
|
|
template<class System2 , class Y2 > |
| quantity (const quantity< unit< dimensionless_type, System2 >, Y2 > &source, typename boost::disable_if< detail::is_non_narrowing_conversion< Y2, Y > >::type *=0, typename detail::disable_if_is_same< System, System2 >::type *=0, typename boost::enable_if< detail::is_dimensionless_system< System2 > >::type *=0) |
| implicit conversion between different unit systems is allowed More...
|
|
template<class System2 , class Y2 > |
| quantity (const quantity< unit< dimensionless_type, System2 >, Y2 > &source, typename boost::disable_if< detail::is_dimensionless_system< System2 > >::type *=0) |
| conversion between different unit systems is explicit when the units are not equivalent. More...
|
|
template<class System2 > |
this_type & | operator= (const quantity< BOOST_UNITS_DIMENSIONLESS_UNIT(System2), Y > &source) |
| implicit assignment between different unit systems is allowed More...
|
|
| operator value_type () const |
| implicit conversion to value_type is allowed More...
|
|
const value_type & | value () const |
| constant accessor to value More...
|
|
this_type & | operator+= (const this_type &source) |
| can subtract a quantity of the same type if subtract_typeof_helper<value_type,value_type>::type is convertible to value_type More...
|
|
this_type & | operator-= (const this_type &source) |
| can multiply a quantity by a scalar value_type if multiply_typeof_helper<value_type,value_type>::type is convertible to value_type More...
|
|
this_type & | operator*= (const value_type &val) |
| can divide a quantity by a scalar value_type if divide_typeof_helper<value_type,value_type>::type is convertible to value_type More...
|
|
this_type & | operator/= (const value_type &val) |
|
template<class System, class Y>
class boost::units::quantity< BOOST_UNITS_DIMENSIONLESS_UNIT(System), Y >
Specialization for dimensionless quantities.
Implicit conversions between unit systems are allowed because all dimensionless quantities are equivalent. Implicit construction and assignment from and conversion to value_type
is also allowed.