/usr/include/boost/units
NameSizeModeActions
base_units/-0755rm
detail/-0755rm
physical_dimensions/-0755rm
systems/-0755rm
absolute.hpp55400644editdlrm
base_dimension.hpp36920644editdlrm
base_unit.hpp41320644editdlrm
cmath.hpp205920644editdlrm
config.hpp28290644editdlrm
conversion.hpp95180644editdlrm
derived_dimension.hpp64650644editdlrm
dim.hpp47450644editdlrm
dimension.hpp44030644editdlrm
dimensionless_quantity.hpp9950644editdlrm
dimensionless_type.hpp13150644editdlrm
dimensionless_unit.hpp9570644editdlrm
get_dimension.hpp12210644editdlrm
get_system.hpp11650644editdlrm
heterogeneous_system.hpp122580644editdlrm
homogeneous_system.hpp23990644editdlrm
io.hpp324700644editdlrm
is_dim.hpp8850644editdlrm
is_dimensionless.hpp11070644editdlrm
is_dimensionless_quantity.hpp9360644editdlrm
is_dimensionless_unit.hpp9050644editdlrm
is_dimension_list.hpp10570644editdlrm
is_quantity.hpp9160644editdlrm
is_quantity_of_dimension.hpp11150644editdlrm
is_quantity_of_system.hpp10970644editdlrm
is_unit.hpp8790644editdlrm
is_unit_of_dimension.hpp11380644editdlrm
is_unit_of_system.hpp11270644editdlrm
lambda.hpp268410644editdlrm
limits.hpp43450644editdlrm
make_scaled_unit.hpp18170644editdlrm
make_system.hpp49140644editdlrm
operators.hpp62870644editdlrm
physical_dimensions.hpp45320644editdlrm
pow.hpp30330644editdlrm
quantity.hpp418600644editdlrm
reduce_unit.hpp8680644editdlrm
scale.hpp50620644editdlrm
scaled_base_unit.hpp36430644editdlrm
static_constant.hpp24250644editdlrm
static_rational.hpp104350644editdlrm
unit.hpp134490644editdlrm
units_fwd.hpp21910644editdlrm
Edit: /usr/include/boost/units/scaled_base_unit.hpp (3643B)
// Boost.Units - A C++ library for zero-overhead dimensional analysis and // unit/quantity manipulation and conversion // // Copyright (C) 2003-2008 Matthias Christian Schabel // Copyright (C) 2008 Steven Watanabe // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_UNITS_SCALED_BASE_UNIT_HPP_INCLUDED #define BOOST_UNITS_SCALED_BASE_UNIT_HPP_INCLUDED #include #include #include #include #include #include #include #include namespace boost { namespace units { template struct heterogeneous_system; template struct heterogeneous_system_impl; template struct heterogeneous_system_dim; template struct base_unit_info; /// INTERNAL ONLY struct scaled_base_unit_tag {}; template struct scaled_base_unit { /// INTERNAL ONLY typedef void boost_units_is_base_unit_type; typedef scaled_base_unit type; typedef scaled_base_unit_tag tag; typedef S system_type; typedef Scale scale_type; typedef typename S::dimension_type dimension_type; #ifdef BOOST_UNITS_DOXYGEN typedef detail::unspecified unit_type; #else typedef unit< dimension_type, heterogeneous_system< heterogeneous_system_impl< list< heterogeneous_system_dim >, dimensionless_type >, dimension_type, dimensionless_type > > > unit_type; #endif static std::string symbol() { return(Scale::symbol() + base_unit_info::symbol()); } static std::string name() { return(Scale::name() + base_unit_info::name()); } }; } // namespace units } // namespace boost #if BOOST_UNITS_HAS_BOOST_TYPEOF #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP() BOOST_TYPEOF_REGISTER_TEMPLATE(boost::units::scaled_base_unit, (class)(class)) #endif namespace boost { #ifndef BOOST_UNITS_DOXYGEN namespace mpl { /// INTERNAL ONLY template struct less_impl { template struct apply : mpl::bool_< mpl::less::value || (boost::is_same::value && ((T0::scale_type::exponent::Numerator) < 0)) > {}; }; /// INTERNAL ONLY template struct less_impl { template struct apply : mpl::bool_< mpl::less::value || (boost::is_same::value && ((T1::scale_type::exponent::Numerator) > 0)) > {}; }; /// INTERNAL ONLY template<> struct less_impl { template struct apply : mpl::bool_< mpl::less::value || ((boost::is_same::value) && ((T0::scale_type::base) < (T1::scale_type::base) || ((T0::scale_type::base) == (T1::scale_type::base) && mpl::less::value))) > {}; }; } // namespace mpl #endif } // namespace boost #endif