/
usr
/
include
/
boost
/
units
/
/usr/include/boost/units
mkdir
upload
Name
Size
Mode
Actions
base_units/
-
0755
rm
detail/
-
0755
rm
physical_dimensions/
-
0755
rm
systems/
-
0755
rm
absolute.hpp
5540
0644
edit
dl
rm
base_dimension.hpp
3692
0644
edit
dl
rm
base_unit.hpp
4132
0644
edit
dl
rm
cmath.hpp
20592
0644
edit
dl
rm
config.hpp
2829
0644
edit
dl
rm
conversion.hpp
9518
0644
edit
dl
rm
derived_dimension.hpp
6465
0644
edit
dl
rm
dim.hpp
4745
0644
edit
dl
rm
dimension.hpp
4403
0644
edit
dl
rm
dimensionless_quantity.hpp
995
0644
edit
dl
rm
dimensionless_type.hpp
1315
0644
edit
dl
rm
dimensionless_unit.hpp
957
0644
edit
dl
rm
get_dimension.hpp
1221
0644
edit
dl
rm
get_system.hpp
1165
0644
edit
dl
rm
heterogeneous_system.hpp
12258
0644
edit
dl
rm
homogeneous_system.hpp
2399
0644
edit
dl
rm
io.hpp
32470
0644
edit
dl
rm
is_dim.hpp
885
0644
edit
dl
rm
is_dimensionless.hpp
1107
0644
edit
dl
rm
is_dimensionless_quantity.hpp
936
0644
edit
dl
rm
is_dimensionless_unit.hpp
905
0644
edit
dl
rm
is_dimension_list.hpp
1057
0644
edit
dl
rm
is_quantity.hpp
916
0644
edit
dl
rm
is_quantity_of_dimension.hpp
1115
0644
edit
dl
rm
is_quantity_of_system.hpp
1097
0644
edit
dl
rm
is_unit.hpp
879
0644
edit
dl
rm
is_unit_of_dimension.hpp
1138
0644
edit
dl
rm
is_unit_of_system.hpp
1127
0644
edit
dl
rm
lambda.hpp
26841
0644
edit
dl
rm
limits.hpp
4345
0644
edit
dl
rm
make_scaled_unit.hpp
1817
0644
edit
dl
rm
make_system.hpp
4914
0644
edit
dl
rm
operators.hpp
6287
0644
edit
dl
rm
physical_dimensions.hpp
4532
0644
edit
dl
rm
pow.hpp
3033
0644
edit
dl
rm
quantity.hpp
41860
0644
edit
dl
rm
reduce_unit.hpp
868
0644
edit
dl
rm
scale.hpp
5062
0644
edit
dl
rm
scaled_base_unit.hpp
3643
0644
edit
dl
rm
static_constant.hpp
2425
0644
edit
dl
rm
static_rational.hpp
10435
0644
edit
dl
rm
unit.hpp
13449
0644
edit
dl
rm
units_fwd.hpp
2191
0644
edit
dl
rm
Edit:
/usr/include/boost/units/homogeneous_system.hpp
(2399B)
// 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_HOMOGENEOUS_SYSTEM_HPP_INCLUDED #define BOOST_UNITS_HOMOGENEOUS_SYSTEM_HPP_INCLUDED #include <boost/mpl/bool.hpp> #include <boost/units/config.hpp> #include <boost/units/static_rational.hpp> #ifdef BOOST_UNITS_CHECK_HOMOGENEOUS_UNITS #include <boost/type_traits/is_same.hpp> #include <boost/mpl/not.hpp> #include <boost/units/detail/linear_algebra.hpp> #endif namespace boost { namespace units { /// A system that can uniquely represent any unit /// which can be composed from a linearly independent set /// of base units. It is safe to rebind a unit with /// such a system to different dimensions. /// /// Do not construct this template directly. Use /// make_system instead. template<class L> struct homogeneous_system { /// INTERNAL ONLY typedef L type; }; template<class T, class E> struct static_power; template<class T, class R> struct static_root; /// INTERNAL ONLY template<class L, long N, long D> struct static_power<homogeneous_system<L>, static_rational<N,D> > { typedef homogeneous_system<L> type; }; /// INTERNAL ONLY template<class L, long N, long D> struct static_root<homogeneous_system<L>, static_rational<N,D> > { typedef homogeneous_system<L> type; }; namespace detail { template<class System, class Dimensions> struct check_system; #ifdef BOOST_UNITS_CHECK_HOMOGENEOUS_UNITS template<class L, class Dimensions> struct check_system<homogeneous_system<L>, Dimensions> : boost::mpl::not_< boost::is_same< typename calculate_base_unit_exponents< L, Dimensions >::type, inconsistent > > {}; #else template<class L, class Dimensions> struct check_system<homogeneous_system<L>, Dimensions> : mpl::true_ {}; #endif } // namespace detail } // namespace units } // namespace boost #if BOOST_UNITS_HAS_BOOST_TYPEOF #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP() BOOST_TYPEOF_REGISTER_TEMPLATE(boost::units::homogeneous_system, (class)) #endif #endif
Save
cmd:
run