INET Framework for OMNeT++/OMNEST
Units.h File Reference
#include <cmath>
#include <iostream>

Classes

struct  inet::units::internal::convert< T1, T2 >
 
struct  inet::units::internal::fixed_power< Num, Den, Div, Mod >
 
struct  inet::units::compose< Unit1, Unit2 >
 
struct  inet::units::scale< Unit, Num, Den >
 
struct  inet::units::translate< Unit, Num, Den >
 
struct  inet::units::pow< Unit, Num, Den >
 
class  inet::units::value< Value, Units >
 
struct  inet::units::internal::legacy_static_assert< bool >
 
struct  inet::units::internal::legacy_static_assert< true >
 
struct  inet::units::internal::convertible< T1, T2 >
 
struct  inet::units::internal::scaling_factor< U >
 
struct  inet::units::internal::convert3< T1, T2 >
 
struct  inet::units::internal::convert2< T1, T2 >
 
struct  inet::units::internal::convert< T1, T2 >
 
struct  inet::units::internal::convert< T, T >
 
struct  inet::units::internal::convert3< T, T >
 
struct  inet::units::internal::convert2< scale< T, Num, Den >, U >
 
struct  inet::units::internal::convert3< T, scale< U, Num, Den > >
 
struct  inet::units::internal::convert2< translate< T, Num, Den >, U >
 
struct  inet::units::internal::convert3< T, translate< U, Num, Den > >
 
struct  inet::units::internal::count_terms< Term, List >
 
struct  inet::units::internal::count_terms< Term, Term >
 
struct  inet::units::internal::count_terms< Term, scale< Unit, N, D > >
 
struct  inet::units::internal::count_terms< Term, translate< Unit, N, D > >
 
struct  inet::units::internal::count_terms< Term, compose< T1, T2 > >
 
struct  inet::units::internal::count_terms< Term, pow< Unit, N, D > >
 
struct  inet::units::internal::check_terms_equal< Term, T1, T2 >
 
struct  inet::units::internal::check_terms_equal< pow< Unit, N, D >, T1, T2 >
 
struct  inet::units::internal::check_terms_equal< scale< Unit, N, D >, T1, T2 >
 
struct  inet::units::internal::check_terms_equal< translate< Unit, N, D >, T1, T2 >
 
struct  inet::units::internal::check_terms_equal< compose< T1, T2 >, T3, T4 >
 
struct  inet::units::internal::convertible< T1, T2 >
 
struct  inet::units::internal::fixed_power< Num, Den, Div, Mod >
 
struct  inet::units::internal::fixed_power< N, D, 1, 0 >
 
struct  inet::units::internal::fixed_power< N, D, 2, 0 >
 
struct  inet::units::internal::fixed_power< N, D, 3, 0 >
 
struct  inet::units::internal::fixed_power< N, D, 4, 0 >
 
struct  inet::units::internal::fixed_power< N, D,-1, 0 >
 
struct  inet::units::internal::fixed_power< N, D,-2, 0 >
 
struct  inet::units::internal::fixed_power< N, D, 0, 0 >
 
struct  inet::units::internal::scaling_factor< U >
 
struct  inet::units::internal::scaling_factor< compose< U1, U2 > >
 
struct  inet::units::internal::scaling_factor< scale< U, N, D > >
 
struct  inet::units::internal::scaling_factor< pow< U, N, D > >
 
struct  inet::units::internal::scaling_factor< translate< U, N, D > >
 
struct  inet::units::internal::output_unit2< Unit >
 
struct  inet::units::output_unit< Unit >
 
struct  inet::units::internal::output_unit2< compose< U1, U2 > >
 
struct  inet::units::internal::output_unit2< pow< Unit, Num, Den > >
 
struct  inet::units::internal::output_unit2< translate< Unit, Num, Den > >
 
struct  inet::units::internal::output_unit2< scale< Unit, Num, Den > >
 
struct  inet::units::units::deca< Unit >
 
struct  inet::units::units::hecto< Unit >
 
struct  inet::units::units::kilo< Unit >
 
struct  inet::units::units::mega< Unit >
 
struct  inet::units::units::giga< Unit >
 
struct  inet::units::units::tera< Unit >
 
struct  inet::units::units::peta< Unit >
 
struct  inet::units::units::exa< Unit >
 
struct  inet::units::units::zetta< Unit >
 
struct  inet::units::units::yotta< Unit >
 
struct  inet::units::units::deci< Unit >
 
struct  inet::units::units::centi< Unit >
 
struct  inet::units::units::milli< Unit >
 
struct  inet::units::units::micro< Unit >
 
struct  inet::units::units::nano< Unit >
 
struct  inet::units::units::pico< Unit >
 
struct  inet::units::units::femto< Unit >
 
struct  inet::units::units::atto< Unit >
 
struct  inet::units::units::zepto< Unit >
 
struct  inet::units::units::yocto< Unit >
 

Namespaces

 inet
 Copyright (c) 2005 Jan Ringo�, www.ringos.cz.
 
 inet::units
 
 inet::units::internal
 
 inet::units::units
 
 inet::units::values
 
 inet::units::constants
 

Macros

#define UNIT_DISPLAY_NAME(unit, string)
 
#define UNITS_DISPLAY_NAME(unit, string)   namespace units { UNIT_DISPLAY_NAME(unit, string) }
 

Typedefs

typedef pow< internal::none, 0 > inet::units::unit
 
typedef ::inet::units::unit inet::units::units::unit
 
typedef compose< m, pow< m,-1 > > inet::units::units::rad
 
typedef compose< pow< m, 2 >, pow< m,-2 > > inet::units::units::sr
 
typedef pow< s,-1 > inet::units::units::Hz
 
typedef compose< m, compose< kg, pow< s,-2 > > > inet::units::units::N
 
typedef compose< N, pow< m,-2 > > inet::units::units::Pa
 
typedef compose< N, m > inet::units::units::J
 
typedef compose< J, pow< s,-1 > > inet::units::units::W
 
typedef compose< s, A > inet::units::units::C
 
typedef compose< W, pow< A,-1 > > inet::units::units::V
 
typedef compose< C, pow< V,-1 > > inet::units::units::F
 
typedef compose< V, pow< A,-1 > > inet::units::units::Ohm
 
typedef compose< Ohm, m > inet::units::units::Ohmm
 
typedef compose< A, s > inet::units::units::As
 
typedef compose< A, scale< s, 1, 3600 > > inet::units::units::Ah
 
typedef compose< A, pow< V,-1 > > inet::units::units::S
 
typedef compose< S, pow< m,-1 > > inet::units::units::Spm
 
typedef compose< V, s > inet::units::units::Wb
 
typedef compose< Wb, pow< m,-2 > > inet::units::units::T
 
typedef compose< Wb, pow< A,-1 > > inet::units::units::H
 
typedef cd inet::units::units::lm
 
typedef compose< lm, pow< m,-2 > > inet::units::units::lx
 
typedef pow< s,-1 > inet::units::units::Bq
 
typedef compose< J, pow< kg,-1 > > inet::units::units::Gy
 
typedef Gy inet::units::units::Sv
 
typedef compose< pow< s,-1 >, mol > inet::units::units::kat
 
typedef centi< m >::type inet::units::units::cm
 
typedef milli< m >::type inet::units::units::mm
 
typedef kilo< m >::type inet::units::units::km
 
typedef milli< kg >::type inet::units::units::g
 
typedef milli< g >::type inet::units::units::mg
 
typedef milli< s >::type inet::units::units::ms
 
typedef milli< W >::type inet::units::units::mW
 
typedef milli< Ah >::type inet::units::units::mAh
 
typedef kilo< Hz >::type inet::units::units::kHz
 
typedef mega< Hz >::type inet::units::units::MHz
 
typedef giga< Hz >::type inet::units::units::GHz
 
typedef scale< kg, 22046223, 10000000 > inet::units::units::lb
 
typedef scale< lb, 16 > inet::units::units::oz
 
typedef scale< kg, 1, 1000 > inet::units::units::tonne
 
typedef translate< K,-27315, 100 > inet::units::units::Celsius
 
typedef translate< scale< Celsius, 9, 5 >, 32 > inet::units::units::Fahrenheit
 
typedef scale< s, 1, 60 > inet::units::units::minute
 
typedef scale< minute, 1, 60 > inet::units::units::hour
 
typedef scale< hour, 1, 24 > inet::units::units::day
 
typedef scale< day, 1, 7 > inet::units::units::week
 
typedef scale< month, 1, 12 > inet::units::units::year
 
typedef scale< year, 1, 100 > inet::units::units::century
 
typedef scale< year, 1, 1000 > inet::units::units::millennium
 
typedef scale< cm, 100, 254 > inet::units::units::inch
 
typedef scale< inch, 1, 12 > inet::units::units::foot
 
typedef scale< inch, 1, 36 > inet::units::units::yard
 
typedef scale< yard, 1, 1760 > inet::units::units::mile
 
typedef scale< m, 1, 1852 > inet::units::units::nautical_mile
 
typedef pow< m, 2 > inet::units::units::m2
 
typedef scale< m2, 1, 10000 > inet::units::units::hectare
 
typedef scale< m2, 1, 100 > inet::units::units::are
 
typedef pow< inch, 2 > inet::units::units::inch2
 
typedef scale< hectare, 24710538, 10000000 > inet::units::units::acre
 
typedef pow< cm, 3 > inet::units::units::cm3
 
typedef cm3 inet::units::units::ml
 
typedef scale< ml, 1, 1000 > inet::units::units::liter
 
typedef scale< liter, 10 > inet::units::units::dl
 
typedef scale< liter, 100 > inet::units::units::cl
 
typedef pow< m, 3 > inet::units::units::m3
 
typedef compose< mile, pow< hour,-1 > > inet::units::units::mph
 
typedef compose< km, pow< hour,-1 > > inet::units::units::kph
 
typedef compose< m, pow< s,-1 > > inet::units::units::mps
 
typedef compose< s, pow< m,-1 > > inet::units::units::spm
 
typedef compose< nautical_mile, pow< hour,-1 > > inet::units::units::knot
 
typedef scale< mps, 100, 34029 > inet::units::units::mach
 
typedef scale< rad, 180000000, 3141593 > inet::units::units::degree
 
typedef scale< rad, 200000000, 3141593 > inet::units::units::grad
 
typedef scale< degree, 60 > inet::units::units::degree_minute
 
typedef scale< degree_minute, 60 > inet::units::units::degree_second
 
typedef scale< Pa, 1, 1000 > inet::units::units::kPa
 
typedef scale< kPa, 1450377, 10000000 > inet::units::units::psi
 
typedef scale< kPa, 10 > inet::units::units::millibar
 
typedef compose< b, pow< s,-1 > > inet::units::units::bps
 
typedef scale< bps, 1, 1000 > inet::units::units::kbps
 
typedef scale< bps, 1, 1000000 > inet::units::units::Mbps
 
typedef scale< Hz, 60 > inet::units::units::rpm
 
typedef scale< unit, 100 > inet::units::units::percent
 
typedef scale< unit, 1, 12 > inet::units::units::dozen
 
typedef scale< unit, 1, 13 > inet::units::units::bakers_dozen
 
typedef value< double, units::unit > inet::units::values::unit
 
typedef value< double, units::m > inet::units::values::m
 
typedef value< double, units::kg > inet::units::values::kg
 
typedef value< double, units::s > inet::units::values::s
 
typedef value< double, units::K > inet::units::values::K
 
typedef value< double, units::A > inet::units::values::A
 
typedef value< double, units::mol > inet::units::values::mol
 
typedef value< double, units::cd > inet::units::values::cd
 
typedef value< double, units::m > inet::units::values::b
 
typedef value< double, units::rad > inet::units::values::rad
 
typedef value< double, units::sr > inet::units::values::sr
 
typedef value< double, units::Hz > inet::units::values::Hz
 
typedef value< double, units::N > inet::units::values::N
 
typedef value< double, units::Pa > inet::units::values::Pa
 
typedef value< double, units::J > inet::units::values::J
 
typedef value< double, units::W > inet::units::values::W
 
typedef value< double, units::C > inet::units::values::C
 
typedef value< double, units::V > inet::units::values::V
 
typedef value< double, units::F > inet::units::values::F
 
typedef value< double, units::Ohm > inet::units::values::Ohm
 
typedef value< double, units::Ohmm > inet::units::values::Ohmm
 
typedef value< double, units::As > inet::units::values::As
 
typedef value< double, units::Ah > inet::units::values::Ah
 
typedef value< double, units::S > inet::units::values::S
 
typedef value< double, units::S > inet::units::values::Spm
 
typedef value< double, units::Wb > inet::units::values::Wb
 
typedef value< double, units::T > inet::units::values::T
 
typedef value< double, units::H > inet::units::values::H
 
typedef value< double, units::lm > inet::units::values::lm
 
typedef value< double, units::lx > inet::units::values::lx
 
typedef value< double, units::Bq > inet::units::values::Bq
 
typedef value< double, units::Gy > inet::units::values::Gy
 
typedef value< double, units::Sv > inet::units::values::Sv
 
typedef value< double, units::kat > inet::units::values::kat
 
typedef value< double, units::cm > inet::units::values::cm
 
typedef value< double, units::mm > inet::units::values::mm
 
typedef value< double, units::km > inet::units::values::km
 
typedef value< double, units::g > inet::units::values::g
 
typedef value< double, units::mg > inet::units::values::mg
 
typedef value< double, units::ms > inet::units::values::ms
 
typedef value< double, units::mW > inet::units::values::mW
 
typedef value< double, units::mAh > inet::units::values::mAh
 
typedef value< double, units::kHz > inet::units::values::kHz
 
typedef value< double, units::MHz > inet::units::values::MHz
 
typedef value< double, units::GHz > inet::units::values::GHz
 
typedef value< double, units::lb > inet::units::values::lb
 
typedef value< double, units::oz > inet::units::values::oz
 
typedef value< double, units::tonne > inet::units::values::tonne
 
typedef value< double, units::Celsius > inet::units::values::Celsius
 
typedef value< double, units::Fahrenheit > inet::units::values::Fahrenheit
 
typedef value< double, units::minute > inet::units::values::minute
 
typedef value< double, units::hour > inet::units::values::hour
 
typedef value< double, units::day > inet::units::values::day
 
typedef value< double, units::week > inet::units::values::week
 
typedef value< double, units::month > inet::units::values::month
 
typedef value< double, units::year > inet::units::values::year
 
typedef value< double, units::century > inet::units::values::century
 
typedef value< double, units::millennium > inet::units::values::millennium
 
typedef value< double, units::inch > inet::units::values::inch
 
typedef value< double, units::foot > inet::units::values::foot
 
typedef value< double, units::yard > inet::units::values::yard
 
typedef value< double, units::mile > inet::units::values::mile
 
typedef value< double, units::nautical_mile > inet::units::values::nautical_mile
 
typedef value< double, units::m2 > inet::units::values::m2
 
typedef value< double, units::hectare > inet::units::values::hectare
 
typedef value< double, units::are > inet::units::values::are
 
typedef value< double, units::inch2 > inet::units::values::inch2
 
typedef value< double, units::acre > inet::units::values::acre
 
typedef value< double, units::cm3 > inet::units::values::cm3
 
typedef value< double, units::ml > inet::units::values::ml
 
typedef value< double, units::cl > inet::units::values::cl
 
typedef value< double, units::liter > inet::units::values::liter
 
typedef value< double, units::dl > inet::units::values::dl
 
typedef value< double, units::m3 > inet::units::values::m3
 
typedef value< double, units::mph > inet::units::values::mph
 
typedef value< double, units::kph > inet::units::values::kph
 
typedef value< double, units::mps > inet::units::values::mps
 
typedef value< double, units::spm > inet::units::values::spm
 
typedef value< double, units::knot > inet::units::values::knot
 
typedef value< double, units::mach > inet::units::values::mach
 
typedef value< double, units::degree > inet::units::values::degree
 
typedef value< double, units::grad > inet::units::values::grad
 
typedef value< double, units::degree_minute > inet::units::values::degree_minute
 
typedef value< double, units::degree_second > inet::units::values::degree_second
 
typedef value< double, units::kPa > inet::units::values::kPa
 
typedef value< double, units::psi > inet::units::values::psi
 
typedef value< double, units::millibar > inet::units::values::millibar
 
typedef value< double, units::bps > inet::units::values::bps
 
typedef value< double, units::kbps > inet::units::values::kbps
 
typedef value< double, units::Mbps > inet::units::values::Mbps
 
typedef value< double, units::percent > inet::units::values::percent
 
typedef value< double, units::rpm > inet::units::values::rpm
 
typedef value< double, units::dozen > inet::units::values::dozen
 
typedef value< double, units::bakers_dozen > inet::units::values::bakers_dozen
 

Functions

template<typename Value , typename Unit >
value< Value, pow< Unit,-1 > > inet::units::operator/ (const Value &a, const value< Value, Unit > &b)
 
template<typename Value , typename Unit >
value< Value, Unit > inet::units::operator* (const Value &a, const value< Value, Unit > &b)
 
template<typename Value , typename Unit >
value< Value, pow< Unit, 1, 2 > > inet::units::sqrt (const value< Value, Unit > &a)
 
template<int Num, int Den, typename Value , typename Unit >
value< Value, pow< Unit, Num, Den > > inet::units::raise (const value< Value, Unit > &a)
 
 inet::units::UNIT_DISPLAY_NAME (unit,"1")
 
template<typename Value , typename Unit >
std::ostream & inet::units::operator<< (std::ostream &os, const value< Value, Unit > &value)
 
 inet::units::UNIT_DISPLAY_NAME (units::m,"m")
 
 inet::units::UNIT_DISPLAY_NAME (units::kg,"kg")
 
 inet::units::UNIT_DISPLAY_NAME (units::s,"s")
 
 inet::units::UNIT_DISPLAY_NAME (units::K,"K")
 
 inet::units::UNIT_DISPLAY_NAME (units::A,"A")
 
 inet::units::UNIT_DISPLAY_NAME (units::mol,"mol")
 
 inet::units::UNIT_DISPLAY_NAME (units::cd,"cd")
 
 inet::units::UNIT_DISPLAY_NAME (units::rad,"rad")
 
 inet::units::UNIT_DISPLAY_NAME (units::sr,"sr")
 
 inet::units::UNIT_DISPLAY_NAME (units::Hz,"Hz")
 
 inet::units::UNIT_DISPLAY_NAME (units::N,"N")
 
 inet::units::UNIT_DISPLAY_NAME (units::Pa,"Pa")
 
 inet::units::UNIT_DISPLAY_NAME (units::J,"J")
 
 inet::units::UNIT_DISPLAY_NAME (units::W,"W")
 
 inet::units::UNIT_DISPLAY_NAME (units::C,"C")
 
 inet::units::UNIT_DISPLAY_NAME (units::V,"V")
 
 inet::units::UNIT_DISPLAY_NAME (units::F,"F")
 
 inet::units::UNIT_DISPLAY_NAME (units::Ohm,"Ohm")
 
 inet::units::UNIT_DISPLAY_NAME (units::S,"S")
 
 inet::units::UNIT_DISPLAY_NAME (units::Wb,"Wb")
 
 inet::units::UNIT_DISPLAY_NAME (units::T,"T")
 
 inet::units::UNIT_DISPLAY_NAME (units::H,"H")
 
 inet::units::UNIT_DISPLAY_NAME (units::lx,"lx")
 
 inet::units::UNIT_DISPLAY_NAME (units::Gy,"Gy")
 
 inet::units::UNIT_DISPLAY_NAME (units::kat,"kat")
 
 inet::units::UNIT_DISPLAY_NAME (units::cm,"cm")
 
 inet::units::UNIT_DISPLAY_NAME (units::mm,"mm")
 
 inet::units::UNIT_DISPLAY_NAME (units::km,"km")
 
 inet::units::UNIT_DISPLAY_NAME (units::MHz,"MHz")
 
 inet::units::UNIT_DISPLAY_NAME (units::lb,"lb")
 
 inet::units::UNIT_DISPLAY_NAME (units::oz,"oz")
 
 inet::units::UNIT_DISPLAY_NAME (units::tonne,"tonnes")
 
 inet::units::UNIT_DISPLAY_NAME (units::Celsius,"'C")
 
 inet::units::UNIT_DISPLAY_NAME (units::Fahrenheit,"'F")
 
 inet::units::UNIT_DISPLAY_NAME (units::minute,"minutes")
 
 inet::units::UNIT_DISPLAY_NAME (units::hour,"hours")
 
 inet::units::UNIT_DISPLAY_NAME (units::day,"days")
 
 inet::units::UNIT_DISPLAY_NAME (units::week,"weeks")
 
 inet::units::UNIT_DISPLAY_NAME (units::month,"months")
 
 inet::units::UNIT_DISPLAY_NAME (units::year,"years")
 
 inet::units::UNIT_DISPLAY_NAME (units::century,"centuries")
 
 inet::units::UNIT_DISPLAY_NAME (units::millennium,"millennia")
 
 inet::units::UNIT_DISPLAY_NAME (units::inch,"inches")
 
 inet::units::UNIT_DISPLAY_NAME (units::foot,"foot")
 
 inet::units::UNIT_DISPLAY_NAME (units::yard,"yards")
 
 inet::units::UNIT_DISPLAY_NAME (units::mile,"miles")
 
 inet::units::UNIT_DISPLAY_NAME (units::nautical_mile,"nautical miles")
 
 inet::units::UNIT_DISPLAY_NAME (units::hectare,"ha")
 
 inet::units::UNIT_DISPLAY_NAME (units::are,"are")
 
 inet::units::UNIT_DISPLAY_NAME (units::acre,"acres")
 
 inet::units::UNIT_DISPLAY_NAME (units::ml,"ml")
 
 inet::units::UNIT_DISPLAY_NAME (units::liter,"l")
 
 inet::units::UNIT_DISPLAY_NAME (units::dl,"dl")
 
 inet::units::UNIT_DISPLAY_NAME (units::cl,"cl")
 
 inet::units::UNIT_DISPLAY_NAME (units::mph,"mph")
 
 inet::units::UNIT_DISPLAY_NAME (units::mps,"mps")
 
 inet::units::UNIT_DISPLAY_NAME (units::kph,"km/h")
 
 inet::units::UNIT_DISPLAY_NAME (units::knot,"knots")
 
 inet::units::UNIT_DISPLAY_NAME (units::mach,"mach")
 
 inet::units::UNIT_DISPLAY_NAME (units::degree,"deg")
 
 inet::units::UNIT_DISPLAY_NAME (units::grad,"grad")
 
 inet::units::UNIT_DISPLAY_NAME (units::degree_minute,"'")
 
 inet::units::UNIT_DISPLAY_NAME (units::degree_second,"\"")
 
 inet::units::UNIT_DISPLAY_NAME (units::kPa,"kPa")
 
 inet::units::UNIT_DISPLAY_NAME (units::psi,"PSI")
 
 inet::units::UNIT_DISPLAY_NAME (units::millibar,"millibars")
 
 inet::units::UNIT_DISPLAY_NAME (units::bps,"bps")
 
 inet::units::UNIT_DISPLAY_NAME (units::kbps,"kbps")
 
 inet::units::UNIT_DISPLAY_NAME (units::Mbps,"Mbps")
 
 inet::units::UNIT_DISPLAY_NAME (units::percent,"%")
 
 inet::units::UNIT_DISPLAY_NAME (units::rpm,"rpm")
 
 inet::units::UNIT_DISPLAY_NAME (units::dozen,"dozen")
 
 inet::units::UNIT_DISPLAY_NAME (units::bakers_dozen,"bakers dozen")
 
const value< double, compose< units::J, pow< units::K,-1 > > > inet::units::constants::k (1.3806504e-23)
 
const value< double, units::kg > inet::units::constants::mu (1.660538782e-27)
 
const value< double, pow< units::mol,-1 > > inet::units::constants::NA (6.02214179e23)
 
const value< double, units::s > inet::units::constants::G0 (7.7480917004e-5)
 
const value< double, compose< units::F, pow< units::m,-1 > > > inet::units::constants::e0 (8.854187817e-12)
 
const value< double, units::kg > inet::units::constants::me (9.10938215e-31)
 
const value< double, units::J > inet::units::constants::eV (1.602176487e-19)
 
const value< double, units::C > inet::units::constants::e (1.602176487e-19)
 
const value< double, units::F > inet::units::constants::F (96485.3399)
 
const value< double, units::unit > inet::units::constants::alpha (7.2973525376e-3)
 
const value< double, units::unit > inet::units::constants::inv_alpha (137.035999679)
 
const value< double, compose< units::N, pow< units::A,-2 > > > inet::units::constants::u0 (12.566370614e-7)
 
const value< double, units::Wb > inet::units::constants::phi0 (2.067833667e-15)
 
const value< double, compose< units::J, compose< pow< units::mol,-1 >, pow< units::kg,-1 > > > > inet::units::constants::R (8.314472)
 
const value< double, compose< pow< units::m, 3 >, compose< pow< units::kg,-1 >, pow< units::s,-2 > > > > inet::units::constants::G (6.67428e-11)
 
const value< double, compose< units::J, units::s > > inet::units::constants::h (6.62606896e-34)
 
const value< double, compose< units::J, units::s > > inet::units::constants::h_bar (1.054571628e-34)
 
const value< double, units::kg > inet::units::constants::mp (1.672621637e-27)
 
const value< double, unit > inet::units::constants::mpme (1836.15267247)
 
const value< double, pow< units::m,-1 > > inet::units::constants::Rinf (10973731.568527)
 
const value< double, compose< units::m, pow< units::s,-1 > > > inet::units::constants::c (299792458)
 
const value< double, compose< units::W, compose< pow< units::m,-1 >, pow< units::K,-4 > > > > inet::units::constants::rho (5.6704e-8)
 
const value< double, units::rad > inet::units::constants::pi (3.141592653589793)
 
const value< double, units::m > inet::units::constants::lightyear (9.4605284e15)
 
const value< double, compose< units::m, pow< units::s,-2 > > > inet::units::constants::g (9.80665)
 
template<typename Value , typename Unit >
Value inet::units::sin (const value< Value, Unit > &angle)
 
template<typename Value , typename Unit >
Value inet::units::cos (const value< Value, Unit > &angle)
 
template<typename Value , typename Unit >
Value inet::units::tan (const value< Value, Unit > &angle)
 

Macro Definition Documentation

#define UNIT_DISPLAY_NAME (   unit,
  string 
)
Value:
template<> struct output_unit<unit> { \
template<typename Stream> static void fn(Stream & os) { os << string; } \
};
value< double, units::unit > unit
Definition: Units.h:1044
#define UNITS_DISPLAY_NAME (   unit,
  string 
)    namespace units { UNIT_DISPLAY_NAME(unit, string) }