Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::units Namespace Reference

Namespaces

 abstract
 
 angle
 
 astronomical
 
 celsius
 
 cgs
 
 degree
 
 detail
 
 fahrenheit
 
 gradian
 
 imperial
 
 information
 
 metric
 
 revolution
 
 si
 
 temperature
 
 us
 

Classes

singleton  absolute
 A wrapper to represent absolute units (points rather than vectors). More...
 
struct  add_typeof_helper
 
struct  add_typeof_helper< quantity< Unit1, X >, quantity< Unit2, Y > >
 specialize add typeof helper INTERNAL ONLY More...
 
struct  add_typeof_helper< quantity< unit< Dim, System >, X >, quantity< unit< Dim, System >, Y > >
 
struct  add_typeof_helper< quantity< unit< Dim1, System1 >, X >, quantity< unit< Dim2, System2 >, Y > >
 for sun CC we need to invoke SFINAE at the top level, otherwise it will silently return int. More...
 
struct  add_typeof_helper< unit< Dim, System >, unit< Dim, System > >
 unit add typeof helper INTERNAL ONLY More...
 
struct  amount_base_dimension
 base dimension of amount More...
 
struct  autoprefix_norm_impl
 
struct  autoprefix_norm_impl< T, false >
 
struct  autoprefix_norm_impl< T, true >
 
class  base_dimension
 Defines a base dimension. More...
 
struct  base_dimension_ordinal
 This must be in namespace boost::units so that ADL will work with friend functions defined inline. More...
 
struct  base_dimension_pair
 INTERNAL ONLY. More...
 
class  base_unit
 Defines a base unit. More...
 
struct  base_unit_info
 traits template for unit names. More...
 
struct  base_unit_info< abstract::amount_unit_tag >
 
struct  base_unit_info< abstract::current_unit_tag >
 
struct  base_unit_info< abstract::length_unit_tag >
 
struct  base_unit_info< abstract::luminous_intensity_unit_tag >
 
struct  base_unit_info< abstract::mass_unit_tag >
 
struct  base_unit_info< abstract::plane_angle_unit_tag >
 
struct  base_unit_info< abstract::solid_angle_unit_tag >
 
struct  base_unit_info< abstract::temperature_unit_tag >
 
struct  base_unit_info< abstract::time_unit_tag >
 
struct  base_unit_info< angle::arcminute_base_unit >
 
struct  base_unit_info< angle::arcsecond_base_unit >
 
struct  base_unit_info< angle::revolution_base_unit >
 
struct  base_unit_info< astronomical::light_day_base_unit >
 
struct  base_unit_info< astronomical::light_hour_base_unit >
 
struct  base_unit_info< astronomical::light_minute_base_unit >
 
struct  base_unit_info< astronomical::light_year_base_unit >
 
struct  base_unit_info< imperial::drachm_base_unit >
 
struct  base_unit_info< imperial::fluid_ounce_base_unit >
 
struct  base_unit_info< imperial::foot_base_unit >
 
struct  base_unit_info< imperial::furlong_base_unit >
 
struct  base_unit_info< imperial::gallon_base_unit >
 
struct  base_unit_info< imperial::gill_base_unit >
 
struct  base_unit_info< imperial::grain_base_unit >
 
struct  base_unit_info< imperial::hundredweight_base_unit >
 
struct  base_unit_info< imperial::inch_base_unit >
 
struct  base_unit_info< imperial::league_base_unit >
 
struct  base_unit_info< imperial::mile_base_unit >
 
struct  base_unit_info< imperial::ounce_base_unit >
 
struct  base_unit_info< imperial::quart_base_unit >
 
struct  base_unit_info< imperial::quarter_base_unit >
 
struct  base_unit_info< imperial::stone_base_unit >
 
struct  base_unit_info< imperial::thou_base_unit >
 
struct  base_unit_info< imperial::ton_base_unit >
 
struct  base_unit_info< information::byte_base_unit >
 
struct  base_unit_info< information::shannon_base_unit >
 
struct  base_unit_info< metric::angstrom_base_unit >
 
struct  base_unit_info< metric::day_base_unit >
 
struct  base_unit_info< metric::fermi_base_unit >
 
struct  base_unit_info< metric::hour_base_unit >
 
struct  base_unit_info< metric::micron_base_unit >
 
struct  base_unit_info< metric::minute_base_unit >
 
struct  base_unit_info< metric::nautical_mile_base_unit >
 
struct  base_unit_info< metric::ton_base_unit >
 
struct  base_unit_info< metric::year_base_unit >
 
struct  base_unit_info< us::cup_base_unit >
 
struct  base_unit_info< us::dram_base_unit >
 
struct  base_unit_info< us::fluid_dram_base_unit >
 
struct  base_unit_info< us::fluid_ounce_base_unit >
 
struct  base_unit_info< us::foot_base_unit >
 
struct  base_unit_info< us::gallon_base_unit >
 
struct  base_unit_info< us::gill_base_unit >
 
struct  base_unit_info< us::grain_base_unit >
 
struct  base_unit_info< us::hundredweight_base_unit >
 
struct  base_unit_info< us::inch_base_unit >
 
struct  base_unit_info< us::mil_base_unit >
 
struct  base_unit_info< us::mile_base_unit >
 
struct  base_unit_info< us::minim_base_unit >
 
struct  base_unit_info< us::ounce_base_unit >
 
struct  base_unit_info< us::quart_base_unit >
 
struct  base_unit_info< us::tablespoon_base_unit >
 
struct  base_unit_info< us::teaspoon_base_unit >
 
struct  base_unit_info< us::ton_base_unit >
 
struct  base_unit_ordinal
 This must be in namespace boost::units so that ADL will work with friend functions defined inline. More...
 
struct  base_unit_pair
 INTERNAL ONLY. More...
 
struct  check_base_dimension
 INTERNAL ONLY. More...
 
struct  check_base_unit
 INTERNAL ONLY. More...
 
struct  conversion_helper
 
struct  current_base_dimension
 base dimension of current More...
 
struct  derived_dimension
 A utility class for defining composite dimensions with integer powers. More...
 
struct  derived_dimension< DT1, E1, dimensionless_type, 0, dimensionless_type, 0, dimensionless_type, 0, dimensionless_type, 0, dimensionless_type, 0, dimensionless_type, 0, dimensionless_type, 0 >
 INTERNAL ONLY. More...
 
struct  derived_dimension< DT1, E1, DT2, E2, dimensionless_type, 0, dimensionless_type, 0, dimensionless_type, 0, dimensionless_type, 0, dimensionless_type, 0, dimensionless_type, 0 >
 INTERNAL ONLY. More...
 
struct  derived_dimension< DT1, E1, DT2, E2, DT3, E3, dimensionless_type, 0, dimensionless_type, 0, dimensionless_type, 0, dimensionless_type, 0, dimensionless_type, 0 >
 INTERNAL ONLY. More...
 
struct  derived_dimension< DT1, E1, DT2, E2, DT3, E3, DT4, E4, dimensionless_type, 0, dimensionless_type, 0, dimensionless_type, 0, dimensionless_type, 0 >
 INTERNAL ONLY. More...
 
struct  derived_dimension< DT1, E1, DT2, E2, DT3, E3, DT4, E4, DT5, E5, dimensionless_type, 0, dimensionless_type, 0, dimensionless_type, 0 >
 INTERNAL ONLY. More...
 
struct  derived_dimension< DT1, E1, DT2, E2, DT3, E3, DT4, E4, DT5, E5, DT6, E6, dimensionless_type, 0, dimensionless_type, 0 >
 INTERNAL ONLY. More...
 
struct  derived_dimension< DT1, E1, DT2, E2, DT3, E3, DT4, E4, DT5, E5, DT6, E6, DT7, E7, dimensionless_type, 0 >
 INTERNAL ONLY. More...
 
struct  dim
 Dimension tag/exponent pair for a single fundamental dimension. More...
 
struct  dimensionless_quantity
 Utility class to simplify construction of dimensionless quantities. More...
 
struct  dimensionless_type
 Dimension lists in which all exponents resolve to zero reduce to dimensionless_type. More...
 
struct  dimensionless_unit
 Utility class to simplify construction of dimensionless units in a system. More...
 
struct  divide_typeof_helper
 
struct  divide_typeof_helper< boost::lambda::lambda_functor< Arg >, boost::units::unit< Dim, System > >
 
struct  divide_typeof_helper< boost::units::unit< Dim, System >, boost::lambda::lambda_functor< Arg > >
 
struct  divide_typeof_helper< one, quantity< Unit, Y > >
 disambiguate INTERNAL ONLY More...
 
struct  divide_typeof_helper< quantity< Unit, X >, one >
 disambiguate INTERNAL ONLY More...
 
struct  divide_typeof_helper< quantity< Unit, X >, unit< Dim, System > >
 quantity divided by unit typeof helper INTERNAL ONLY More...
 
struct  divide_typeof_helper< quantity< Unit, X >, Y >
 quantity divided by scalar typeof helper INTERNAL ONLY More...
 
struct  divide_typeof_helper< quantity< Unit1, X >, quantity< Unit2, Y > >
 quantity divided by quantity typeof helper INTERNAL ONLY More...
 
struct  divide_typeof_helper< unit< Dim, System >, quantity< Unit, X > >
 unit divided by quantity typeof helper INTERNAL ONLY More...
 
struct  divide_typeof_helper< unit< Dim, System >, X >
 unit divided by scalar typeof helper INTERNAL ONLY More...
 
struct  divide_typeof_helper< unit< Dim1, heterogeneous_system< System1 > >, unit< Dim2, heterogeneous_system< System2 > > >
 unit divide typeof helper for two heterogeneous systems INTERNAL ONLY More...
 
struct  divide_typeof_helper< unit< Dim1, heterogeneous_system< System1 > >, unit< Dim2, homogeneous_system< System2 > > >
 unit divide typeof helper for a heterogeneous and a homogeneous system INTERNAL ONLY More...
 
struct  divide_typeof_helper< unit< Dim1, homogeneous_system< System > >, unit< Dim2, homogeneous_system< System > > >
 unit divide typeof helper for two identical homogeneous systems INTERNAL ONLY More...
 
struct  divide_typeof_helper< unit< Dim1, homogeneous_system< System1 > >, unit< Dim2, heterogeneous_system< System2 > > >
 unit divide typeof helper for a homogeneous and a heterogeneous system INTERNAL ONLY More...
 
struct  divide_typeof_helper< unit< Dim1, homogeneous_system< System1 > >, unit< Dim2, homogeneous_system< System2 > > >
 unit divide typeof helper for two different homogeneous systems INTERNAL ONLY More...
 
struct  divide_typeof_helper< X, quantity< Unit, Y > >
 scalar divided by quantity typeof helper INTERNAL ONLY More...
 
struct  divide_typeof_helper< X, unit< Dim, System > >
 scalar divided by unit typeof helper INTERNAL ONLY More...
 
struct  get_dimension
 
struct  get_dimension< absolute< Unit > >
 Get the dimension of an absolute unit. More...
 
struct  get_dimension< quantity< Unit, Y > >
 Get the dimension of a quantity. More...
 
struct  get_dimension< unit< Dim, System > >
 Get the dimension of a unit. More...
 
struct  get_scale_list< heterogeneous_system< T > >
 INTERNAL ONLY. More...
 
struct  get_scale_list< heterogeneous_system_dim< Unit, Exponent > >
 INTERNAL ONLY. More...
 
struct  get_system
 
struct  get_system< absolute< Unit > >
 Get the system of an absolute unit. More...
 
struct  get_system< quantity< Unit, Y > >
 Get the system of a quantity. More...
 
struct  get_system< unit< Dim, System > >
 Get the system of a unit. More...
 
struct  heterogeneous_system
 A system that can represent any possible combination of units at the expense of not preserving information about how it was created. More...
 
struct  heterogeneous_system_dim
 INTERNAL ONLY. More...
 
struct  heterogeneous_system_dim_tag
 INTERNAL ONLY. More...
 
struct  heterogeneous_system_impl
 INTERNAL ONLY. More...
 
struct  homogeneous_system
 A system that can uniquely represent any unit which can be composed from a linearly independent set of base units. More...
 
struct  information_base_dimension
 base dimension of information More...
 
struct  is_dim
 Check that a type is a valid dim. More...
 
struct  is_dim< dim< T, V > >
 
struct  is_dimension_list
 Check that a type is a valid dimension list. More...
 
struct  is_dimension_list< dimensionless_type >
 
struct  is_dimension_list< list< Item, Next > >
 
struct  is_dimensionless
 
struct  is_dimensionless< quantity< Unit, Y > >
 Check if a quantity is dimensionless. More...
 
struct  is_dimensionless< unit< dimensionless_type, System > >
 Check if a unit is dimensionless. More...
 
struct  is_dimensionless_quantity
 Check that a type is a dimensionless quantity. More...
 
struct  is_dimensionless_unit
 Check that a type is a dimensionless unit. More...
 
struct  is_implicitly_convertible
 INTERNAL ONLY. More...
 
struct  is_quantity
 Check that a type is a quantity. More...
 
struct  is_quantity< quantity< Unit, Y > >
 
struct  is_quantity_of_dimension
 Check that a type is a quantity of the specified dimension. More...
 
struct  is_quantity_of_dimension< quantity< Unit, Y >, Dim >
 
struct  is_quantity_of_system
 Check that a type is a quantity in a specified system. More...
 
struct  is_quantity_of_system< quantity< Unit, Y >, System >
 
struct  is_unit
 Check that a type is a unit. More...
 
struct  is_unit< unit< Dim, System > >
 
struct  is_unit_of_dimension
 Check that a type is a unit of the specified dimension. More...
 
struct  is_unit_of_dimension< absolute< unit< Dim, System > >, Dim >
 
struct  is_unit_of_dimension< unit< Dim, System >, Dim >
 
struct  is_unit_of_system
 Check that a type is a unit in a specified system. More...
 
struct  is_unit_of_system< absolute< unit< Dim, System > >, System >
 
struct  is_unit_of_system< unit< Dim, System >, System >
 
struct  length_base_dimension
 base dimension of length More...
 
struct  list
 
struct  luminous_intensity_base_dimension
 base dimension of luminous intensity More...
 
struct  make_dimension_list
 Reduce dimension list to cardinal form. More...
 
struct  make_scaled_unit
 
struct  make_scaled_unit< unit< Dimension, heterogeneous_system< heterogeneous_system_impl< UnitList, Dimension, OldScale > > >, Scale >
 
struct  make_scaled_unit< unit< Dimension, heterogeneous_system< heterogeneous_system_impl< UnitList, Dimension, OldScale > > >, scale< Base, static_rational< 0 > > >
 
struct  make_system
 
struct  make_system< T0, na, na, na, na, na, na, na, na, na >
 
struct  make_system< T0, T1, na, na, na, na, na, na, na, na >
 
struct  make_system< T0, T1, T2, na, na, na, na, na, na, na >
 
struct  make_system< T0, T1, T2, T3, na, na, na, na, na, na >
 
struct  make_system< T0, T1, T2, T3, T4, na, na, na, na, na >
 
struct  make_system< T0, T1, T2, T3, T4, T5, na, na, na, na >
 
struct  make_system< T0, T1, T2, T3, T4, T5, T6, na, na, na >
 
struct  make_system< T0, T1, T2, T3, T4, T5, T6, T7, na, na >
 
struct  make_system< T0, T1, T2, T3, T4, T5, T6, T7, T8, na >
 
struct  make_system<>
 
struct  mass_base_dimension
 base dimension of mass More...
 
struct  multiply_typeof_helper
 
struct  multiply_typeof_helper< boost::lambda::lambda_functor< Arg >, boost::units::absolute< boost::units::unit< Dim, System > > >
 
struct  multiply_typeof_helper< boost::lambda::lambda_functor< Arg >, boost::units::unit< Dim, System > >
 
struct  multiply_typeof_helper< boost::units::absolute< boost::units::unit< Dim, System > >, boost::lambda::lambda_functor< Arg > >
 
struct  multiply_typeof_helper< boost::units::unit< Dim, System >, boost::lambda::lambda_functor< Arg > >
 
struct  multiply_typeof_helper< one, quantity< Unit, Y > >
 disambiguate INTERNAL ONLY More...
 
struct  multiply_typeof_helper< quantity< Unit, X >, one >
 disambiguate INTERNAL ONLY More...
 
struct  multiply_typeof_helper< quantity< Unit, X >, unit< Dim, System > >
 quantity times unit typeof helper INTERNAL ONLY More...
 
struct  multiply_typeof_helper< quantity< Unit, X >, Y >
 quantity times scalar typeof helper INTERNAL ONLY More...
 
struct  multiply_typeof_helper< quantity< Unit1, X >, quantity< Unit2, Y > >
 quantity times quantity typeof helper INTERNAL ONLY More...
 
struct  multiply_typeof_helper< unit< Dim, System >, quantity< Unit, X > >
 unit times quantity typeof helper INTERNAL ONLY More...
 
struct  multiply_typeof_helper< unit< Dim, System >, X >
 unit times scalar typeof helper INTERNAL ONLY More...
 
struct  multiply_typeof_helper< unit< Dim1, heterogeneous_system< System1 > >, unit< Dim2, heterogeneous_system< System2 > > >
 unit multiply typeof helper for two heterogeneous systems INTERNAL ONLY More...
 
struct  multiply_typeof_helper< unit< Dim1, heterogeneous_system< System1 > >, unit< Dim2, homogeneous_system< System2 > > >
 unit multiply typeof helper for a heterogeneous and a homogeneous system INTERNAL ONLY More...
 
struct  multiply_typeof_helper< unit< Dim1, homogeneous_system< System > >, unit< Dim2, homogeneous_system< System > > >
 unit multiply typeof helper for two identical homogeneous systems INTERNAL ONLY More...
 
struct  multiply_typeof_helper< unit< Dim1, homogeneous_system< System1 > >, unit< Dim2, heterogeneous_system< System2 > > >
 unit multiply typeof helper for a homogeneous and a heterogeneous system INTERNAL ONLY More...
 
struct  multiply_typeof_helper< unit< Dim1, homogeneous_system< System1 > >, unit< Dim2, homogeneous_system< System2 > > >
 unit multiply typeof helper for two different homogeneous systems INTERNAL ONLY More...
 
struct  multiply_typeof_helper< X, quantity< Unit, Y > >
 scalar times quantity typeof helper INTERNAL ONLY More...
 
struct  multiply_typeof_helper< X, unit< Dim, System > >
 scalar times unit typeof helper INTERNAL ONLY More...
 
struct  na
 
struct  plane_angle_base_dimension
 base dimension of plane angle More...
 
struct  power_typeof_helper
 
struct  power_typeof_helper< float, static_rational< N, D > >
 raise float to a static_rational power. More...
 
struct  power_typeof_helper< quantity< Unit, Y >, static_rational< N, D > >
 specialize power typeof helper INTERNAL ONLY More...
 
struct  power_typeof_helper< T, static_rational< N, D > >
 raise T to a static_rational power. More...
 
struct  power_typeof_helper< unit< Dim, System >, static_rational< N, D > >
 raise unit to a static_rational power More...
 
singleton  quantity
 class declaration More...
 
class  quantity< BOOST_UNITS_DIMENSIONLESS_UNIT(System), Y >
 Specialization for dimensionless quantities. More...
 
struct  reduce_unit
 
struct  reduce_unit< unit< Dim, System > >
 Returns a unique type for every unit. More...
 
struct  root_typeof_helper
 
struct  root_typeof_helper< quantity< Unit, Y >, static_rational< N, D > >
 specialize root typeof helper INTERNAL ONLY More...
 
struct  root_typeof_helper< T, static_rational< N, D > >
 take static_rational root of an T More...
 
struct  root_typeof_helper< unit< Dim, System >, static_rational< N, D > >
 take the static_rational root of a unit More...
 
struct  scale
 class representing a scaling factor such as 10^3 The exponent must be a static rational. More...
 
struct  scale< 10, static_rational< -1 > >
 
struct  scale< 10, static_rational< -12 > >
 
struct  scale< 10, static_rational< -15 > >
 
struct  scale< 10, static_rational< -18 > >
 
struct  scale< 10, static_rational< -2 > >
 
struct  scale< 10, static_rational< -21 > >
 
struct  scale< 10, static_rational< -24 > >
 
struct  scale< 10, static_rational< -3 > >
 
struct  scale< 10, static_rational< -6 > >
 
struct  scale< 10, static_rational< -9 > >
 
struct  scale< 10, static_rational< 1 > >
 
struct  scale< 10, static_rational< 12 > >
 
struct  scale< 10, static_rational< 15 > >
 
struct  scale< 10, static_rational< 18 > >
 
struct  scale< 10, static_rational< 2 > >
 
struct  scale< 10, static_rational< 21 > >
 
struct  scale< 10, static_rational< 24 > >
 
struct  scale< 10, static_rational< 3 > >
 
struct  scale< 10, static_rational< 6 > >
 
struct  scale< 10, static_rational< 9 > >
 
struct  scale< 2, static_rational< 10 > >
 
struct  scale< 2, static_rational< 20 > >
 
struct  scale< 2, static_rational< 30 > >
 
struct  scale< 2, static_rational< 40 > >
 
struct  scale< 2, static_rational< 50 > >
 
struct  scale< 2, static_rational< 60 > >
 
struct  scale< 2, static_rational< 70 > >
 
struct  scale< 2, static_rational< 80 > >
 
struct  scale< Base, static_rational< 0 > >
 INTERNAL ONLY. More...
 
struct  scaled_base_unit
 
struct  scaled_base_unit_tag
 INTERNAL ONLY. More...
 
struct  solid_angle_base_dimension
 base dimension of solid angle More...
 
struct  static_abs
 Compile time absolute value. More...
 
struct  static_power
 Raise a dimension list to a scalar power. More...
 
struct  static_power< heterogeneous_system< S >, static_rational< N, D > >
 INTERNAL ONLY. More...
 
struct  static_power< homogeneous_system< L >, static_rational< N, D > >
 INTERNAL ONLY. More...
 
class  static_rational
 This is an implementation of a compile time rational number, where static_rational<N,D> represents a rational number with numerator N and denominator D. More...
 
struct  static_root
 Take a scalar root of a dimension list. More...
 
struct  static_root< heterogeneous_system< S >, static_rational< N, D > >
 INTERNAL ONLY. More...
 
struct  static_root< homogeneous_system< L >, static_rational< N, D > >
 INTERNAL ONLY. More...
 
struct  subtract_typeof_helper
 
struct  subtract_typeof_helper< quantity< Unit1, X >, quantity< Unit2, Y > >
 specialize subtract typeof helper INTERNAL ONLY More...
 
struct  subtract_typeof_helper< quantity< unit< Dim, System >, X >, quantity< unit< Dim, System >, Y > >
 
struct  subtract_typeof_helper< quantity< unit< Dim1, System1 >, X >, quantity< unit< Dim2, System2 >, Y > >
 
struct  subtract_typeof_helper< unit< Dim, System >, unit< Dim, System > >
 unit subtract typeof helper INTERNAL ONLY More...
 
struct  temperature_base_dimension
 base dimension of temperature More...
 
struct  time_base_dimension
 base dimension of time More...
 
struct  unary_minus_typeof_helper
 
struct  unary_minus_typeof_helper< quantity< Unit, Y > >
 specialize unary minus typeof helper INTERNAL ONLY More...
 
struct  unary_minus_typeof_helper< unit< Dim, System > >
 unit unary minus typeof helper INTERNAL ONLY More...
 
struct  unary_plus_typeof_helper
 
struct  unary_plus_typeof_helper< quantity< Unit, Y > >
 specialize unary plus typeof helper INTERNAL ONLY More...
 
struct  unary_plus_typeof_helper< unit< Dim, System > >
 unit unary plus typeof helper INTERNAL ONLY More...
 
singleton  unit
 class representing a model-dependent unit with no associated value More...
 
struct  unscale< heterogeneous_system< T > >
 Unscale all the base units. More...
 
struct  unscale< heterogeneous_system_dim< Unit, Exponent > >
 INTERNAL ONLY. More...
 

Typedefs

typedef dimensionless_type no_scale
 INTERNAL ONLY. More...
 
typedef derived_dimension
< length_base_dimension,
2, time_base_dimension,-2 >
::type 
absorbed_dose_dimension
 derived dimension for absorbed dose : L^2 T^-2 More...
 
typedef derived_dimension
< length_base_dimension,
1, time_base_dimension,-2 >
::type 
acceleration_dimension
 derived dimension for acceleration : L T^-2 More...
 
typedef derived_dimension
< length_base_dimension,
2, mass_base_dimension,
1, time_base_dimension,-1 >
::type 
action_dimension
 derived dimension for action : L^2 M T^-1 More...
 
typedef derived_dimension
< time_base_dimension,-1 >
::type 
activity_dimension
 derived dimension for activity : T^-1 More...
 
typedef
amount_base_dimension::dimension_type 
amount_dimension
 dimension of amount of substance (N) More...
 
typedef derived_dimension
< time_base_dimension,-2,
plane_angle_base_dimension, 1 >
::type 
angular_acceleration_dimension
 derived dimension for angular acceleration : T^-2 QP More...
 
typedef derived_dimension
< length_base_dimension,
2, mass_base_dimension,
1, time_base_dimension,-1,
plane_angle_base_dimension,-1 >
::type 
angular_momentum_dimension
 derived dimension for angular momentum : L^2 M T^-1 QP^-1 More...
 
typedef derived_dimension
< time_base_dimension,-1,
plane_angle_base_dimension, 1 >
::type 
angular_velocity_dimension
 derived dimension for angular velocity : T^-1 QP More...
 
typedef derived_dimension
< length_base_dimension, 2 >
::type 
area_dimension
 derived dimension for area : L^2 More...
 
typedef derived_dimension
< length_base_dimension,-2,
mass_base_dimension,-1,
time_base_dimension,
4, current_base_dimension, 2 >
::type 
capacitance_dimension
 derived dimension for capacitance : L^-2 M^-1 T^4 I^2 More...
 
typedef derived_dimension
< length_base_dimension,-2,
mass_base_dimension,-1,
time_base_dimension,
3, current_base_dimension, 2 >
::type 
conductance_dimension
 derived dimension for conductance : L^-2 M^-1 T^3 I^2 More...
 
typedef derived_dimension
< length_base_dimension,-3,
mass_base_dimension,-1,
time_base_dimension,
3, current_base_dimension, 2 >
::type 
conductivity_dimension
 derived dimension for conductivity : L^-3 M^-1 T^3 I^2 More...
 
typedef
current_base_dimension::dimension_type 
current_dimension
 dimension of electric current (I) More...
 
typedef derived_dimension
< length_base_dimension,
2, time_base_dimension,-2 >
::type 
dose_equivalent_dimension
 derived dimension for dose equivalent : L^2 T^-2 More...
 
typedef derived_dimension
< mass_base_dimension,
1, length_base_dimension,-1,
time_base_dimension,-1 >::type 
dynamic_viscosity_dimension
 derived dimension for dynamic viscosity : M L^-1 T^-1 More...
 
typedef derived_dimension
< time_base_dimension,
1, current_base_dimension, 1 >
::type 
electric_charge_dimension
 derived dimension for electric charge : T^1 I^1 More...
 
typedef derived_dimension
< length_base_dimension,
2, mass_base_dimension,
1, time_base_dimension,-3,
current_base_dimension,-1 >
::type 
electric_potential_dimension
 derived dimension for electric potential : L^2 M T^-3 I^-1 More...
 
typedef derived_dimension
< length_base_dimension,
2, mass_base_dimension,
1, time_base_dimension,-2 >
::type 
energy_dimension
 derived dimension for energy : L^2 M T^-2 More...
 
typedef derived_dimension
< length_base_dimension,-1,
mass_base_dimension,
1, time_base_dimension,-2 >
::type 
energy_density_dimension
 derived dimension for energy density : L^-1 M^1 T^-2 More...
 
typedef derived_dimension
< length_base_dimension,
1, mass_base_dimension,
1, time_base_dimension,-2 >
::type 
force_dimension
 derived dimension for force : L M T^-2 More...
 
typedef derived_dimension
< time_base_dimension,-1 >
::type 
frequency_dimension
 derived dimension for frequency : T^-1 More...
 
typedef derived_dimension
< length_base_dimension,
2, mass_base_dimension,
1, time_base_dimension,-2,
temperature_base_dimension,-1 >
::type 
heat_capacity_dimension
 derived dimension for heat capacity : L^2 M T^-2 Theta^-1 More...
 
typedef derived_dimension
< length_base_dimension,-2,
luminous_intensity_base_dimension,
1, solid_angle_base_dimension, 1 >
::type 
illuminance_dimension
 derived dimension for illuminance : L^-2 I QS More...
 
typedef derived_dimension
< length_base_dimension,
2, mass_base_dimension,
1, time_base_dimension,-3,
current_base_dimension,-2 >
::type 
impedance_dimension
 derived dimension for impedance : L^2 M T^-3 I^-2 More...
 
typedef derived_dimension
< length_base_dimension,
2, mass_base_dimension,
1, time_base_dimension,-2,
current_base_dimension,-2 >
::type 
inductance_dimension
 derived dimension for inductance : L^2 M T^-2 I^-2 More...
 
typedef
information_base_dimension::dimension_type 
information_dimension
 dimension of information More...
 
typedef derived_dimension
< length_base_dimension,
2, time_base_dimension,-1 >
::type 
kinematic_viscosity_dimension
 derived dimension for kinematic viscosity : L^2 T^-1 More...
 
typedef
length_base_dimension::dimension_type 
length_dimension
 dimension of length (L) More...
 
typedef derived_dimension
< length_base_dimension,-2,
luminous_intensity_base_dimension, 1 >
::type 
luminance_dimension
 derived dimension for luminance : L^-2 I More...
 
typedef derived_dimension
< luminous_intensity_base_dimension,
1, solid_angle_base_dimension, 1 >
::type 
luminous_flux_dimension
 derived dimension for luminous flux : I QS More...
 
typedef
luminous_intensity_base_dimension::dimension_type 
luminous_intensity_dimension
 dimension of luminous intensity (J) More...
 
typedef derived_dimension
< length_base_dimension,-1,
current_base_dimension, 1 >
::type 
magnetic_field_intensity_dimension
 derived dimension for magnetic field intensity : L^-1 I More...
 
typedef derived_dimension
< length_base_dimension,
2, mass_base_dimension,
1, time_base_dimension,-2,
current_base_dimension,-1 >
::type 
magnetic_flux_dimension
 derived dimension for magnetic flux : L^2 M T^-2 I^-1 More...
 
typedef derived_dimension
< mass_base_dimension,
1, time_base_dimension,-2,
current_base_dimension,-1 >
::type 
magnetic_flux_density_dimension
 derived dimension for magnetic flux density : M T^-2 I^-1 More...
 
typedef
mass_base_dimension::dimension_type 
mass_dimension
 dimension of mass (M) More...
 
typedef derived_dimension
< length_base_dimension,-3,
mass_base_dimension, 1 >::type 
mass_density_dimension
 derived dimension for mass density : L^-3 M More...
 
typedef derived_dimension
< length_base_dimension,
2, mass_base_dimension,
1, time_base_dimension,-2,
amount_base_dimension,-1 >
::type 
molar_energy_dimension
 derived dimension for molar energy : L^2 M T^-2 N^-1 More...
 
typedef derived_dimension
< length_base_dimension,
2, mass_base_dimension,
1, time_base_dimension,-2,
temperature_base_dimension,-1,
amount_base_dimension,-1 >
::type 
molar_heat_capacity_dimension
 derived dimension for molar heat capacity : L^2 M T^-2 Theta^-1 N^-1 More...
 
typedef derived_dimension
< length_base_dimension,
2, mass_base_dimension,
1, plane_angle_base_dimension,-2 >
::type 
moment_of_inertia_dimension
 derived dimension for moment of inertia : L^2 M QP^-2 More...
 
typedef derived_dimension
< length_base_dimension,
1, mass_base_dimension,
1, time_base_dimension,-1 >
::type 
momentum_dimension
 derived dimension for linear momentum : L M T^-1 More...
 
typedef derived_dimension
< length_base_dimension,
1, mass_base_dimension,
1, time_base_dimension,-2,
current_base_dimension,-2 >
::type 
permeability_dimension
 derived dimension for permeability : L M T^-2 I^-2 More...
 
typedef derived_dimension
< length_base_dimension,-3,
mass_base_dimension,-1,
time_base_dimension,
4, current_base_dimension, 2 >
::type 
permittivity_dimension
 derived dimension for permittivity : L^-3 M^-1 T^4 I^2 More...
 
typedef
plane_angle_base_dimension::dimension_type 
plane_angle_dimension
 base dimension of plane angle (QP) More...
 
typedef derived_dimension
< length_base_dimension,
2, mass_base_dimension,
1, time_base_dimension,-3 >
::type 
power_dimension
 derived dimension for power : L^2 M T^-3 More...
 
typedef derived_dimension
< length_base_dimension,-1,
mass_base_dimension,
1, time_base_dimension,-2 >
::type 
pressure_dimension
 derived dimension for pressure : L^-1 M T^-2 More...
 
typedef derived_dimension
< length_base_dimension,-2,
mass_base_dimension,-1,
time_base_dimension,
2, current_base_dimension, 2 >
::type 
reluctance_dimension
 derived dimension for reluctance : L^-2 M^-1 T^2 I^2 More...
 
typedef derived_dimension
< length_base_dimension,
2, mass_base_dimension,
1, time_base_dimension,-3,
current_base_dimension,-2 >
::type 
resistance_dimension
 derived dimension for resistance : L^2 M T^-3 I^-2 More...
 
typedef derived_dimension
< length_base_dimension,
3, mass_base_dimension,
1, time_base_dimension,-3,
current_base_dimension,-2 >
::type 
resistivity_dimension
 derived dimension for resistivity : L^3 M T^-3 I^-2 More...
 
typedef
solid_angle_base_dimension::dimension_type 
solid_angle_dimension
 base dimension of solid angle (QS) More...
 
typedef derived_dimension
< length_base_dimension,
2, time_base_dimension,-2 >
::type 
specific_energy_dimension
 derived dimension for specific energy : L^2 T^-2 More...
 
typedef derived_dimension
< length_base_dimension,
2, time_base_dimension,-2,
temperature_base_dimension,-1 >
::type 
specific_heat_capacity_dimension
 derived dimension for specific heat capacity : L^2 T^-2 Theta^-1 More...
 
typedef derived_dimension
< length_base_dimension,
3, mass_base_dimension,-1 >
::type 
specific_volume_dimension
 derived dimension for specific volume : L^3 M^-1 More...
 
typedef derived_dimension
< length_base_dimension,-1,
mass_base_dimension,
1, time_base_dimension,-2 >
::type 
stress_dimension
 derived dimension for stress : L^-1 M T^-2 More...
 
typedef derived_dimension
< length_base_dimension,-2,
mass_base_dimension, 1 >::type 
surface_density_dimension
 derived dimension for surface density : L^-2 M More...
 
typedef derived_dimension
< mass_base_dimension,
1, time_base_dimension,-2 >
::type 
surface_tension_dimension
 derived dimension for surface tension : M T^-2 More...
 
typedef
temperature_base_dimension::dimension_type 
temperature_dimension
 dimension of temperature (Theta) More...
 
typedef derived_dimension
< length_base_dimension,
1, mass_base_dimension,
1, time_base_dimension,-3,
temperature_base_dimension,-1 >
::type 
thermal_conductivity_dimension
 derived dimension for thermal_conductivity : L^1 M^1 T^-3 Theta^-1 More...
 
typedef
time_base_dimension::dimension_type 
time_dimension
 dimension of time (T) More...
 
typedef derived_dimension
< length_base_dimension,
2, mass_base_dimension,
1, time_base_dimension,-2,
plane_angle_base_dimension,-1 >
::type 
torque_dimension
 derived dimension for torque : L^2 M T^-2 QP^-1 More...
 
typedef derived_dimension
< length_base_dimension,
1, time_base_dimension,-1 >
::type 
velocity_dimension
 derived dimension for velocity : L T^-1 More...
 
typedef derived_dimension
< length_base_dimension, 3 >
::type 
volume_dimension
 derived dimension for volume : l^3 More...
 
typedef derived_dimension
< length_base_dimension,-1 >
::type 
wavenumber_dimension
 derived dimension for wavenumber : L^-1 More...
 
typedef long integer_type
 

Enumerations

enum  format_mode {
  symbol_fmt = 0,
  name_fmt = 1,
  raw_fmt = 2,
  typename_fmt = 3,
  fmt_mask = 3
}
 format of output of units, for example "m" or "meter". More...
 
enum  autoprefix_mode {
  autoprefix_none = 0,
  autoprefix_engineering = 4,
  autoprefix_binary = 8,
  autoprefix_mask = 12
}
 automatic scaling and prefix (controlled by value of quantity) a, if any, More...
 

Functions

template<class Y >
absolute< Y > operator+ (const absolute< Y > &aval, const Y &rval)
 add a relative value to an absolute one More...
 
template<class Y >
absolute< Y > operator+ (const Y &rval, const absolute< Y > &aval)
 add a relative value to an absolute one More...
 
template<class Y >
absolute< Y > operator- (const absolute< Y > &aval, const Y &rval)
 subtract a relative value from an absolute one More...
 
template<class Y >
operator- (const absolute< Y > &aval1, const absolute< Y > &aval2)
 subtracting two absolutes gives a difference More...
 
template<class D , class S , class T >
quantity< absolute< unit< D, S >
>, T
operator* (const T &t, const absolute< unit< D, S > > &)
 creates a quantity from an absolute unit and a raw value More...
 
template<class D , class S , class T >
quantity< absolute< unit< D, S >
>, T
operator* (const absolute< unit< D, S > > &, const T &t)
 creates a quantity from an absolute unit and a raw value More...
 
template<class Char , class Traits , class Y >
std::basic_ostream< Char,
Traits > & 
operator<< (std::basic_ostream< Char, Traits > &os, const absolute< Y > &aval)
 Print an absolute unit. More...
 
template<class Unit , class Y >
bool isfinite BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q)
 
template<class Unit , class Y >
bool isinf BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q)
 
template<class Unit , class Y >
bool isnan BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q)
 
template<class Unit , class Y >
bool isnormal BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q)
 
template<class Unit , class Y >
bool isgreater BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q1, const quantity< Unit, Y > &q2)
 
template<class Unit , class Y >
bool isgreaterequal BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q1, const quantity< Unit, Y > &q2)
 
template<class Unit , class Y >
bool isless BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q1, const quantity< Unit, Y > &q2)
 
template<class Unit , class Y >
bool islessequal BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q1, const quantity< Unit, Y > &q2)
 
template<class Unit , class Y >
bool islessgreater BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q1, const quantity< Unit, Y > &q2)
 
template<class Unit , class Y >
bool isunordered BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q1, const quantity< Unit, Y > &q2)
 
template<class Unit , class Y >
quantity< Unit, Y > abs BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q)
 
template<class Unit , class Y >
quantity< Unit, Y > ceil BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q)
 
template<class Unit , class Y >
quantity< Unit, Y > copysign BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q1, const quantity< Unit, Y > &q2)
 
template<class Unit , class Y >
quantity< Unit, Y > fabs BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q)
 
template<class Unit , class Y >
quantity< Unit, Y > floor BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q)
 
template<class Unit , class Y >
quantity< Unit, Y > fdim BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q1, const quantity< Unit, Y > &q2)
 
template<class Unit , class Y >
quantity< Unit, Y > fmax BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q1, const quantity< Unit, Y > &q2)
 
template<class Unit , class Y >
quantity< Unit, Y > fmin BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q1, const quantity< Unit, Y > &q2)
 
template<class Unit , class Y >
int fpclassify BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q)
 
template<class Unit , class Y >
root_typeof_helper< typename
add_typeof_helper< typename
power_typeof_helper< quantity
< Unit, Y >, static_rational
< 2 > >::type, typename
power_typeof_helper< quantity
< Unit, Y >, static_rational
< 2 > >::type >::type,
static_rational< 2 > >::type
hypot 
BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q1, const quantity< Unit, Y > &q2)
 
template<class Unit , class Y >
quantity< Unit, Y > nextafter BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q1, const quantity< Unit, Y > &q2)
 
template<class Unit , class Y >
quantity< Unit, Y > nexttoward BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q1, const quantity< Unit, Y > &q2)
 
template<class Unit , class Y >
quantity< Unit, Y > round BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q)
 
template<class Unit , class Y >
int signbit BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q)
 
template<class Unit , class Y >
quantity< Unit, Y > trunc BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q)
 
template<class Unit , class Y >
quantity< Unit, Y > fmod (const quantity< Unit, Y > &q1, const quantity< Unit, Y > &q2)
 
template<class Unit , class Y >
quantity< Unit, Y > modf (const quantity< Unit, Y > &q1, quantity< Unit, Y > *q2)
 
template<class Unit , class Y , class Int >
quantity< Unit, Y > frexp (const quantity< Unit, Y > &q, Int *ex)
 
template<class S , class Y >
quantity
< BOOST_UNITS_DIMENSIONLESS_UNIT(S),
Y > 
pow (const quantity< BOOST_UNITS_DIMENSIONLESS_UNIT(S), Y > &q1, const quantity< BOOST_UNITS_DIMENSIONLESS_UNIT(S), Y > &q2)
 For non-dimensionless quantities, integral and rational powers and roots can be computed by pow<Ex> and root<Rt> respectively. More...
 
template<class S , class Y >
quantity
< BOOST_UNITS_DIMENSIONLESS_UNIT(S),
Y > 
exp (const quantity< BOOST_UNITS_DIMENSIONLESS_UNIT(S), Y > &q)
 
template<class Unit , class Y , class Int >
quantity< Unit, Y > ldexp (const quantity< Unit, Y > &q, const Int &ex)
 
template<class S , class Y >
quantity
< BOOST_UNITS_DIMENSIONLESS_UNIT(S),
Y > 
log (const quantity< BOOST_UNITS_DIMENSIONLESS_UNIT(S), Y > &q)
 
template<class S , class Y >
quantity
< BOOST_UNITS_DIMENSIONLESS_UNIT(S),
Y > 
log10 (const quantity< BOOST_UNITS_DIMENSIONLESS_UNIT(S), Y > &q)
 
template<class Unit , class Y >
root_typeof_helper< quantity
< Unit, Y >, static_rational
< 2 > >::type 
sqrt (const quantity< Unit, Y > &q)
 
template<class Y >
dimensionless_quantity
< si::system, Y >::type 
cos (const quantity< si::plane_angle, Y > &theta)
 cos of theta in radians More...
 
template<class Y >
dimensionless_quantity
< si::system, Y >::type 
sin (const quantity< si::plane_angle, Y > &theta)
 sin of theta in radians More...
 
template<class Y >
dimensionless_quantity
< si::system, Y >::type 
tan (const quantity< si::plane_angle, Y > &theta)
 tan of theta in radians More...
 
template<class System , class Y >
dimensionless_quantity< System,
Y >::type 
cos (const quantity< unit< plane_angle_dimension, System >, Y > &theta)
 cos of theta in other angular units More...
 
template<class System , class Y >
dimensionless_quantity< System,
Y >::type 
sin (const quantity< unit< plane_angle_dimension, System >, Y > &theta)
 sin of theta in other angular units More...
 
template<class System , class Y >
dimensionless_quantity< System,
Y >::type 
tan (const quantity< unit< plane_angle_dimension, System >, Y > &theta)
 tan of theta in other angular units More...
 
template<class Y , class System >
quantity< unit
< plane_angle_dimension,
homogeneous_system< System >
>, Y > 
acos (const quantity< unit< dimensionless_type, homogeneous_system< System > >, Y > &val)
 acos of dimensionless quantity returning angle in same system More...
 
template<class Y >
quantity
< angle::radian_base_unit::unit_type,
Y > 
acos (const quantity< unit< dimensionless_type, heterogeneous_dimensionless_system >, Y > &val)
 acos of dimensionless quantity returning angle in radians More...
 
template<class Y , class System >
quantity< unit
< plane_angle_dimension,
homogeneous_system< System >
>, Y > 
asin (const quantity< unit< dimensionless_type, homogeneous_system< System > >, Y > &val)
 asin of dimensionless quantity returning angle in same system More...
 
template<class Y >
quantity
< angle::radian_base_unit::unit_type,
Y > 
asin (const quantity< unit< dimensionless_type, heterogeneous_dimensionless_system >, Y > &val)
 asin of dimensionless quantity returning angle in radians More...
 
template<class Y , class System >
quantity< unit
< plane_angle_dimension,
homogeneous_system< System >
>, Y > 
atan (const quantity< unit< dimensionless_type, homogeneous_system< System > >, Y > &val)
 atan of dimensionless quantity returning angle in same system More...
 
template<class Y >
quantity
< angle::radian_base_unit::unit_type,
Y > 
atan (const quantity< unit< dimensionless_type, heterogeneous_dimensionless_system >, Y > &val)
 atan of dimensionless quantity returning angle in radians More...
 
template<class Y , class Dimension , class System >
quantity< unit
< plane_angle_dimension,
homogeneous_system< System >
>, Y > 
atan2 (const quantity< unit< Dimension, homogeneous_system< System > >, Y > &y, const quantity< unit< Dimension, homogeneous_system< System > >, Y > &x)
 atan2 of value_type returning angle in radians More...
 
template<class Y , class Dimension , class System >
quantity
< angle::radian_base_unit::unit_type,
Y > 
atan2 (const quantity< unit< Dimension, heterogeneous_system< System > >, Y > &y, const quantity< unit< Dimension, heterogeneous_system< System > >, Y > &x)
 atan2 of value_type returning angle in radians More...
 
template<class FromUnit , class ToUnit >
one_to_double_type< typename
detail::conversion_factor_helper
< FromUnit, ToUnit >::type >
::type 
conversion_factor (const FromUnit &, const ToUnit &)
 Find the conversion factor between two units. More...
 
template<class T >
std::string to_string (const T &t)
 
template<integer_type N>
std::string to_string (const static_rational< N > &)
 get string representation of integral-valued static_rational. More...
 
template<integer_type N, integer_type D>
std::string to_string (const static_rational< N, D > &)
 get string representation of static_rational. More...
 
template<class Char , class Traits , integer_type N, integer_type D>
std::basic_ostream< Char,
Traits > & 
operator<< (std::basic_ostream< Char, Traits > &os, const static_rational< N, D > &r)
 Write static_rational to std::basic_ostream. More...
 
long get_flags (std::ios_base &ios, long mask)
 returns flags controlling output. More...
 
void set_flags (std::ios_base &ios, long new_flags, long mask)
 Set new flags controlling output format. More...
 
format_mode get_format (std::ios_base &ios)
 returns flags controlling output format. More...
 
void set_format (std::ios_base &ios, format_mode new_mode)
 Set new flags controlling output format. More...
 
std::ios_base & typename_format (std::ios_base &ios)
 Set new flags for type_name output format. More...
 
std::ios_base & raw_format (std::ios_base &ios)
 set new flag for raw format output, for example "m". More...
 
std::ios_base & symbol_format (std::ios_base &ios)
 set new format flag for symbol output, for example "m". More...
 
std::ios_base & name_format (std::ios_base &ios)
 set new format for name output, for example "meter". More...
 
autoprefix_mode get_autoprefix (std::ios_base &ios)
 get autoprefix flags for output. More...
 
void set_autoprefix (std::ios_base &ios, autoprefix_mode new_mode)
 Get format for output. More...
 
std::ios_base & no_prefix (std::ios_base &ios)
 Clear autoprefix flags. More...
 
std::ios_base & engineering_prefix (std::ios_base &ios)
 Set flag for engineering prefix, so 1234.5 m displays as "1.2345 km". More...
 
std::ios_base & binary_prefix (std::ios_base &ios)
 Set flag for binary prefix, so 1024 byte displays as "1 Kib". More...
 
template<class T >
autoprefix_norm_impl< T >::type autoprefix_norm (const T &arg)
 
template<class Dimension , class System >
std::string typename_string (const unit< Dimension, System > &)
 
template<class Dimension , class System >
std::string symbol_string (const unit< Dimension, System > &)
 
template<class Dimension , class System >
std::string name_string (const unit< Dimension, System > &)
 
template<class Char , class Traits , class Dimension , class System >
std::basic_ostream< Char,
Traits > & 
operator<< (std::basic_ostream< Char, Traits > &os, const unit< Dimension, System > &u)
 Print a unit as a list of base units and their exponents. More...
 
template<class Char , class Traits , class Unit , class T >
std::basic_ostream< Char,
Traits > & 
operator<< (std::basic_ostream< Char, Traits > &os, const quantity< Unit, T > &q)
 Print a quantity. More...
 
template<typename System , typename Dim , typename Arg >
const multiply_typeof_helper
< boost::units::unit< Dim,
System >
, boost::lambda::lambda_functor
< Arg > >::type 
operator* (const boost::units::unit< Dim, System > &a, const boost::lambda::lambda_functor< Arg > &b)
 Disambiguating overload for action unit<Dim, System> * lambda_functor<Arg> based on <boost/lambda/detail/operators.hpp>. More...
 
template<typename System , typename Dim , typename Arg >
const divide_typeof_helper
< boost::units::unit< Dim,
System >
, boost::lambda::lambda_functor
< Arg > >::type 
operator/ (const boost::units::unit< Dim, System > &a, const boost::lambda::lambda_functor< Arg > &b)
 Disambiguating overload for action unit<Dim, System> / lambda_functor<Arg> based on <boost/lambda/detail/operators.hpp>. More...
 
template<typename System , typename Dim , typename Arg >
const multiply_typeof_helper
< boost::lambda::lambda_functor
< Arg >, boost::units::unit
< Dim, System > >::type 
operator* (const boost::lambda::lambda_functor< Arg > &a, const boost::units::unit< Dim, System > &b)
 Disambiguating overload for action lambda_functor<Arg> * unit<Dim, System> based on <boost/lambda/detail/operators.hpp>. More...
 
template<typename System , typename Dim , typename Arg >
const divide_typeof_helper
< boost::lambda::lambda_functor
< Arg >, boost::units::unit
< Dim, System > >::type 
operator/ (const boost::lambda::lambda_functor< Arg > &a, const boost::units::unit< Dim, System > &b)
 Disambiguating overload for action lambda_functor<Arg> / unit<Dim, System> based on <boost/lambda/detail/operators.hpp>. More...
 
template<typename System , typename Dim , typename Arg >
const multiply_typeof_helper
< boost::lambda::lambda_functor
< Arg >
, boost::units::absolute
< boost::units::unit< Dim,
System > > >::type 
operator* (const boost::lambda::lambda_functor< Arg > &a, const boost::units::absolute< boost::units::unit< Dim, System > > &b)
 Disambiguating overload for action lambda_functor<Arg> * absolute<unit<Dim, System> > based on <boost/lambda/detail/operators.hpp>. More...
 
template<typename System , typename Dim , typename Arg >
const multiply_typeof_helper
< boost::units::absolute
< boost::units::unit< Dim,
System >
>, boost::lambda::lambda_functor
< Arg > >::type 
operator* (const boost::units::absolute< boost::units::unit< Dim, System > > &a, const boost::lambda::lambda_functor< Arg > &b)
 Disambiguating overload for action absolute<unit<Dim, System> > * lambda_functor<Arg> based on <boost/lambda/detail/operators.hpp>. More...
 
template<class Rat , class Y >
power_typeof_helper< Y, Rat >::type pow (const Y &x)
 raise a value to a static_rational power. More...
 
template<long N, class Y >
power_typeof_helper< Y,
static_rational< N > >::type 
pow (const Y &x)
 raise a value to an integer power. More...
 
template<class Rat , class Y >
root_typeof_helper< Y, Rat >::type root (const Y &x)
 take the static_rational root of a value. More...
 
template<long N, class Y >
root_typeof_helper< Y,
static_rational< N > >::type 
root (const Y &x)
 take the integer root of a value. More...
 
template<class X , class Y >
quantity_cast (Y &source)
 quantity_cast provides mutating access to underlying quantity value_type More...
 
template<class X , class Y >
quantity_cast (const Y &source)
 
template<class Unit , class Y >
void swap (quantity< Unit, Y > &lhs, quantity< Unit, Y > &rhs)
 swap quantities More...
 
template<class System , class Dim , class Y >
multiply_typeof_helper< unit
< Dim, System >, Y >::type 
operator* (const unit< Dim, System > &, const Y &rhs)
 runtime unit times scalar INTERNAL ONLY More...
 
template<class System , class Dim , class Y >
divide_typeof_helper< unit
< Dim, System >, Y >::type 
operator/ (const unit< Dim, System > &, const Y &rhs)
 runtime unit divided by scalar More...
 
template<class System , class Dim , class Y >
multiply_typeof_helper< Y,
unit< Dim, System > >::type 
operator* (const Y &lhs, const unit< Dim, System > &)
 runtime scalar times unit More...
 
template<class System , class Dim , class Y >
divide_typeof_helper< Y, unit
< Dim, System > >::type 
operator/ (const Y &lhs, const unit< Dim, System > &)
 runtime scalar divided by unit More...
 
template<class Unit , class X >
multiply_typeof_helper
< quantity< Unit, X >, X >
::type 
operator* (const quantity< Unit, X > &lhs, const X &rhs)
 runtime quantity times scalar More...
 
template<class Unit , class X >
multiply_typeof_helper< X,
quantity< Unit, X > >::type 
operator* (const X &lhs, const quantity< Unit, X > &rhs)
 runtime scalar times quantity More...
 
template<class Unit , class X >
divide_typeof_helper< quantity
< Unit, X >, X >::type 
operator/ (const quantity< Unit, X > &lhs, const X &rhs)
 runtime quantity divided by scalar More...
 
template<class Unit , class X >
divide_typeof_helper< X,
quantity< Unit, X > >::type 
operator/ (const X &lhs, const quantity< Unit, X > &rhs)
 runtime scalar divided by quantity More...
 
template<class System1 , class Dim1 , class Unit2 , class Y >
multiply_typeof_helper< unit
< Dim1, System1 >, quantity
< Unit2, Y > >::type 
operator* (const unit< Dim1, System1 > &, const quantity< Unit2, Y > &rhs)
 runtime unit times quantity More...
 
template<class System1 , class Dim1 , class Unit2 , class Y >
divide_typeof_helper< unit
< Dim1, System1 >, quantity
< Unit2, Y > >::type 
operator/ (const unit< Dim1, System1 > &, const quantity< Unit2, Y > &rhs)
 runtime unit divided by quantity More...
 
template<class Unit1 , class System2 , class Dim2 , class Y >
multiply_typeof_helper
< quantity< Unit1, Y >, unit
< Dim2, System2 > >::type 
operator* (const quantity< Unit1, Y > &lhs, const unit< Dim2, System2 > &)
 runtime quantity times unit More...
 
template<class Unit1 , class System2 , class Dim2 , class Y >
divide_typeof_helper< quantity
< Unit1, Y >, unit< Dim2,
System2 > >::type 
operator/ (const quantity< Unit1, Y > &lhs, const unit< Dim2, System2 > &)
 runtime quantity divided by unit More...
 
template<class Unit , class Y >
unary_plus_typeof_helper
< quantity< Unit, Y > >::type 
operator+ (const quantity< Unit, Y > &val)
 runtime unary plus quantity More...
 
template<class Unit , class Y >
unary_minus_typeof_helper
< quantity< Unit, Y > >::type 
operator- (const quantity< Unit, Y > &val)
 runtime unary minus quantity More...
 
template<class Unit1 , class Unit2 , class X , class Y >
add_typeof_helper< quantity
< Unit1, X >, quantity< Unit2,
Y > >::type 
operator+ (const quantity< Unit1, X > &lhs, const quantity< Unit2, Y > &rhs)
 runtime quantity plus quantity More...
 
template<class Unit1 , class Unit2 , class X , class Y >
subtract_typeof_helper
< quantity< Unit1, X >
, quantity< Unit2, Y > >::type 
operator- (const quantity< Unit1, X > &lhs, const quantity< Unit2, Y > &rhs)
 runtime quantity minus quantity More...
 
template<class Unit1 , class Unit2 , class X , class Y >
multiply_typeof_helper
< quantity< Unit1, X >
, quantity< Unit2, Y > >::type 
operator* (const quantity< Unit1, X > &lhs, const quantity< Unit2, Y > &rhs)
 runtime quantity times quantity More...
 
template<class Unit1 , class Unit2 , class X , class Y >
divide_typeof_helper< quantity
< Unit1, X >, quantity< Unit2,
Y > >::type 
operator/ (const quantity< Unit1, X > &lhs, const quantity< Unit2, Y > &rhs)
 runtime quantity divided by quantity More...
 
template<class Unit , class X , class Y >
bool operator== (const quantity< Unit, X > &val1, const quantity< Unit, Y > &val2)
 runtime operator== More...
 
template<class Unit , class X , class Y >
bool operator!= (const quantity< Unit, X > &val1, const quantity< Unit, Y > &val2)
 runtime operator!= More...
 
template<class Unit , class X , class Y >
bool operator< (const quantity< Unit, X > &val1, const quantity< Unit, Y > &val2)
 runtime operator< More...
 
template<class Unit , class X , class Y >
bool operator<= (const quantity< Unit, X > &val1, const quantity< Unit, Y > &val2)
 runtime operator<= More...
 
template<class Unit , class X , class Y >
bool operator> (const quantity< Unit, X > &val1, const quantity< Unit, Y > &val2)
 runtime operator> More...
 
template<class Unit , class X , class Y >
bool operator>= (const quantity< Unit, X > &val1, const quantity< Unit, Y > &val2)
 runtime operator>= More...
 
template<long Base, class Exponent >
std::string symbol_string (const scale< Base, Exponent > &)
 
template<long Base, class Exponent >
std::string name_string (const scale< Base, Exponent > &)
 
template<class T , integer_type N, integer_type D>
divide_typeof_helper< T, T >::type value (const static_rational< N, D > &)
 get decimal value of static_rational More...
 
std::string name_string (const reduce_unit< cgs::acceleration >::type &)
 
std::string symbol_string (const reduce_unit< cgs::acceleration >::type &)
 
template<class Dim , class System >
unary_plus_typeof_helper< unit
< Dim, System > >::type 
operator+ (const unit< Dim, System > &)
 unit runtime unary plus More...
 
template<class Dim , class System >
unary_minus_typeof_helper
< unit< Dim, System > >::type 
operator- (const unit< Dim, System > &)
 unit runtime unary minus More...
 
template<class Dim1 , class Dim2 , class System1 , class System2 >
add_typeof_helper< unit< Dim1,
System1 >, unit< Dim2, System2 >
>::type 
operator+ (const unit< Dim1, System1 > &, const unit< Dim2, System2 > &)
 runtime add two units More...
 
template<class Dim1 , class Dim2 , class System1 , class System2 >
subtract_typeof_helper< unit
< Dim1, System1 >, unit< Dim2,
System2 > >::type 
operator- (const unit< Dim1, System1 > &, const unit< Dim2, System2 > &)
 runtime subtract two units More...
 
template<class Dim1 , class Dim2 , class System1 , class System2 >
multiply_typeof_helper< unit
< Dim1, System1 >, unit< Dim2,
System2 > >::type 
operator* (const unit< Dim1, System1 > &, const unit< Dim2, System2 > &)
 runtime multiply two units More...
 
template<class Dim1 , class Dim2 , class System1 , class System2 >
divide_typeof_helper< unit
< Dim1, System1 >, unit< Dim2,
System2 > >::type 
operator/ (const unit< Dim1, System1 > &, const unit< Dim2, System2 > &)
 runtime divide two units More...
 
template<class Dim1 , class Dim2 , class System1 , class System2 >
bool operator== (const unit< Dim1, System1 > &, const unit< Dim2, System2 > &)
 unit runtime operator== More...
 
template<class Dim1 , class Dim2 , class System1 , class System2 >
bool operator!= (const unit< Dim1, System1 > &, const unit< Dim2, System2 > &)
 unit runtime operator!= More...
 
template<class T >
std::string name_string (const T &)
 
template<class T >
std::string symbol_string (const T &)
 
template<class T >
std::string raw_string (const T &)
 
template<class T >
std::string typename_string (const T &)
 

Typedef Documentation

derived dimension for absorbed dose : L^2 T^-2

derived dimension for acceleration : L T^-2

derived dimension for activity : T^-1

dimension of amount of substance (N)

derived dimension for angular acceleration : T^-2 QP

derived dimension for angular velocity : T^-1 QP

derived dimension for area : L^2

derived dimension for dose equivalent : L^2 T^-2

derived dimension for dynamic viscosity : M L^-1 T^-1

derived dimension for electric charge : T^1 I^1

derived dimension for energy density : L^-1 M^1 T^-2

derived dimension for frequency : T^-1

derived dimension for kinematic viscosity : L^2 T^-1

derived dimension for magnetic field intensity : L^-1 I

derived dimension for magnetic flux density : M T^-2 I^-1

derived dimension for mass density : L^-3 M

derived dimension for linear momentum : L M T^-1

derived dimension for specific energy : L^2 T^-2

derived dimension for specific heat capacity : L^2 T^-2 Theta^-1

derived dimension for specific volume : L^3 M^-1

derived dimension for surface density : L^-2 M

derived dimension for surface tension : M T^-2

derived dimension for velocity : L T^-1

derived dimension for volume : l^3

derived dimension for wavenumber : L^-1

Enumeration Type Documentation

automatic scaling and prefix (controlled by value of quantity) a, if any,

Enumerator
autoprefix_none 
autoprefix_engineering 

No automatic prefix.

autoprefix_binary 

Scale and prefix with 10^3 multiples, 1234.5 m output as 1.2345 km.

autoprefix_mask 

Scale and prefix with 2^10 (1024) multiples, 1024 as 1 kb.

format of output of units, for example "m" or "meter".

Enumerator
symbol_fmt 
name_fmt 

default - reduces unit names to known symbols for both base and derived units.

raw_fmt 

output full unit names for base and derived units, for example "meter".

typename_fmt 

output only symbols for base units (but not derived units), for example "m".

fmt_mask 

output demangled typenames (useful only for diagnosis).

Function Documentation

template<class Y , class System >
quantity<unit<plane_angle_dimension, homogeneous_system<System> >,Y> boost::units::acos ( const quantity< unit< dimensionless_type, homogeneous_system< System > >, Y > &  val)

acos of dimensionless quantity returning angle in same system

References acos(), and boost::phoenix::val().

Referenced by acos().

template<class Y >
quantity<angle::radian_base_unit::unit_type,Y> boost::units::acos ( const quantity< unit< dimensionless_type, heterogeneous_dimensionless_system >, Y > &  val)

acos of dimensionless quantity returning angle in radians

References acos(), boost::units::quantity< Unit, Y >::from_value(), and boost::phoenix::val().

Referenced by acos().

template<class Y , class System >
quantity<unit<plane_angle_dimension, homogeneous_system<System> >,Y> boost::units::asin ( const quantity< unit< dimensionless_type, homogeneous_system< System > >, Y > &  val)

asin of dimensionless quantity returning angle in same system

References asin(), and boost::phoenix::val().

Referenced by asin().

template<class Y >
quantity<angle::radian_base_unit::unit_type,Y> boost::units::asin ( const quantity< unit< dimensionless_type, heterogeneous_dimensionless_system >, Y > &  val)

asin of dimensionless quantity returning angle in radians

References asin(), boost::units::quantity< Unit, Y >::from_value(), and boost::phoenix::val().

Referenced by asin().

template<class Y , class System >
quantity<unit<plane_angle_dimension, homogeneous_system<System> >,Y> boost::units::atan ( const quantity< unit< dimensionless_type, homogeneous_system< System > >, Y > &  val)

atan of dimensionless quantity returning angle in same system

References atan(), and boost::phoenix::val().

Referenced by atan().

template<class Y >
quantity<angle::radian_base_unit::unit_type,Y> boost::units::atan ( const quantity< unit< dimensionless_type, heterogeneous_dimensionless_system >, Y > &  val)

atan of dimensionless quantity returning angle in radians

References atan(), boost::units::quantity< Unit, Y >::from_value(), and boost::phoenix::val().

Referenced by atan().

template<class Y , class Dimension , class System >
quantity<unit<plane_angle_dimension, homogeneous_system<System> >, Y> boost::units::atan2 ( const quantity< unit< Dimension, homogeneous_system< System > >, Y > &  y,
const quantity< unit< Dimension, homogeneous_system< System > >, Y > &  x 
)

atan2 of value_type returning angle in radians

References atan2(), boost::flyweights::x, and boost::polygon::y().

Referenced by atan2().

template<class Y , class Dimension , class System >
quantity<angle::radian_base_unit::unit_type,Y> boost::units::atan2 ( const quantity< unit< Dimension, heterogeneous_system< System > >, Y > &  y,
const quantity< unit< Dimension, heterogeneous_system< System > >, Y > &  x 
)

atan2 of value_type returning angle in radians

References atan2(), boost::units::quantity< Unit, Y >::from_value(), boost::flyweights::x, and boost::polygon::y().

Referenced by atan2().

template<class T >
autoprefix_norm_impl<T>::type boost::units::autoprefix_norm ( const T arg)
std::ios_base& boost::units::binary_prefix ( std::ios_base &  ios)
inline

Set flag for binary prefix, so 1024 byte displays as "1 Kib".

References autoprefix_binary, and set_autoprefix().

template<class Unit , class Y >
bool isfinite boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION ( const quantity< Unit, Y > &  q)
inline
template<class Unit , class Y >
bool isinf boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION ( const quantity< Unit, Y > &  q)
inline
template<class Unit , class Y >
bool isnan boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION ( const quantity< Unit, Y > &  q)
inline
template<class Unit , class Y >
bool isnormal boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION ( const quantity< Unit, Y > &  q)
inline
template<class Unit , class Y >
bool isgreater boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION ( const quantity< Unit, Y > &  q1,
const quantity< Unit, Y > &  q2 
)
inline
template<class Unit , class Y >
bool isgreaterequal boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION ( const quantity< Unit, Y > &  q1,
const quantity< Unit, Y > &  q2 
)
inline
template<class Unit , class Y >
bool isless boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION ( const quantity< Unit, Y > &  q1,
const quantity< Unit, Y > &  q2 
)
inline
template<class Unit , class Y >
bool islessequal boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION ( const quantity< Unit, Y > &  q1,
const quantity< Unit, Y > &  q2 
)
inline
template<class Unit , class Y >
bool islessgreater boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION ( const quantity< Unit, Y > &  q1,
const quantity< Unit, Y > &  q2 
)
inline
template<class Unit , class Y >
bool isunordered boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION ( const quantity< Unit, Y > &  q1,
const quantity< Unit, Y > &  q2 
)
inline
template<class Unit , class Y >
quantity<Unit,Y> abs boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION ( const quantity< Unit, Y > &  q)
inline
template<class Unit , class Y >
quantity<Unit,Y> ceil boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION ( const quantity< Unit, Y > &  q)
inline
template<class Unit , class Y >
quantity<Unit,Y> copysign boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION ( const quantity< Unit, Y > &  q1,
const quantity< Unit, Y > &  q2 
)
inline
template<class Unit , class Y >
quantity<Unit,Y> fabs boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION ( const quantity< Unit, Y > &  q)
inline
template<class Unit , class Y >
quantity<Unit,Y> floor boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION ( const quantity< Unit, Y > &  q)
inline
template<class Unit , class Y >
quantity<Unit,Y> fdim boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION ( const quantity< Unit, Y > &  q1,
const quantity< Unit, Y > &  q2 
)
inline
template<class Unit , class Y >
quantity<Unit,Y> fmax boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION ( const quantity< Unit, Y > &  q1,
const quantity< Unit, Y > &  q2 
)
inline
template<class Unit , class Y >
quantity<Unit,Y> fmin boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION ( const quantity< Unit, Y > &  q1,
const quantity< Unit, Y > &  q2 
)
inline
template<class Unit , class Y >
int fpclassify boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION ( const quantity< Unit, Y > &  q)
inline
template<class Unit , class Y >
root_typeof_helper< typename add_typeof_helper< typename power_typeof_helper<quantity<Unit,Y>, static_rational<2> >::type, typename power_typeof_helper<quantity<Unit,Y>, static_rational<2> >::type>::type, static_rational<2> >::type hypot boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION ( const quantity< Unit, Y > &  q1,
const quantity< Unit, Y > &  q2 
)
inline
template<class Unit , class Y >
quantity<Unit,Y> nextafter boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION ( const quantity< Unit, Y > &  q1,
const quantity< Unit, Y > &  q2 
)
inline
template<class Unit , class Y >
quantity<Unit,Y> nexttoward boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION ( const quantity< Unit, Y > &  q1,
const quantity< Unit, Y > &  q2 
)
inline
template<class Unit , class Y >
quantity<Unit,Y> round boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION ( const quantity< Unit, Y > &  q)
inline
template<class Unit , class Y >
int signbit boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION ( const quantity< Unit, Y > &  q)
inline
template<class Unit , class Y >
quantity<Unit,Y> trunc boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION ( const quantity< Unit, Y > &  q)
inline
template<class FromUnit , class ToUnit >
one_to_double_type< typename detail::conversion_factor_helper<FromUnit, ToUnit>::type>::type boost::units::conversion_factor ( const FromUnit &  ,
const ToUnit &   
)
inline

Find the conversion factor between two units.

References boost::program_options::value().

template<class Y >
dimensionless_quantity<si::system,Y>::type boost::units::cos ( const quantity< si::plane_angle, Y > &  theta)

cos of theta in radians

References cos(), and boost::units::quantity< Unit, Y >::value().

Referenced by cos().

template<class System , class Y >
dimensionless_quantity<System,Y>::type boost::units::cos ( const quantity< unit< plane_angle_dimension, System >, Y > &  theta)

cos of theta in other angular units

References cos().

Referenced by cos().

std::ios_base& boost::units::engineering_prefix ( std::ios_base &  ios)
inline

Set flag for engineering prefix, so 1234.5 m displays as "1.2345 km".

References autoprefix_engineering, and set_autoprefix().

template<class S , class Y >
quantity<BOOST_UNITS_DIMENSIONLESS_UNIT(S), Y> boost::units::exp ( const quantity< BOOST_UNITS_DIMENSIONLESS_UNIT(S), Y > &  q)
inline
template<class Unit , class Y >
quantity<Unit, Y> boost::units::fmod ( const quantity< Unit, Y > &  q1,
const quantity< Unit, Y > &  q2 
)
inline
template<class Unit , class Y , class Int >
quantity<Unit, Y> boost::units::frexp ( const quantity< Unit, Y > &  q,
Int *  ex 
)
inline
autoprefix_mode boost::units::get_autoprefix ( std::ios_base &  ios)
inline

get autoprefix flags for output.

References autoprefix_mask, and get_flags().

Referenced by operator<<().

long boost::units::get_flags ( std::ios_base &  ios,
long  mask 
)
inline

returns flags controlling output.

Referenced by get_autoprefix(), and get_format().

format_mode boost::units::get_format ( std::ios_base &  ios)
inline
template<class Unit , class Y , class Int >
quantity<Unit, Y> boost::units::ldexp ( const quantity< Unit, Y > &  q,
const Int &  ex 
)
inline
template<class S , class Y >
quantity<BOOST_UNITS_DIMENSIONLESS_UNIT(S), Y> boost::units::log ( const quantity< BOOST_UNITS_DIMENSIONLESS_UNIT(S), Y > &  q)
inline
template<class S , class Y >
quantity<BOOST_UNITS_DIMENSIONLESS_UNIT(S), Y> boost::units::log10 ( const quantity< BOOST_UNITS_DIMENSIONLESS_UNIT(S), Y > &  q)
inline
template<class Unit , class Y >
quantity<Unit, Y> boost::units::modf ( const quantity< Unit, Y > &  q1,
quantity< Unit, Y > *  q2 
)
inline
std::ios_base& boost::units::name_format ( std::ios_base &  ios)
inline

set new format for name output, for example "meter".

References name_fmt, and set_format().

std::string boost::units::name_string ( const reduce_unit< cgs::acceleration >::type &  )
inline
template<class T >
std::string boost::units::name_string ( const T )
template<long Base, class Exponent >
std::string boost::units::name_string ( const scale< Base, Exponent > &  )
template<class Dimension , class System >
std::string boost::units::name_string ( const unit< Dimension, System > &  )
inline
std::ios_base& boost::units::no_prefix ( std::ios_base &  ios)
inline

Clear autoprefix flags.

References autoprefix_none, and set_autoprefix().

template<class Dim1 , class Dim2 , class System1 , class System2 >
bool boost::units::operator!= ( const unit< Dim1, System1 > &  ,
const unit< Dim2, System2 > &   
)
inline

unit runtime operator!=

References boost::detail::type, and value().

template<class Unit , class X , class Y >
bool boost::units::operator!= ( const quantity< Unit, X > &  val1,
const quantity< Unit, Y > &  val2 
)
inline

runtime operator!=

template<typename System , typename Dim , typename Arg >
const multiply_typeof_helper<boost::units::unit<Dim, System>, boost::lambda::lambda_functor<Arg> >::type boost::units::operator* ( const boost::units::unit< Dim, System > &  a,
const boost::lambda::lambda_functor< Arg > &  b 
)
inline

Disambiguating overload for action unit<Dim, System> * lambda_functor<Arg> based on <boost/lambda/detail/operators.hpp>.

References boost::spirit::x3::unicode::inherited.

template<class D , class S , class T >
quantity<absolute<unit<D, S> >, T> boost::units::operator* ( const T t,
const absolute< unit< D, S > > &   
)

creates a quantity from an absolute unit and a raw value

References T.

template<class D , class S , class T >
quantity<absolute<unit<D, S> >, T> boost::units::operator* ( const absolute< unit< D, S > > &  ,
const T t 
)

creates a quantity from an absolute unit and a raw value

References T.

template<typename System , typename Dim , typename Arg >
const multiply_typeof_helper<boost::lambda::lambda_functor<Arg>, boost::units::unit<Dim, System> >::type boost::units::operator* ( const boost::lambda::lambda_functor< Arg > &  a,
const boost::units::unit< Dim, System > &  b 
)
inline

Disambiguating overload for action lambda_functor<Arg> * unit<Dim, System> based on <boost/lambda/detail/operators.hpp>.

References boost::spirit::x3::unicode::inherited.

template<class Dim1 , class Dim2 , class System1 , class System2 >
multiply_typeof_helper< unit<Dim1,System1>, unit<Dim2,System2> >::type boost::units::operator* ( const unit< Dim1, System1 > &  ,
const unit< Dim2, System2 > &   
)

runtime multiply two units

References boost::detail::type.

template<typename System , typename Dim , typename Arg >
const multiply_typeof_helper<boost::lambda::lambda_functor<Arg>, boost::units::absolute<boost::units::unit<Dim, System> > >::type boost::units::operator* ( const boost::lambda::lambda_functor< Arg > &  a,
const boost::units::absolute< boost::units::unit< Dim, System > > &  b 
)
inline

Disambiguating overload for action lambda_functor<Arg> * absolute<unit<Dim, System> > based on <boost/lambda/detail/operators.hpp>.

References boost::asio::b, and boost::spirit::x3::unicode::inherited.

template<typename System , typename Dim , typename Arg >
const multiply_typeof_helper<boost::units::absolute<boost::units::unit<Dim, System> >, boost::lambda::lambda_functor<Arg> >::type boost::units::operator* ( const boost::units::absolute< boost::units::unit< Dim, System > > &  a,
const boost::lambda::lambda_functor< Arg > &  b 
)
inline

Disambiguating overload for action absolute<unit<Dim, System> > * lambda_functor<Arg> based on <boost/lambda/detail/operators.hpp>.

References boost::a, and boost::spirit::x3::unicode::inherited.

template<class System , class Dim , class Y >
multiply_typeof_helper< unit<Dim,System>,Y >::type boost::units::operator* ( const unit< Dim, System > &  ,
const Y &  rhs 
)
inline

runtime unit times scalar INTERNAL ONLY

References boost::detail::type.

template<class System , class Dim , class Y >
multiply_typeof_helper< Y,unit<Dim,System> >::type boost::units::operator* ( const Y &  lhs,
const unit< Dim, System > &   
)
inline

runtime scalar times unit

References boost::detail::type.

template<class Unit , class X >
multiply_typeof_helper< quantity<Unit,X>,X >::type boost::units::operator* ( const quantity< Unit, X > &  lhs,
const X &  rhs 
)
inline

runtime quantity times scalar

References boost::detail::type.

template<class Unit , class X >
multiply_typeof_helper< X,quantity<Unit,X> >::type boost::units::operator* ( const X &  lhs,
const quantity< Unit, X > &  rhs 
)
inline

runtime scalar times quantity

References boost::detail::type.

template<class System1 , class Dim1 , class Unit2 , class Y >
multiply_typeof_helper< unit<Dim1,System1>,quantity<Unit2,Y> >::type boost::units::operator* ( const unit< Dim1, System1 > &  ,
const quantity< Unit2, Y > &  rhs 
)
inline

runtime unit times quantity

References boost::detail::type.

template<class Unit1 , class System2 , class Dim2 , class Y >
multiply_typeof_helper< quantity<Unit1,Y>,unit<Dim2,System2> >::type boost::units::operator* ( const quantity< Unit1, Y > &  lhs,
const unit< Dim2, System2 > &   
)
inline

runtime quantity times unit

References boost::detail::type.

template<class Unit1 , class Unit2 , class X , class Y >
multiply_typeof_helper< quantity<Unit1,X>,quantity<Unit2,Y> >::type boost::units::operator* ( const quantity< Unit1, X > &  lhs,
const quantity< Unit2, Y > &  rhs 
)
inline

runtime quantity times quantity

References boost::detail::type.

template<class Y >
absolute<Y> boost::units::operator+ ( const absolute< Y > &  aval,
const Y &  rval 
)

add a relative value to an absolute one

References boost::units::absolute< Y >::value().

template<class Y >
absolute<Y> boost::units::operator+ ( const Y &  rval,
const absolute< Y > &  aval 
)

add a relative value to an absolute one

References boost::units::absolute< Y >::value().

template<class Dim , class System >
unary_plus_typeof_helper< unit<Dim,System> >::type boost::units::operator+ ( const unit< Dim, System > &  )

unit runtime unary plus

References boost::detail::type.

template<class Dim1 , class Dim2 , class System1 , class System2 >
add_typeof_helper< unit<Dim1,System1>, unit<Dim2,System2> >::type boost::units::operator+ ( const unit< Dim1, System1 > &  ,
const unit< Dim2, System2 > &   
)
template<class Unit , class Y >
unary_plus_typeof_helper< quantity<Unit,Y> >::type boost::units::operator+ ( const quantity< Unit, Y > &  val)

runtime unary plus quantity

References boost::detail::type.

template<class Unit1 , class Unit2 , class X , class Y >
add_typeof_helper< quantity<Unit1,X>,quantity<Unit2,Y> >::type boost::units::operator+ ( const quantity< Unit1, X > &  lhs,
const quantity< Unit2, Y > &  rhs 
)
inline

runtime quantity plus quantity

References boost::detail::type.

template<class Y >
absolute<Y> boost::units::operator- ( const absolute< Y > &  aval,
const Y &  rval 
)

subtract a relative value from an absolute one

References boost::units::absolute< Y >::value().

template<class Y >
Y boost::units::operator- ( const absolute< Y > &  aval1,
const absolute< Y > &  aval2 
)

subtracting two absolutes gives a difference

References boost::units::absolute< Y >::value().

template<class Dim , class System >
unary_minus_typeof_helper< unit<Dim,System> >::type boost::units::operator- ( const unit< Dim, System > &  )

unit runtime unary minus

References boost::detail::type.

template<class Dim1 , class Dim2 , class System1 , class System2 >
subtract_typeof_helper< unit<Dim1,System1>, unit<Dim2,System2> >::type boost::units::operator- ( const unit< Dim1, System1 > &  ,
const unit< Dim2, System2 > &   
)
template<class Unit , class Y >
unary_minus_typeof_helper< quantity<Unit,Y> >::type boost::units::operator- ( const quantity< Unit, Y > &  val)

runtime unary minus quantity

References boost::detail::type.

template<class Unit1 , class Unit2 , class X , class Y >
subtract_typeof_helper< quantity<Unit1,X>,quantity<Unit2,Y> >::type boost::units::operator- ( const quantity< Unit1, X > &  lhs,
const quantity< Unit2, Y > &  rhs 
)
inline

runtime quantity minus quantity

References boost::detail::type.

template<typename System , typename Dim , typename Arg >
const divide_typeof_helper<boost::units::unit<Dim, System>, boost::lambda::lambda_functor<Arg> >::type boost::units::operator/ ( const boost::units::unit< Dim, System > &  a,
const boost::lambda::lambda_functor< Arg > &  b 
)
inline

Disambiguating overload for action unit<Dim, System> / lambda_functor<Arg> based on <boost/lambda/detail/operators.hpp>.

References boost::spirit::x3::unicode::inherited.

template<typename System , typename Dim , typename Arg >
const divide_typeof_helper<boost::lambda::lambda_functor<Arg>, boost::units::unit<Dim, System> >::type boost::units::operator/ ( const boost::lambda::lambda_functor< Arg > &  a,
const boost::units::unit< Dim, System > &  b 
)
inline

Disambiguating overload for action lambda_functor<Arg> / unit<Dim, System> based on <boost/lambda/detail/operators.hpp>.

References boost::spirit::x3::unicode::inherited.

template<class Dim1 , class Dim2 , class System1 , class System2 >
divide_typeof_helper< unit<Dim1,System1>, unit<Dim2,System2> >::type boost::units::operator/ ( const unit< Dim1, System1 > &  ,
const unit< Dim2, System2 > &   
)

runtime divide two units

References boost::detail::type.

template<class System , class Dim , class Y >
divide_typeof_helper< unit<Dim,System>,Y >::type boost::units::operator/ ( const unit< Dim, System > &  ,
const Y &  rhs 
)
inline

runtime unit divided by scalar

References boost::detail::type.

template<class System , class Dim , class Y >
divide_typeof_helper< Y,unit<Dim,System> >::type boost::units::operator/ ( const Y &  lhs,
const unit< Dim, System > &   
)
inline

runtime scalar divided by unit

References boost::detail::type.

template<class Unit , class X >
divide_typeof_helper< quantity<Unit,X>,X >::type boost::units::operator/ ( const quantity< Unit, X > &  lhs,
const X &  rhs 
)
inline

runtime quantity divided by scalar

References boost::detail::type.

template<class Unit , class X >
divide_typeof_helper< X,quantity<Unit,X> >::type boost::units::operator/ ( const X &  lhs,
const quantity< Unit, X > &  rhs 
)
inline

runtime scalar divided by quantity

References boost::detail::type.

template<class System1 , class Dim1 , class Unit2 , class Y >
divide_typeof_helper< unit<Dim1,System1>,quantity<Unit2,Y> >::type boost::units::operator/ ( const unit< Dim1, System1 > &  ,
const quantity< Unit2, Y > &  rhs 
)
inline

runtime unit divided by quantity

References boost::detail::type.

template<class Unit1 , class System2 , class Dim2 , class Y >
divide_typeof_helper< quantity<Unit1,Y>,unit<Dim2,System2> >::type boost::units::operator/ ( const quantity< Unit1, Y > &  lhs,
const unit< Dim2, System2 > &   
)
inline

runtime quantity divided by unit

References boost::detail::type.

template<class Unit1 , class Unit2 , class X , class Y >
divide_typeof_helper< quantity<Unit1,X>,quantity<Unit2,Y> >::type boost::units::operator/ ( const quantity< Unit1, X > &  lhs,
const quantity< Unit2, Y > &  rhs 
)
inline

runtime quantity divided by quantity

References boost::detail::type.

template<class Unit , class X , class Y >
bool boost::units::operator< ( const quantity< Unit, X > &  val1,
const quantity< Unit, Y > &  val2 
)
inline

runtime operator<

References boost::units::quantity< Unit, Y >::value().

template<class Char , class Traits , integer_type N, integer_type D>
std::basic_ostream<Char, Traits>& boost::units::operator<< ( std::basic_ostream< Char, Traits > &  os,
const static_rational< N, D > &  r 
)
inline

Write static_rational to std::basic_ostream.

References to_string().

template<class Char , class Traits , class Y >
std::basic_ostream<Char, Traits>& boost::units::operator<< ( std::basic_ostream< Char, Traits > &  os,
const absolute< Y > &  aval 
)

Print an absolute unit.

template<class Char , class Traits , class Dimension , class System >
std::basic_ostream<Char, Traits>& boost::units::operator<< ( std::basic_ostream< Char, Traits > &  os,
const unit< Dimension, System > &  u 
)
inline

Print a unit as a list of base units and their exponents.

for symbol_format outputs e.g. "m s^-1" or "J". for name_format outputs e.g. "meter second^-1" or "joule". for raw_format outputs e.g. "m s^-1" or "meter kilogram^2 second^-2". for typename_format outputs the typename itself (currently demangled only on GCC).

References boost::units::detail::do_print(), get_format(), name_fmt, name_string(), raw_fmt, symbol_fmt, symbol_string(), boost::units::detail::to_string_impl(), typename_fmt, and typename_string().

template<class Char , class Traits , class Unit , class T >
std::basic_ostream<Char, Traits>& boost::units::operator<< ( std::basic_ostream< Char, Traits > &  os,
const quantity< Unit, T > &  q 
)
inline

Print a quantity.

Prints the value followed by the unit. If the engineering_prefix, or binary_prefix is set, tries to scale the value appropriately. For example, it might print 12.345 km instead of 12345 m. (Note does not attempt to automatically scale scalars like double, float...)

References autoprefix_binary, autoprefix_engineering, autoprefix_none, autoprefix_norm(), get_autoprefix(), and boost::units::detail::test_norm().

template<class Unit , class X , class Y >
bool boost::units::operator<= ( const quantity< Unit, X > &  val1,
const quantity< Unit, Y > &  val2 
)
inline

runtime operator<=

References boost::units::quantity< Unit, Y >::value().

template<class Dim1 , class Dim2 , class System1 , class System2 >
bool boost::units::operator== ( const unit< Dim1, System1 > &  ,
const unit< Dim2, System2 > &   
)
inline

unit runtime operator==

References boost::detail::type, and value().

template<class Unit , class X , class Y >
bool boost::units::operator== ( const quantity< Unit, X > &  val1,
const quantity< Unit, Y > &  val2 
)
inline

runtime operator==

template<class Unit , class X , class Y >
bool boost::units::operator> ( const quantity< Unit, X > &  val1,
const quantity< Unit, Y > &  val2 
)
inline

runtime operator>

template<class Unit , class X , class Y >
bool boost::units::operator>= ( const quantity< Unit, X > &  val1,
const quantity< Unit, Y > &  val2 
)
inline

runtime operator>=

template<class Rat , class Y >
power_typeof_helper<Y,Rat>::type boost::units::pow ( const Y &  x)
inline

raise a value to a static_rational power.

References boost::program_options::value().

template<long N, class Y >
power_typeof_helper<Y,static_rational<N> >::type boost::units::pow ( const Y &  x)
inline

raise a value to an integer power.

References value().

template<class S , class Y >
quantity<BOOST_UNITS_DIMENSIONLESS_UNIT(S), Y> boost::units::pow ( const quantity< BOOST_UNITS_DIMENSIONLESS_UNIT(S), Y > &  q1,
const quantity< BOOST_UNITS_DIMENSIONLESS_UNIT(S), Y > &  q2 
)
inline

For non-dimensionless quantities, integral and rational powers and roots can be computed by pow<Ex> and root<Rt> respectively.

References pow().

template<class X , class Y >
X boost::units::quantity_cast ( Y &  source)
inline

quantity_cast provides mutating access to underlying quantity value_type

Referenced by modf().

template<class X , class Y >
X boost::units::quantity_cast ( const Y &  source)
inline
std::ios_base& boost::units::raw_format ( std::ios_base &  ios)
inline

set new flag for raw format output, for example "m".

References raw_fmt, and set_format().

template<class T >
std::string boost::units::raw_string ( const T )
template<long N, class Y >
root_typeof_helper<Y,static_rational<N> >::type boost::units::root ( const Y &  x)

take the integer root of a value.

References value().

void boost::units::set_autoprefix ( std::ios_base &  ios,
autoprefix_mode  new_mode 
)
inline

Get format for output.

References autoprefix_mask, and set_flags().

Referenced by binary_prefix(), engineering_prefix(), and no_prefix().

void boost::units::set_flags ( std::ios_base &  ios,
long  new_flags,
long  mask 
)
inline

Set new flags controlling output format.

Referenced by set_autoprefix(), and set_format().

void boost::units::set_format ( std::ios_base &  ios,
format_mode  new_mode 
)
inline

Set new flags controlling output format.

References fmt_mask, and set_flags().

Referenced by name_format(), raw_format(), symbol_format(), and typename_format().

template<class Y >
dimensionless_quantity<si::system,Y>::type boost::units::sin ( const quantity< si::plane_angle, Y > &  theta)

sin of theta in radians

References sin(), and boost::units::quantity< Unit, Y >::value().

Referenced by sin().

template<class System , class Y >
dimensionless_quantity<System,Y>::type boost::units::sin ( const quantity< unit< plane_angle_dimension, System >, Y > &  theta)

sin of theta in other angular units

References sin().

Referenced by sin().

template<class Unit , class Y >
root_typeof_helper< quantity<Unit,Y>, static_rational<2> >::type boost::units::sqrt ( const quantity< Unit, Y > &  q)
inline
template<class Unit , class Y >
void boost::units::swap ( quantity< Unit, Y > &  lhs,
quantity< Unit, Y > &  rhs 
)
inline

swap quantities

std::ios_base& boost::units::symbol_format ( std::ios_base &  ios)
inline

set new format flag for symbol output, for example "m".

References set_format(), and symbol_fmt.

std::string boost::units::symbol_string ( const reduce_unit< cgs::acceleration >::type &  )
inline
template<class T >
std::string boost::units::symbol_string ( const T )
template<long Base, class Exponent >
std::string boost::units::symbol_string ( const scale< Base, Exponent > &  )
template<class Dimension , class System >
std::string boost::units::symbol_string ( const unit< Dimension, System > &  )
inline
template<class Y >
dimensionless_quantity<si::system,Y>::type boost::units::tan ( const quantity< si::plane_angle, Y > &  theta)

tan of theta in radians

References tan(), and boost::units::quantity< Unit, Y >::value().

Referenced by tan().

template<class System , class Y >
dimensionless_quantity<System,Y>::type boost::units::tan ( const quantity< unit< plane_angle_dimension, System >, Y > &  theta)

tan of theta in other angular units

References tan().

Referenced by tan().

template<class T >
std::string boost::units::to_string ( const T t)
inline
template<integer_type N>
std::string boost::units::to_string ( const static_rational< N > &  )

get string representation of integral-valued static_rational.

References N, and to_string().

template<integer_type N, integer_type D>
std::string boost::units::to_string ( const static_rational< N, D > &  )

get string representation of static_rational.

References N, and to_string().

std::ios_base& boost::units::typename_format ( std::ios_base &  ios)
inline

Set new flags for type_name output format.

References set_format(), and typename_fmt.

template<class T >
std::string boost::units::typename_string ( const T )
template<class Dimension , class System >
std::string boost::units::typename_string ( const unit< Dimension, System > &  )
inline

References boost::detail::type.

Referenced by operator<<().

template<class T , integer_type N, integer_type D>
divide_typeof_helper<T,T>::type boost::units::value ( const static_rational< N, D > &   )
inline