![]() |
Home | Libraries | People | FAQ | More |
boost::units::quantity — class declaration
// In header: <boost/units/quantity.hpp> template<typename Unit, typename Y> class quantity { public: // types typedef ; typedef ; typedef ; // private member functions (); // public member functions (); (); (); (); template<typename YY> (, = ); template<typename YY> (, = ); template<typename YY> (); template<typename Unit2, typename YY> (, = ); template<typename Unit2, typename YY> (, = ); template<typename Unit2, typename YY> (); () ; template<typename Unit2, typename YY> (); template<typename Unit2, typename YY> (); template<typename Unit2, typename YY> (); template<typename Unit2, typename YY> (); (); (); // public static functions (); // protected member functions (, ); };
quantity public member functions();
();
( source);
( source);
template<typename YY> ( source, = );implicit conversion between value types is allowed if allowed for value types themselves
template<typename YY> ( source, = );implicit conversion between value types is not allowed if not allowed for value types themselves
template<typename YY> ( source);implicit assignment between value types is allowed if allowed for value types themselves
template<typename Unit2, typename YY> ( source, = );explicit conversion between different unit systems is allowed if implicit conversion is disallowed
template<typename Unit2, typename YY> ( source, = );implicit conversion between different unit systems is allowed if each fundamental dimension is implicitly convertible
template<typename Unit2, typename YY> ( source);implicit assignment between different unit systems is allowed if each fundamental dimension is implicitly convertible
() ;constant accessor to value
can add a quantity of the same type if add_typeof_helper<value_type,value_type>::type is convertible to value_type
template<typename Unit2, typename YY> ( source);can subtract a quantity of the same type if subtract_typeof_helper<value_type,value_type>::type is convertible to value_type
template<typename Unit2, typename YY> ( source);
template<typename Unit2, typename YY> ( source);
template<typename Unit2, typename YY> ( source);can multiply a quantity by a scalar value_type if multiply_typeof_helper<value_type,value_type>::type is convertible to value_type
( source);can divide a quantity by a scalar value_type if divide_typeof_helper<value_type,value_type>::type is convertible to value_type
( source);
quantity public static functions( val);Construct quantity directly from
value_type (potentially dangerous).