![]() |
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< ; typedef ; typedef ; // construct/copy/destruct (); (); (); template<typename YY> (quantity< , = ); template<typename YY> (quantity< , = ); template<typename Unit2, typename YY> (quantity< , = ); template<typename Unit2, typename YY> (quantity< , = ); (, ); (); template<typename YY> (quantity< ); template<typename Unit2, typename YY> (quantity< ); // private member functions (); // public member functions () ; template<typename Unit2, typename YY> (quantity< ); template<typename Unit2, typename YY> (quantity< ); template<typename Unit2, typename YY> (quantity< ); template<typename Unit2, typename YY> (quantity< ); (); (); // public static functions (); };
quantity
public
construct/copy/destruct();
();
( source);
template<typename YY> (quantity< source, = );implicit conversion between value types is allowed if allowed for value types themselves
template<typename YY> (quantity< source, = );implicit conversion between value types is not allowed if not allowed for value types themselves
template<typename Unit2, typename YY> (quantity< source, = );explicit conversion between different unit systems is allowed if implicit conversion is disallowed
template<typename Unit2, typename YY> (quantity< source, = );implicit conversion between different unit systems is allowed if each fundamental dimension is implicitly convertible
( val, );
( source);
template<typename YY> (quantity< source);implicit assignment between value types is allowed if allowed for value types themselves
template<typename Unit2, typename YY> (quantity< source);implicit assignment between different unit systems is allowed if each fundamental dimension is implicitly convertible
quantity
public member functions() ;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> (quantity< 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> (quantity< source);
template<typename Unit2, typename YY> (quantity< source);
template<typename Unit2, typename YY> (quantity< 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);