Namespaces: Constants, Internal, Values
Classes: OutputUnit, Prefix, Value, atto, centi, deca, deci, exa, femto, giga, hecto, kilo, mega, micro, milli, nano, peta, pico, tera, yocto, yotta, zepto, zetta
Types: Bq, C, Celsius, F, Fahrenheit, Gy, H, Hz, J, N, Ohm, Pa, S, Sv, T, Unit, Unit, V, W, Wb, acre, are, bakers_dozen, century, cl, cm, cm3, day, degree, degree_minute, degree_second, dl, dozen, foot, g, grad, hectare, hour, inch, inch2, kPa, kat, km, knot, kph, lb, liter, lm, lx, m2, m3, mach, meters_per_second, mg, mile, millennium, millibar, minute, ml, mm, mm2, mph, ms, nautical_mile, oz, percent, psi, rad, rpm, sr, tonne, week, yard, year
Functions: cos, cube, operator *, operator /, operator <<, raise, sin, sqrt, square, streamOp, tan
Functor to write Unit text to stream.
Parent class for unit prefixes.
A Value with a unit.
typedef Power < s, - 1 > Bq;
typedef Compose < s, A > C;
typedef Translate < K, - 27315, 100 > Celsius;
typedef Compose < C, Power < V, - 1 > > F;
typedef Translate < Scale < Celsius, 9, 5 >, 32 > Fahrenheit;
typedef Compose < J, Power < kg, - 1 > > Gy;
typedef Compose < Wb, Power < A, - 1 > > H;
typedef Power < s, - 1 > Hz;
typedef Compose < m, Compose < kg, Power < s, - 2 > > > N;
typedef Compose < V, Power < A, - 1 > > Ohm;
typedef Compose < N, Power < m, - 2 > > Pa;
typedef Compose < A, Power < V, - 1 > > S;
typedef Compose < Wb, Power < m, - 2 > > T;
typedef Power < Internal::None, 0 > Unit;
Construct a unit equivalent to Unit1*Unit2 Constructs a unit equivalent to U*Num/Den Constructs a Unit equivalent to U+Num/Den Constructs a Unit equivalent to U^(Num/Den) A unit which is effectively no units at all.
typedef Poco::Util::Units::Unit Unit;
typedef Compose < W, Power < A, - 1 > > V;
typedef Compose < J, Power < s, - 1 > > W;
typedef Scale < hectare, 24710538, 10000000 > acre;
typedef Scale < m2, 1, 100 > are;
typedef Scale < Unit, 1, 13 > bakers_dozen;
typedef Scale < year, 1, 100 > century;
typedef Scale < liter, 100 > cl;
typedef centi < m >::type cm;
typedef Power < cm, 3 > cm3;
typedef Scale < hour, 1, 24 > day;
typedef Scale < rad, 180000000, 3141593 > degree;
typedef Scale < degree, 60 > degree_minute;
typedef Scale < degree_minute, 60 > degree_second;
typedef Scale < liter, 10 > dl;
typedef Scale < Unit, 1, 12 > dozen;
typedef Scale < inch, 1, 12 > foot;
typedef milli < kg >::type g;
typedef Scale < rad, 200000000, 3141593 > grad;
typedef Scale < m2, 1, 10000 > hectare;
typedef Scale < minute, 1, 60 > hour;
typedef Scale < cm, 100, 254 > inch;
typedef Power < inch, 2 > inch2;
typedef Scale < Pa, 1, 1000 > kPa;
typedef Compose < Power < s, - 1 >, mol > kat;
typedef kilo < m >::type km;
typedef Compose < nautical_mile, Power < hour, - 1 > > knot;
typedef Compose < km, Power < hour, - 1 > > kph;
typedef Scale < kg, 22046223, 10000000 > lb;
typedef Scale < ml, 1, 1000 > liter;
typedef cd lm;
typedef Compose < lm, Power < m, - 2 > > lx;
typedef Power < m, 2 > m2;
typedef Power < m, 3 > m3;
typedef Scale < meters_per_second, 100, 34029 > mach;
typedef Compose < m, Power < s, - 1 > > meters_per_second;
typedef milli < g >::type mg;
typedef Scale < yard, 1, 1760 > mile;
typedef Scale < year, 1, 1000 > millennium;
typedef Scale < kPa, 10 > millibar;
typedef Scale < s, 1, 60 > minute;
typedef cm3 ml;
typedef milli < m >::type mm;
typedef Power < mm, 2 > mm2;
typedef Compose < mile, Power < hour, - 1 > > mph;
typedef milli < s >::type ms;
typedef Scale < m, 1, 1852 > nautical_mile;
typedef Scale < lb, 16 > oz;
typedef Scale < Unit, 100 > percent;
typedef Scale < kPa, 1450377, 10000000 > psi;
typedef Compose < m, Power < m, - 1 > > rad;
typedef Scale < Hz, 60 > rpm;
typedef Compose < Power < m, 2 >, Power < m, - 2 > > sr;
typedef Scale < kg, 1, 1000 > tonne;
typedef Scale < day, 1, 7 > week;
typedef Scale < inch, 1, 36 > yard;
typedef Scale < month, 1, 12 > year;
template < typename V, typename U > V cos(
const Value < V, U > & angle
);
template < typename V, typename U > Value < V, Power < U, 3, 1 > > cube(
const Value < V, U > & a
);
template < typename V, typename U > Value < V, U > operator * (
const V & a,
const Value < V, U > & b
);
template < typename V, typename U > Value < V, Power < U, - 1 > > operator / (
const V & a,
const Value < V, U > & b
);
template < typename Str, typename V, typename U > Str & operator << (
Str & os,
const Value < V, U > & value
);
Additional Units
template < typename Str > Str & operator << (
Str & os,
const Units::Prefix & val
);
Streaming operator for prefixed values.
template < int Num, int Den, typename V, typename U > Value < V, Power < U, Num, Den > > raise(
const Value < V, U > & a
);
template < typename V, typename U > V sin(
const Value < V, U > & angle
);
template < typename V, typename U > Value < V, Power < U, 1, 2 > > sqrt(
const Value < V, U > & a
);
template < typename V, typename U > Value < V, Power < U, 2, 1 > > square(
const Value < V, U > & a
);
template < typename Str > Str & streamOp(
Str & os,
const Units::Prefix & val
);
template < typename V, typename U > V tan(
const Value < V, U > & angle
);