![]() |
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 quantity< Unit, Y > ; typedef Y ; typedef Unit ; // construct/copy/destruct (); (); (const ); template<typename YY> (const quantity< Unit, YY > &, = ); template<typename YY> (const quantity< Unit, YY > &, = ); template<typename Unit2, typename YY> (const quantity< Unit2, YY > &, = ); template<typename Unit2, typename YY> (const quantity< Unit2, YY > &, = ); (const , int); BOOST_CXX14_CONSTEXPR (const ); template<typename YY> BOOST_CXX14_CONSTEXPR (const quantity< Unit, YY > &); template<typename Unit2, typename YY> BOOST_CXX14_CONSTEXPR (const quantity< Unit2, YY > &); // private member functions (); // public member functions BOOST_CONSTEXPR const () ; template<typename Unit2, typename YY> BOOST_CXX14_CONSTEXPR (const quantity< Unit2, YY > &); template<typename Unit2, typename YY> BOOST_CXX14_CONSTEXPR (const quantity< Unit2, YY > &); template<typename Unit2, typename YY> BOOST_CXX14_CONSTEXPR (const quantity< Unit2, YY > &); template<typename Unit2, typename YY> BOOST_CXX14_CONSTEXPR (const quantity< Unit2, YY > &); BOOST_CXX14_CONSTEXPR (const ); BOOST_CXX14_CONSTEXPR (const ); // public static functions BOOST_CONSTEXPR (const ); };
quantity
public
construct/copy/destruct();
();
(const source);
template<typename YY> (const quantity< Unit, YY > & source, = );implicit conversion between value types is allowed if allowed for value types themselves
template<typename YY> (const quantity< Unit, YY > & source, = );implicit conversion between value types is not allowed if not allowed for value types themselves
template<typename Unit2, typename YY> (const quantity< Unit2, YY > & source, = );explicit conversion between different unit systems is allowed if implicit conversion is disallowed
template<typename Unit2, typename YY> (const quantity< Unit2, YY > & source, = );implicit conversion between different unit systems is allowed if each fundamental dimension is implicitly convertible
(const val, int);
BOOST_CXX14_CONSTEXPR (const source);
template<typename YY> BOOST_CXX14_CONSTEXPR (const quantity< Unit, YY > & source);implicit assignment between value types is allowed if allowed for value types themselves
template<typename Unit2, typename YY> BOOST_CXX14_CONSTEXPR (const quantity< Unit2, YY > & source);implicit assignment between different unit systems is allowed if each fundamental dimension is implicitly convertible
quantity
public member functionsBOOST_CONSTEXPR const () ;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> BOOST_CXX14_CONSTEXPR (const quantity< Unit2, 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> BOOST_CXX14_CONSTEXPR (const quantity< Unit2, YY > & source);
template<typename Unit2, typename YY> BOOST_CXX14_CONSTEXPR (const quantity< Unit2, YY > & source);
template<typename Unit2, typename YY> BOOST_CXX14_CONSTEXPR (const quantity< Unit2, 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
BOOST_CXX14_CONSTEXPR (const source);can divide a quantity by a scalar value_type if divide_typeof_helper<value_type,value_type>::type is convertible to value_type
BOOST_CXX14_CONSTEXPR (const source);