Units.hh File Reference
#include <boost/units/cmath.hpp>
#include "boca/units/Prefixes.hh"
Include dependency graph for Units.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  boost::units::root_typeof_helper< quantity< Y >, static_rational< 1, 2 > >
 specialize root typeof helper More...
 
struct  boost::units::root_typeof_helper< double, double >
 specialize root typeof helper More...
 
struct  boca::units::IsQuantity< typename >
 
struct  boca::units::IsQuantity< boost::units::quantity< T > >
 

Namespaces

 boost
 Boost provides free peer-reviewed portable C++ source libraries.
 
 boost::units
 Units: Zero-overhead dimensional analysis and unit/quantity manipulation and conversion.
 
 boca
 Boosted Collider Analysis.
 
 boca::units
 Units.
 

Typedefs

template<typename Value >
using boca::units::OnlyIfQuantity = typename std::enable_if< IsQuantity< Value >::value >::type
 
template<typename Value >
using boca::units::OnlyIfNotQuantity = typename std::enable_if< !IsQuantity< Value >::value >::type
 
template<typename Value , typename Value_2 >
using boca::units::ValueProduct = typename boost::units::multiply_typeof_helper< Value, Value_2 >::type
 
template<typename Value , typename Value_2 >
using boca::units::ValueQuotient = typename boost::units::divide_typeof_helper< Value, Value_2 >::type
 
template<typename Value >
using boca::units::ValueInverse = typename boost::units::divide_typeof_helper< double, Value >::type
 
template<typename Value >
using boca::units::ValueSquare = typename boost::units::multiply_typeof_helper< Value, Value >::type
 
template<typename Value >
using boca::units::ValueSqrt = typename boost::units::root_typeof_helper< Value, double >::type
 
template<typename Value >
using boca::units::ValueCubed = typename boost::units::multiply_typeof_helper< ValueSquare< Value >, Value >::type
 
template<typename Value >
using boca::units::Value4 = typename boost::units::multiply_typeof_helper< ValueSquare< Value >, ValueSquare< Value >>::type
 

Functions

template<class Y >
boost::units::dimensionless_quantity< boost::units::si::system, Y >::type boca::units::sinh (const boost::units::quantity< boost::units::si::plane_angle, Y > &theta)
 sinh of theta in radians More...
 
template<class Y >
boost::units::dimensionless_quantity< boost::units::si::system, Y >::type boca::units::exp (const boost::units::quantity< boost::units::si::plane_angle, Y > &theta)
 exp of theta in radians More...
 
template<class Y >
boost::units::quantity< boost::units::si::plane_angle, Y >::type boca::units::log (const boost::units::dimensionless_quantity< boost::units::si::system, Y > &number)
 log returning Angle More...
 
template<class Y >
boost::units::quantity< boost::units::si::plane_angle, Y >::type boca::units::log (const boost::units::dimensionless_quantity< electronvolt::System, Y > &number)
 log returning Angle More...
 
template<class Y , typename = OnlyIfNotQuantity<Y>>
Angle boca::units::log (Y const &number)
 
template<class Unit , class Y >
boost::units::root_typeof_helper< boost::units::quantity< Unit, Y >, boost::units::static_rational< 3 > >::type boca::units::cbrt (const boost::units::quantity< Unit, Y > &q)
 
template<class Unit , class Y >
boost::units::quantity< Unit, Y > max boca::units::BOOST_PREVENT_MACRO_SUBSTITUTION (const boost::units::quantity< Unit, Y > &q1, const boost::units::quantity< Unit, Y > &q2)
 
template<class Unit , class Y >
boost::units::quantity< Unit, Y > min boca::units::BOOST_PREVENT_MACRO_SUBSTITUTION (const boost::units::quantity< Unit, Y > &q1, const boost::units::quantity< Unit, Y > &q2)
 
template<typename Value >
ValueSqrt< Value > boca::units::sqrt (Value const &value)
 Square Root. More...
 
template<typename Value >
ValueSqrt< Value > boca::units::sqrt (Value const &value, std::false_type)
 Square Root. More...
 
template<typename Value >
ValueSqrt< Value > boca::units::sqrt (Value const &value, std::true_type)
 Square Root. More...
 
template<typename Value >
Angle boca::units::atan2 (Value const &value_1, Value const &value_2)
 Arctangent2 \(\mathrm{Pr}\ \mathrm{arg}(x+iy) = \mathrm{Arg}(x+iy)\). More...
 
template<typename Value >
Angle boca::units::atan2 (Value const &value_1, Value const &value_2, std::false_type)
 Arctangent2 \(\mathrm{Pr}\ \mathrm{arg}(x+iy) = \mathrm{Arg}(x+iy)\). More...
 
template<typename Value >
Angle boca::units::atan2 (Value const &value_1, Value const &value_2, std::true_type)
 Arctangent2 \(\mathrm{Pr}\ \mathrm{arg}(x+iy) = \mathrm{Arg}(x+iy)\). More...
 
template<typename Value >
Angle boca::units::acos (Value const &value_1)
 Arccosine. More...
 
template<typename Value >
Angle boca::units::acos (Value const &value_1, std::false_type)
 Arccosine. More...
 
template<typename Value >
Angle boca::units::acos (Value const &value_1, std::true_type)
 Arccosine. More...
 
template<typename Value >
Value boca::units::abs (Value const &value)
 Absolute value. More...
 
template<typename Value >
Value boca::units::abs (Value const &value, std::false_type)
 Absolute value. More...
 
template<typename Value >
Value boca::units::abs (Value const &value, std::true_type)
 Absolute value. More...
 
template<typename Value >
Value boca::units::max (Value const &value_1, Value const &value_2)
 Maximal value. More...
 
template<typename Value >
Value boca::units::max (Value const &value_1, Value const &value_2, std::false_type)
 Maximal value. More...
 
template<typename Value >
Value boca::units::max (Value const &value_1, Value const &value_2, std::true_type)
 Maximal value. More...