Added boost header
This commit is contained in:
36
test/external/boost/units/base_units/angle/arcminute.hpp
vendored
Normal file
36
test/external/boost/units/base_units/angle/arcminute.hpp
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
// 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) 2007-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_UNIT_BASE_UNITS_ANGLE_ARCMINUTE_HPP_INCLUDED
|
||||
#define BOOST_UNIT_BASE_UNITS_ANGLE_ARCMINUTE_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/angle/degree.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace units {
|
||||
namespace angle {
|
||||
|
||||
typedef scaled_base_unit<degree_base_unit, scale<60, static_rational<-1> > > arcminute_base_unit;
|
||||
|
||||
}
|
||||
|
||||
template<>
|
||||
struct base_unit_info<angle::arcminute_base_unit> {
|
||||
static const char* name() { return("arcminute"); }
|
||||
static const char* symbol() { return("'"); }
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif // BOOST_UNIT_BASE_UNITS_ANGLE_ARCMINUTE_HPP_INCLUDED
|
||||
37
test/external/boost/units/base_units/angle/arcsecond.hpp
vendored
Normal file
37
test/external/boost/units/base_units/angle/arcsecond.hpp
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_ANGLE_ARCSECOND_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_ANGLE_ARCSECOND_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/angle/degree.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace units {
|
||||
namespace angle {
|
||||
|
||||
//typedef scaled_base_unit<degree_base_unit, scale<60, static_rational<-2> > > arcsecond_base_unit;
|
||||
typedef scaled_base_unit<degree_base_unit, scale<3600, static_rational<-1> > > arcsecond_base_unit;
|
||||
|
||||
}
|
||||
|
||||
template<>
|
||||
struct base_unit_info<angle::arcsecond_base_unit> {
|
||||
static const char* name() { return("arcsecond"); }
|
||||
static const char* symbol() { return("\""); }
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_ANGLE_ARCSECOND_HPP_INCLUDED
|
||||
27
test/external/boost/units/base_units/angle/degree.hpp
vendored
Normal file
27
test/external/boost/units/base_units/angle/degree.hpp
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
// 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) 2007-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_ANGLE_DEGREE_BASE_UNIT_HPP
|
||||
#define BOOST_UNITS_ANGLE_DEGREE_BASE_UNIT_HPP
|
||||
|
||||
#include <boost/units/conversion.hpp>
|
||||
#include <boost/units/base_units/angle/radian.hpp>
|
||||
|
||||
BOOST_UNITS_DEFINE_BASE_UNIT_WITH_CONVERSIONS(angle,degree,"degree","deg",6.28318530718/360.,boost::units::angle::radian_base_unit,-101);
|
||||
|
||||
#if BOOST_UNITS_HAS_BOOST_TYPEOF
|
||||
|
||||
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
|
||||
|
||||
BOOST_TYPEOF_REGISTER_TYPE(boost::units::angle::degree_base_unit)
|
||||
|
||||
#endif
|
||||
|
||||
#endif // BOOST_UNITS_ANGLE_DEGREE_BASE_UNIT_HPP
|
||||
27
test/external/boost/units/base_units/angle/gradian.hpp
vendored
Normal file
27
test/external/boost/units/base_units/angle/gradian.hpp
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
// 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) 2007-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_ANGLE_GRADIAN_BASE_UNIT_HPP
|
||||
#define BOOST_UNITS_ANGLE_GRADIAN_BASE_UNIT_HPP
|
||||
|
||||
#include <boost/units/conversion.hpp>
|
||||
#include <boost/units/base_units/angle/radian.hpp>
|
||||
|
||||
BOOST_UNITS_DEFINE_BASE_UNIT_WITH_CONVERSIONS(angle,gradian,"gradian","grad",6.28318530718/400.,boost::units::angle::radian_base_unit,-102);
|
||||
|
||||
#if BOOST_UNITS_HAS_BOOST_TYPEOF
|
||||
|
||||
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
|
||||
|
||||
BOOST_TYPEOF_REGISTER_TYPE(boost::units::angle::gradian_base_unit)
|
||||
|
||||
#endif
|
||||
|
||||
#endif // BOOST_UNITS_ANGLE_GRADIAN_BASE_UNIT_HPP
|
||||
48
test/external/boost/units/base_units/angle/radian.hpp
vendored
Normal file
48
test/external/boost/units/base_units/angle/radian.hpp
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
// 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) 2007-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_ANGLE_RADIAN_BASE_UNIT_HPP
|
||||
#define BOOST_UNITS_ANGLE_RADIAN_BASE_UNIT_HPP
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <boost/units/config.hpp>
|
||||
#include <boost/units/base_unit.hpp>
|
||||
#include <boost/units/physical_dimensions/plane_angle.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace angle {
|
||||
|
||||
struct radian_base_unit : public base_unit<radian_base_unit, plane_angle_dimension, -2>
|
||||
{
|
||||
static std::string name() { return("radian"); }
|
||||
static std::string symbol() { return("rad"); }
|
||||
};
|
||||
|
||||
} // namespace angle
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#if BOOST_UNITS_HAS_BOOST_TYPEOF
|
||||
|
||||
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
|
||||
|
||||
BOOST_TYPEOF_REGISTER_TYPE(boost::units::angle::radian_base_unit)
|
||||
|
||||
#endif
|
||||
|
||||
//#include <boost/units/base_units/angle/conversions.hpp>
|
||||
|
||||
#endif // BOOST_UNITS_ANGLE_RADIAN_BASE_UNIT_HPP
|
||||
36
test/external/boost/units/base_units/angle/revolution.hpp
vendored
Normal file
36
test/external/boost/units/base_units/angle/revolution.hpp
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
// 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) 2007-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_BASE_UNITS_REVOLUTION_HPP
|
||||
#define BOOST_UNITS_BASE_UNITS_REVOLUTION_HPP
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/angle/degree.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace units {
|
||||
namespace angle {
|
||||
|
||||
typedef scaled_base_unit<degree_base_unit, scale<360, static_rational<1> > > revolution_base_unit;
|
||||
|
||||
}
|
||||
|
||||
template<>
|
||||
struct base_unit_info<angle::revolution_base_unit> {
|
||||
static const char* name() { return("revolution"); }
|
||||
static const char* symbol() { return("rev"); }
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif // BOOST_UNITS_BASE_UNITS_REVOLUTION_HPP
|
||||
48
test/external/boost/units/base_units/angle/steradian.hpp
vendored
Normal file
48
test/external/boost/units/base_units/angle/steradian.hpp
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
// 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) 2007-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_ANGLE_STERADIAN_BASE_UNIT_HPP
|
||||
#define BOOST_UNITS_ANGLE_STERADIAN_BASE_UNIT_HPP
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <boost/units/config.hpp>
|
||||
#include <boost/units/base_unit.hpp>
|
||||
#include <boost/units/physical_dimensions/solid_angle.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace angle {
|
||||
|
||||
struct steradian_base_unit : public base_unit<steradian_base_unit, solid_angle_dimension, -1>
|
||||
{
|
||||
static std::string name() { return("steradian"); }
|
||||
static std::string symbol() { return("sr"); }
|
||||
};
|
||||
|
||||
} // namespace angle
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#if BOOST_UNITS_HAS_BOOST_TYPEOF
|
||||
|
||||
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
|
||||
|
||||
BOOST_TYPEOF_REGISTER_TYPE(boost::units::angle::steradian_base_unit)
|
||||
|
||||
#endif
|
||||
|
||||
//#include <boost/units/base_units/angle/conversions.hpp>
|
||||
|
||||
#endif // BOOST_UNITS_ANGLE_STERADIAN_BASE_UNIT_HPP
|
||||
27
test/external/boost/units/base_units/astronomical/astronomical_unit.hpp
vendored
Normal file
27
test/external/boost/units/base_units/astronomical/astronomical_unit.hpp
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_ASTRONOMICAL_ASTRONOMICAL_UNIT_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_ASTRONOMICAL_ASTRONOMICAL_UNIT_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/conversion.hpp>
|
||||
#include <boost/units/base_units/si/meter.hpp>
|
||||
|
||||
BOOST_UNITS_DEFINE_BASE_UNIT_WITH_CONVERSIONS(astronomical, astronomical_unit, "astronomical unit", "a.u.", 149597870691.0, boost::units::si::meter_base_unit, -207);
|
||||
|
||||
#if BOOST_UNITS_HAS_BOOST_TYPEOF
|
||||
|
||||
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
|
||||
|
||||
BOOST_TYPEOF_REGISTER_TYPE(boost::units::astronomical::astronomical_unit_base_unit)
|
||||
|
||||
#endif
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_ASTRONOMICAL_ASTRONOMICAL_UNIT_HPP_INCLUDED
|
||||
39
test/external/boost/units/base_units/astronomical/light_day.hpp
vendored
Normal file
39
test/external/boost/units/base_units/astronomical/light_day.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_ASTRONOMICAL_LIGHT_DAY_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_ASTRONOMICAL_LIGHT_DAY_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/astronomical/light_second.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace astronomical {
|
||||
|
||||
typedef scaled_base_unit<boost::units::astronomical::light_second_base_unit, scale<86400, static_rational<1> > > light_day_base_unit;
|
||||
|
||||
} // namespace astronomical
|
||||
|
||||
template<>
|
||||
struct base_unit_info<astronomical::light_day_base_unit> {
|
||||
static const char* name() { return("light day"); }
|
||||
static const char* symbol() { return("ldy"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_ASTRONOMICAL_LIGHT_DAY_HPP_INCLUDED
|
||||
39
test/external/boost/units/base_units/astronomical/light_hour.hpp
vendored
Normal file
39
test/external/boost/units/base_units/astronomical/light_hour.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_ASTRONOMICAL_LIGHT_HOUR_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_ASTRONOMICAL_LIGHT_HOUR_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/astronomical/light_second.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace astronomical {
|
||||
|
||||
typedef scaled_base_unit<boost::units::astronomical::light_second_base_unit, scale<3600, static_rational<1> > > light_hour_base_unit;
|
||||
|
||||
} // namespace astronomical
|
||||
|
||||
template<>
|
||||
struct base_unit_info<astronomical::light_hour_base_unit> {
|
||||
static const char* name() { return("light hour"); }
|
||||
static const char* symbol() { return("lhr"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_ASTRONOMICAL_LIGHT_HOUR_HPP_INCLUDED
|
||||
39
test/external/boost/units/base_units/astronomical/light_minute.hpp
vendored
Normal file
39
test/external/boost/units/base_units/astronomical/light_minute.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_ASTRONOMICAL_LIGHT_MINUTE_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_ASTRONOMICAL_LIGHT_MINUTE_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/astronomical/light_second.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace astronomical {
|
||||
|
||||
typedef scaled_base_unit<boost::units::astronomical::light_second_base_unit, scale<60, static_rational<1> > > light_minute_base_unit;
|
||||
|
||||
} // namespace astronomical
|
||||
|
||||
template<>
|
||||
struct base_unit_info<astronomical::light_minute_base_unit> {
|
||||
static const char* name() { return("light minute"); }
|
||||
static const char* symbol() { return("lmn"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_ASTRONOMICAL_LIGHT_MINUTE_HPP_INCLUDED
|
||||
27
test/external/boost/units/base_units/astronomical/light_second.hpp
vendored
Normal file
27
test/external/boost/units/base_units/astronomical/light_second.hpp
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_ASTRONOMICAL_LIGHT_SECOND_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_ASTRONOMICAL_LIGHT_SECOND_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/conversion.hpp>
|
||||
#include <boost/units/base_units/si/meter.hpp>
|
||||
|
||||
BOOST_UNITS_DEFINE_BASE_UNIT_WITH_CONVERSIONS(astronomical, light_second, "light second", "lsc", 2.99792458e8, boost::units::si::meter_base_unit, -201);
|
||||
|
||||
#if BOOST_UNITS_HAS_BOOST_TYPEOF
|
||||
|
||||
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
|
||||
|
||||
BOOST_TYPEOF_REGISTER_TYPE(boost::units::astronomical::light_second_base_unit)
|
||||
|
||||
#endif
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_ASTRONOMICAL_LIGHT_SECOND_HPP_INCLUDED
|
||||
39
test/external/boost/units/base_units/astronomical/light_year.hpp
vendored
Normal file
39
test/external/boost/units/base_units/astronomical/light_year.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_ASTRONOMICAL_LIGHT_YEAR_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_ASTRONOMICAL_LIGHT_YEAR_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/astronomical/light_second.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace astronomical {
|
||||
|
||||
typedef scaled_base_unit<boost::units::astronomical::light_second_base_unit, scale<31557600, static_rational<1> > > light_year_base_unit;
|
||||
|
||||
} // namespace astronomical
|
||||
|
||||
template<>
|
||||
struct base_unit_info<astronomical::light_year_base_unit> {
|
||||
static const char* name() { return("light year"); }
|
||||
static const char* symbol() { return("ly"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_ASTRONOMICAL_LIGHT_YEAR_HPP_INCLUDED
|
||||
27
test/external/boost/units/base_units/astronomical/parsec.hpp
vendored
Normal file
27
test/external/boost/units/base_units/astronomical/parsec.hpp
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_ASTRONOMICAL_PARSEC_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_ASTRONOMICAL_PARSEC_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/conversion.hpp>
|
||||
#include <boost/units/base_units/si/meter.hpp>
|
||||
|
||||
BOOST_UNITS_DEFINE_BASE_UNIT_WITH_CONVERSIONS(astronomical, parsec, "parsec", "psc", 3.0856775813e16, boost::units::si::meter_base_unit, -206);
|
||||
|
||||
#if BOOST_UNITS_HAS_BOOST_TYPEOF
|
||||
|
||||
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
|
||||
|
||||
BOOST_TYPEOF_REGISTER_TYPE(boost::units::astronomical::parsec_base_unit)
|
||||
|
||||
#endif
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_ASTRONOMICAL_PARSEC_HPP_INCLUDED
|
||||
31
test/external/boost/units/base_units/cgs/biot.hpp
vendored
Normal file
31
test/external/boost/units/base_units/cgs/biot.hpp
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
// 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) 2007-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_CGS_BIOT_BASE_UNIT_HPP
|
||||
#define BOOST_UNITS_CGS_BIOT_BASE_UNIT_HPP
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/base_units/si/ampere.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace cgs {
|
||||
|
||||
typedef scaled_base_unit<boost::units::si::ampere_base_unit, scale<10, static_rational<-1> > > biot_base_unit;
|
||||
|
||||
} // namespace cgs
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNITS_CGS_BIOT_BASE_UNIT_HPP
|
||||
31
test/external/boost/units/base_units/cgs/centimeter.hpp
vendored
Normal file
31
test/external/boost/units/base_units/cgs/centimeter.hpp
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
// 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) 2007-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_CENTIMETER_BASE_UNIT_HPP
|
||||
#define BOOST_UNITS_CENTIMETER_BASE_UNIT_HPP
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/base_units/si/meter.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace cgs {
|
||||
|
||||
typedef scaled_base_unit<boost::units::si::meter_base_unit, scale<10, static_rational<-2> > > centimeter_base_unit;
|
||||
|
||||
} // namespace cgs
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNITS_CENTIMETER_BASE_UNIT_HPP
|
||||
49
test/external/boost/units/base_units/cgs/gram.hpp
vendored
Normal file
49
test/external/boost/units/base_units/cgs/gram.hpp
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
// 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) 2007-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_CGS_GRAM_BASE_UNIT_HPP
|
||||
#define BOOST_UNITS_CGS_GRAM_BASE_UNIT_HPP
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <boost/units/config.hpp>
|
||||
#include <boost/units/base_unit.hpp>
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/physical_dimensions/mass.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace cgs {
|
||||
|
||||
struct gram_base_unit : public base_unit<gram_base_unit, mass_dimension, -8>
|
||||
{
|
||||
static std::string name() { return("gram"); }
|
||||
static std::string symbol() { return("g"); }
|
||||
};
|
||||
|
||||
} // namespace cgs
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#if BOOST_UNITS_HAS_BOOST_TYPEOF
|
||||
|
||||
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
|
||||
|
||||
BOOST_TYPEOF_REGISTER_TYPE(boost::units::cgs::gram_base_unit)
|
||||
|
||||
#endif
|
||||
|
||||
//#include <boost/units/base_units/detail/conversions.hpp>
|
||||
|
||||
#endif // BOOST_UNITS_CGS_GRAM_BASE_UNIT_HPP
|
||||
46
test/external/boost/units/base_units/imperial/conversions.hpp
vendored
Normal file
46
test/external/boost/units/base_units/imperial/conversions.hpp
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
// 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) 2007-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)
|
||||
|
||||
// No include guards. This header is intended to be included
|
||||
// multiple times.
|
||||
|
||||
// imperial units
|
||||
|
||||
#if 0
|
||||
|
||||
#if defined(BOOST_UNITS_BASE_UNITS_IMPERIAL_PINT_HPP_INCLUDED) && defined(BOOST_UNITS_BASE_UNITS_IMPERIAL_GALLON_HPP_INCLUDED) &&\
|
||||
!defined(BOOST_BOOST_UNITS_BASE_UNITS_IMPERIAL_PINT_TO_GALLON_CONVERSION_DEFINED)
|
||||
#define BOOST_BOOST_UNITS_BASE_UNITS_IMPERIAL_PINT_TO_GALLON_CONVERSION_DEFINED
|
||||
#include <boost/units/conversion.hpp>
|
||||
BOOST_UNITS_DEFINE_CONVERSION_FACTOR(boost::units::imperial::pint_base_unit,boost::units::imperial::gallon_base_unit, double, 1./8.);
|
||||
#endif
|
||||
|
||||
#if defined(BOOST_UNITS_BASE_UNITS_IMPERIAL_PINT_HPP_INCLUDED) && defined(BOOST_UNITS_BASE_UNITS_IMPERIAL_QUART_HPP_INCLUDED) &&\
|
||||
!defined(BOOST_BOOST_UNITS_BASE_UNITS_IMPERIAL_PINT_TO_QUART_CONVERSION_DEFINED)
|
||||
#define BOOST_BOOST_UNITS_BASE_UNITS_IMPERIAL_PINT_TO_QUART_CONVERSION_DEFINED
|
||||
#include <boost/units/conversion.hpp>
|
||||
BOOST_UNITS_DEFINE_CONVERSION_FACTOR(boost::units::imperial::pint_base_unit,boost::units::imperial::quart_base_unit, double, 1./2.);
|
||||
#endif
|
||||
|
||||
#if defined(BOOST_UNITS_BASE_UNITS_IMPERIAL_PINT_HPP_INCLUDED) && defined(BOOST_UNITS_BASE_UNITS_IMPERIAL_GILL_HPP_INCLUDED) &&\
|
||||
!defined(BOOST_BOOST_UNITS_BASE_UNITS_IMPERIAL_PINT_TO_GILL_CONVERSION_DEFINED)
|
||||
#define BOOST_BOOST_UNITS_BASE_UNITS_IMPERIAL_PINT_TO_GILL_CONVERSION_DEFINED
|
||||
#include <boost/units/conversion.hpp>
|
||||
BOOST_UNITS_DEFINE_CONVERSION_FACTOR(boost::units::imperial::pint_base_unit,boost::units::imperial::gill_base_unit, double, 4.);
|
||||
#endif
|
||||
|
||||
#if defined(BOOST_UNITS_BASE_UNITS_IMPERIAL_PINT_HPP_INCLUDED) && defined(BOOST_UNITS_BASE_UNITS_IMPERIAL_FLUID_OUNCE_HPP_INCLUDED) &&\
|
||||
!defined(BOOST_BOOST_UNITS_BASE_UNITS_IMPERIAL_PINT_TO_FLUID_OUNCE_CONVERSION_DEFINED)
|
||||
#define BOOST_BOOST_UNITS_BASE_UNITS_IMPERIAL_PINT_TO_FLUID_OUNCE_CONVERSION_DEFINED
|
||||
#include <boost/units/conversion.hpp>
|
||||
BOOST_UNITS_DEFINE_CONVERSION_FACTOR(boost::units::imperial::pint_base_unit,boost::units::imperial::fluid_ounce_base_unit, double, 20.);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
39
test/external/boost/units/base_units/imperial/drachm.hpp
vendored
Normal file
39
test/external/boost/units/base_units/imperial/drachm.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_IMPERIAL_DRACHM_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_IMPERIAL_DRACHM_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/imperial/pound.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace imperial {
|
||||
|
||||
typedef scaled_base_unit<pound_base_unit, scale<16, static_rational<-2> > > drachm_base_unit;
|
||||
|
||||
} // namespace imperial
|
||||
|
||||
template<>
|
||||
struct base_unit_info<imperial::drachm_base_unit> {
|
||||
static const char* name() { return("drachm"); }
|
||||
static const char* symbol() { return("drachm"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_IMPERIAL_DRACHM_HPP_INCLUDED
|
||||
39
test/external/boost/units/base_units/imperial/fluid_ounce.hpp
vendored
Normal file
39
test/external/boost/units/base_units/imperial/fluid_ounce.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_BASE_UNITS_IMPERIAL_FLUID_OUNCE_HPP_INCLUDED
|
||||
#define BOOST_UNITS_BASE_UNITS_IMPERIAL_FLUID_OUNCE_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/imperial/pint.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace imperial {
|
||||
|
||||
typedef scaled_base_unit<pint_base_unit, scale<20, static_rational<-1> > > fluid_ounce_base_unit;
|
||||
|
||||
} // namespace imperial
|
||||
|
||||
template<>
|
||||
struct base_unit_info<imperial::fluid_ounce_base_unit> {
|
||||
static const char* name() { return("fluid ounce (imp.)"); }
|
||||
static const char* symbol() { return("fl oz"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNITS_BASE_UNITS_IMPERIAL_FLUID_OUNCE_HPP_INCLUDED
|
||||
39
test/external/boost/units/base_units/imperial/foot.hpp
vendored
Normal file
39
test/external/boost/units/base_units/imperial/foot.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_IMPERIAL_FOOT_BASE_UNIT_HPP
|
||||
#define BOOST_UNITS_IMPERIAL_FOOT_BASE_UNIT_HPP
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/imperial/yard.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace imperial {
|
||||
|
||||
typedef scaled_base_unit<yard_base_unit, scale<3, static_rational<-1> > > foot_base_unit;
|
||||
|
||||
} // namespace imperial
|
||||
|
||||
template<>
|
||||
struct base_unit_info<imperial::foot_base_unit> {
|
||||
static const char* name() { return("foot"); }
|
||||
static const char* symbol() { return("ft"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNITS_IMPERIAL_FOOT_BASE_UNIT_HPP
|
||||
39
test/external/boost/units/base_units/imperial/furlong.hpp
vendored
Normal file
39
test/external/boost/units/base_units/imperial/furlong.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_IMPERIAL_FURLONG_BASE_UNIT_HPP
|
||||
#define BOOST_UNITS_IMPERIAL_FURLONG_BASE_UNIT_HPP
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/imperial/yard.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace imperial {
|
||||
|
||||
typedef scaled_base_unit<yard_base_unit, scale<220, static_rational<1> > > furlong_base_unit;
|
||||
|
||||
} // namespace imperial
|
||||
|
||||
template<>
|
||||
struct base_unit_info<imperial::furlong_base_unit> {
|
||||
static const char* name() { return("furlong"); }
|
||||
static const char* symbol() { return("furlong"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNITS_IMPERIAL_FURLONG_BASE_UNIT_HPP
|
||||
40
test/external/boost/units/base_units/imperial/gallon.hpp
vendored
Normal file
40
test/external/boost/units/base_units/imperial/gallon.hpp
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
// 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) 2007-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_BASE_UNITS_IMPERIAL_GALLON_HPP_INCLUDED
|
||||
#define BOOST_UNITS_BASE_UNITS_IMPERIAL_GALLON_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/imperial/pint.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace imperial {
|
||||
|
||||
//typedef scaled_base_unit<pint_base_unit, scale<2, static_rational<3> > > gallon_base_unit;
|
||||
typedef scaled_base_unit<pint_base_unit, scale<8, static_rational<1> > > gallon_base_unit;
|
||||
|
||||
} // namespace imperial
|
||||
|
||||
template<>
|
||||
struct base_unit_info<imperial::gallon_base_unit> {
|
||||
static const char* name() { return("gallon (imp.)"); }
|
||||
static const char* symbol() { return("gal"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNITS_BASE_UNITS_IMPERIAL_GALLON_HPP_INCLUDED
|
||||
40
test/external/boost/units/base_units/imperial/gill.hpp
vendored
Normal file
40
test/external/boost/units/base_units/imperial/gill.hpp
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
// 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) 2007-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_BASE_UNITS_IMPERIAL_GILL_HPP_INCLUDED
|
||||
#define BOOST_UNITS_BASE_UNITS_IMPERIAL_GILL_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/imperial/pint.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace imperial {
|
||||
|
||||
//typedef scaled_base_unit<pint_base_unit, scale<2, static_rational<-2> > > gill_base_unit;
|
||||
typedef scaled_base_unit<pint_base_unit, scale<4, static_rational<-1> > > gill_base_unit;
|
||||
|
||||
} // namespace imperial
|
||||
|
||||
template<>
|
||||
struct base_unit_info<imperial::gill_base_unit> {
|
||||
static const char* name() { return("gill (imp.)"); }
|
||||
static const char* symbol() { return("gill"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNITS_BASE_UNITS_IMPERIAL_GILL_HPP_INCLUDED
|
||||
39
test/external/boost/units/base_units/imperial/grain.hpp
vendored
Normal file
39
test/external/boost/units/base_units/imperial/grain.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_IMPERIAL_GRAIN_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_IMPERIAL_GRAIN_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/imperial/pound.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace imperial {
|
||||
|
||||
typedef scaled_base_unit<pound_base_unit, scale<7000, static_rational<-1> > > grain_base_unit;
|
||||
|
||||
} // namespace imperial
|
||||
|
||||
template<>
|
||||
struct base_unit_info<imperial::grain_base_unit> {
|
||||
static const char* name() { return("grain"); }
|
||||
static const char* symbol() { return("grain"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_IMPERIAL_GRAIN_HPP_INCLUDED
|
||||
39
test/external/boost/units/base_units/imperial/hundredweight.hpp
vendored
Normal file
39
test/external/boost/units/base_units/imperial/hundredweight.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_IMPERIAL_HUNDREDWEIGHT_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_IMPERIAL_HUNDREDWEIGHT_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/imperial/pound.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace imperial {
|
||||
|
||||
typedef scaled_base_unit<pound_base_unit, scale<112, static_rational<1> > > hundredweight_base_unit;
|
||||
|
||||
} // namespace imperial
|
||||
|
||||
template<>
|
||||
struct base_unit_info<imperial::hundredweight_base_unit> {
|
||||
static const char* name() { return("hundredweight"); }
|
||||
static const char* symbol() { return("cwt"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_IMPERIAL_HUNDREDWEIGHT_HPP_INCLUDED
|
||||
39
test/external/boost/units/base_units/imperial/inch.hpp
vendored
Normal file
39
test/external/boost/units/base_units/imperial/inch.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_IMPERIAL_INCH_BASE_UNIT_HPP
|
||||
#define BOOST_UNITS_IMPERIAL_INCH_BASE_UNIT_HPP
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/imperial/yard.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace imperial {
|
||||
|
||||
typedef scaled_base_unit<yard_base_unit, scale<36, static_rational<-1> > > inch_base_unit;
|
||||
|
||||
} // namespace imperial
|
||||
|
||||
template<>
|
||||
struct base_unit_info<imperial::inch_base_unit> {
|
||||
static const char* name() { return("inch"); }
|
||||
static const char* symbol() { return("in"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNITS_IMPERIAL_INCH_BASE_UNIT_HPP
|
||||
39
test/external/boost/units/base_units/imperial/league.hpp
vendored
Normal file
39
test/external/boost/units/base_units/imperial/league.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_IMPERIAL_LEAGUE_BASE_UNIT_HPP
|
||||
#define BOOST_UNITS_IMPERIAL_LEAGUE_BASE_UNIT_HPP
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/imperial/yard.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace imperial {
|
||||
|
||||
typedef scaled_base_unit<yard_base_unit, scale<5280, static_rational<1> > > league_base_unit;
|
||||
|
||||
} // namespace imperial
|
||||
|
||||
template<>
|
||||
struct base_unit_info<imperial::league_base_unit> {
|
||||
static const char* name() { return("league"); }
|
||||
static const char* symbol() { return("league"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNITS_IMPERIAL_LEAGUE_BASE_UNIT_HPP
|
||||
39
test/external/boost/units/base_units/imperial/mile.hpp
vendored
Normal file
39
test/external/boost/units/base_units/imperial/mile.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_IMPERIAL_MILE_BASE_UNIT_HPP
|
||||
#define BOOST_UNITS_IMPERIAL_MILE_BASE_UNIT_HPP
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/imperial/yard.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace imperial {
|
||||
|
||||
typedef scaled_base_unit<yard_base_unit, scale<1760, static_rational<1> > > mile_base_unit;
|
||||
|
||||
} // namespace imperial
|
||||
|
||||
template<>
|
||||
struct base_unit_info<imperial::mile_base_unit> {
|
||||
static const char* name() { return("mile"); }
|
||||
static const char* symbol() { return("mi"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNITS_IMPERIAL_MILE_BASE_UNIT_HPP
|
||||
39
test/external/boost/units/base_units/imperial/ounce.hpp
vendored
Normal file
39
test/external/boost/units/base_units/imperial/ounce.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_IMPERIAL_OUNCE_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_IMPERIAL_OUNCE_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/imperial/pound.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace imperial {
|
||||
|
||||
typedef scaled_base_unit<pound_base_unit, scale<2, static_rational<-4> > > ounce_base_unit;
|
||||
|
||||
} // namespace imperial
|
||||
|
||||
template<>
|
||||
struct base_unit_info<imperial::ounce_base_unit> {
|
||||
static const char* name() { return("ounce"); }
|
||||
static const char* symbol() { return("oz"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_IMPERIAL_OUNCE_HPP_INCLUDED
|
||||
29
test/external/boost/units/base_units/imperial/pint.hpp
vendored
Normal file
29
test/external/boost/units/base_units/imperial/pint.hpp
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
// 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) 2007-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_BASE_UNITS_IMPERIAL_PINT_HPP_INCLUDED
|
||||
#define BOOST_UNITS_BASE_UNITS_IMPERIAL_PINT_HPP_INCLUDED
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <boost/units/systems/si/volume.hpp>
|
||||
#include <boost/units/conversion.hpp>
|
||||
|
||||
BOOST_UNITS_DEFINE_BASE_UNIT_WITH_CONVERSIONS(imperial, pint, "pint (imp.)", "pt", 4.54609e-3/8., si::volume, -303); // exact conversion
|
||||
|
||||
#if BOOST_UNITS_HAS_BOOST_TYPEOF
|
||||
|
||||
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
|
||||
|
||||
BOOST_TYPEOF_REGISTER_TYPE(boost::units::imperial::pint_base_unit)
|
||||
|
||||
#endif
|
||||
|
||||
#endif // BOOST_UNITS_BASE_UNITS_IMPERIAL_PINT_HPP_INCLUDED
|
||||
34
test/external/boost/units/base_units/imperial/pound.hpp
vendored
Normal file
34
test/external/boost/units/base_units/imperial/pound.hpp
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_IMPERIAL_POUND_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_IMPERIAL_POUND_HPP_INCLUDED
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <boost/units/config.hpp>
|
||||
#include <boost/units/base_unit.hpp>
|
||||
#include <boost/units/physical_dimensions/mass.hpp>
|
||||
#include <boost/units/base_units/cgs/gram.hpp>
|
||||
#include <boost/units/conversion.hpp>
|
||||
|
||||
// can't define in terms of kilogram because it is a scaled_base_unit
|
||||
//BOOST_UNITS_DEFINE_BASE_UNIT_WITH_CONVERSIONS(imperial, pound, "pound", "lb", 0.45359237, si::kilogram_base_unit, -302); // exact conversion
|
||||
BOOST_UNITS_DEFINE_BASE_UNIT_WITH_CONVERSIONS(imperial, pound, "pound", "lb", 453.59237, cgs::gram_base_unit, -302); // exact conversion
|
||||
|
||||
#if BOOST_UNITS_HAS_BOOST_TYPEOF
|
||||
|
||||
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
|
||||
|
||||
BOOST_TYPEOF_REGISTER_TYPE(boost::units::imperial::pound_base_unit)
|
||||
|
||||
#endif
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_IMPERIAL_POUND_HPP_INCLUDED
|
||||
40
test/external/boost/units/base_units/imperial/quart.hpp
vendored
Normal file
40
test/external/boost/units/base_units/imperial/quart.hpp
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
// 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) 2007-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_BASE_UNITS_IMPERIAL_QUART_HPP_INCLUDED
|
||||
#define BOOST_UNITS_BASE_UNITS_IMPERIAL_QUART_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/imperial/pint.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace imperial {
|
||||
|
||||
//typedef scaled_base_unit<pint_base_unit, scale<2, static_rational<1> > > quart_base_unit;
|
||||
typedef scaled_base_unit<pint_base_unit, scale<2, static_rational<1> > > quart_base_unit;
|
||||
|
||||
} // namespace imperial
|
||||
|
||||
template<>
|
||||
struct base_unit_info<imperial::quart_base_unit> {
|
||||
static const char* name() { return("quart (imp.)"); }
|
||||
static const char* symbol() { return("qt"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNITS_BASE_UNITS_IMPERIAL_QUART_HPP_INCLUDED
|
||||
39
test/external/boost/units/base_units/imperial/quarter.hpp
vendored
Normal file
39
test/external/boost/units/base_units/imperial/quarter.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_IMPERIAL_QUARTER_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_IMPERIAL_QUARTER_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/imperial/pound.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace imperial {
|
||||
|
||||
typedef scaled_base_unit<pound_base_unit, scale<28, static_rational<1> > > quarter_base_unit;
|
||||
|
||||
} // namespace imperial
|
||||
|
||||
template<>
|
||||
struct base_unit_info<imperial::quarter_base_unit> {
|
||||
static const char* name() { return("quarter"); }
|
||||
static const char* symbol() { return("quarter"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_IMPERIAL_QUARTER_HPP_INCLUDED
|
||||
39
test/external/boost/units/base_units/imperial/stone.hpp
vendored
Normal file
39
test/external/boost/units/base_units/imperial/stone.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_IMPERIAL_STONE_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_IMPERIAL_STONE_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/imperial/pound.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace imperial {
|
||||
|
||||
typedef scaled_base_unit<pound_base_unit, scale<14, static_rational<1> > > stone_base_unit;
|
||||
|
||||
} // namespace imperial
|
||||
|
||||
template<>
|
||||
struct base_unit_info<imperial::stone_base_unit> {
|
||||
static const char* name() { return("stone"); }
|
||||
static const char* symbol() { return("st"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_IMPERIAL_STONE_HPP_INCLUDED
|
||||
39
test/external/boost/units/base_units/imperial/thou.hpp
vendored
Normal file
39
test/external/boost/units/base_units/imperial/thou.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_IMPERIAL_THOU_BASE_UNIT_HPP
|
||||
#define BOOST_UNITS_IMPERIAL_THOU_BASE_UNIT_HPP
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/imperial/yard.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace imperial {
|
||||
|
||||
typedef scaled_base_unit<yard_base_unit, scale<36000, static_rational<-1> > > thou_base_unit;
|
||||
|
||||
} // namespace imperial
|
||||
|
||||
template<>
|
||||
struct base_unit_info<imperial::thou_base_unit> {
|
||||
static const char* name() { return("thou"); }
|
||||
static const char* symbol() { return("thou"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNITS_IMPERIAL_THOU_BASE_UNIT_HPP
|
||||
40
test/external/boost/units/base_units/imperial/ton.hpp
vendored
Normal file
40
test/external/boost/units/base_units/imperial/ton.hpp
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_IMPERIAL_TON_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_IMPERIAL_TON_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/imperial/pound.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace imperial {
|
||||
|
||||
typedef scaled_base_unit<pound_base_unit, scale<2240, static_rational<1> > > ton_base_unit;
|
||||
|
||||
} // namespace imperial
|
||||
|
||||
template<>
|
||||
struct base_unit_info<imperial::ton_base_unit> {
|
||||
static const char* name() { return("long ton"); }
|
||||
static const char* symbol() { return("t"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_IMPERIAL_TON_HPP_INCLUDED
|
||||
|
||||
32
test/external/boost/units/base_units/imperial/yard.hpp
vendored
Normal file
32
test/external/boost/units/base_units/imperial/yard.hpp
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
// 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) 2007-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_SYSTEMS_IMPERIAL_YARD_BASE_UNIT_HPP
|
||||
#define BOOST_UNITS_SYSTEMS_IMPERIAL_YARD_BASE_UNIT_HPP
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <boost/units/config.hpp>
|
||||
#include <boost/units/base_unit.hpp>
|
||||
#include <boost/units/physical_dimensions/length.hpp>
|
||||
#include <boost/units/base_units/si/meter.hpp>
|
||||
#include <boost/units/conversion.hpp>
|
||||
|
||||
BOOST_UNITS_DEFINE_BASE_UNIT_WITH_CONVERSIONS(imperial, yard, "yard", "yd", 0.9144, si::meter_base_unit, -301); // exact conversion
|
||||
|
||||
#if BOOST_UNITS_HAS_BOOST_TYPEOF
|
||||
|
||||
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
|
||||
|
||||
BOOST_TYPEOF_REGISTER_TYPE(boost::units::imperial::yard_base_unit)
|
||||
|
||||
#endif
|
||||
|
||||
#endif // BOOST_UNITS_SYSTEMS_IMPERIAL_YARD_BASE_UNIT_HPP
|
||||
37
test/external/boost/units/base_units/metric/angstrom.hpp
vendored
Normal file
37
test/external/boost/units/base_units/metric/angstrom.hpp
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_METRIC_ANGSTROM_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_METRIC_ANGSTROM_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/units_fwd.hpp>
|
||||
#include <boost/units/base_units/si/meter.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace units {
|
||||
namespace metric {
|
||||
|
||||
typedef scaled_base_unit<boost::units::si::meter_base_unit, scale<10, static_rational<-10> > > angstrom_base_unit;
|
||||
|
||||
}
|
||||
|
||||
template<>
|
||||
struct base_unit_info<metric::angstrom_base_unit> {
|
||||
static const char* name() { return("angstrom"); }
|
||||
static const char* symbol() { return("A"); }
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_METRIC_ANGSTROM_HPP_INCLUDED
|
||||
19
test/external/boost/units/base_units/metric/are.hpp
vendored
Normal file
19
test/external/boost/units/base_units/metric/are.hpp
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_METRIC_ARE_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_METRIC_ARE_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/conversion.hpp>
|
||||
#include <boost/units/systems/si/area.hpp>
|
||||
|
||||
BOOST_UNITS_DEFINE_BASE_UNIT_WITH_CONVERSIONS(metric, are, "are", "a", 1.0e2, si::area, 10);
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_METRIC_ARE_HPP_INCLUDED
|
||||
19
test/external/boost/units/base_units/metric/atmosphere.hpp
vendored
Normal file
19
test/external/boost/units/base_units/metric/atmosphere.hpp
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_METRIC_ATMOSPHERE_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_METRIC_ATMOSPHERE_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/conversion.hpp>
|
||||
#include <boost/units/systems/si/pressure.hpp>
|
||||
|
||||
BOOST_UNITS_DEFINE_BASE_UNIT_WITH_CONVERSIONS(metric, atmosphere, "atmosphere", "atm", 1.01325e5, si::pressure, 33);
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_METRIC_ATMOSPHERE_HPP_INCLUDED
|
||||
19
test/external/boost/units/base_units/metric/bar.hpp
vendored
Normal file
19
test/external/boost/units/base_units/metric/bar.hpp
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_METRIC_BAR_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_METRIC_BAR_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/conversion.hpp>
|
||||
#include <boost/units/systems/si/pressure.hpp>
|
||||
|
||||
BOOST_UNITS_DEFINE_BASE_UNIT_WITH_CONVERSIONS(metric, bar, "bar", "bar", 1.0e5, si::pressure, 14);
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_METRIC_BAR_HPP_INCLUDED
|
||||
19
test/external/boost/units/base_units/metric/barn.hpp
vendored
Normal file
19
test/external/boost/units/base_units/metric/barn.hpp
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_METRIC_BARN_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_METRIC_BARN_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/conversion.hpp>
|
||||
#include <boost/units/systems/si/area.hpp>
|
||||
|
||||
BOOST_UNITS_DEFINE_BASE_UNIT_WITH_CONVERSIONS(metric, barn, "barn", "b", 1.0e-28, si::area, 11);
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_METRIC_BARN_HPP_INCLUDED
|
||||
39
test/external/boost/units/base_units/metric/day.hpp
vendored
Normal file
39
test/external/boost/units/base_units/metric/day.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_OTHER_DAY_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_OTHER_DAY_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/si/second.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace metric {
|
||||
|
||||
typedef scaled_base_unit<boost::units::si::second_base_unit, scale<86400, static_rational<1> > > day_base_unit;
|
||||
|
||||
} // namespace metric
|
||||
|
||||
template<>
|
||||
struct base_unit_info<metric::day_base_unit> {
|
||||
static const char* name() { return("day"); }
|
||||
static const char* symbol() { return("d"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif
|
||||
36
test/external/boost/units/base_units/metric/fermi.hpp
vendored
Normal file
36
test/external/boost/units/base_units/metric/fermi.hpp
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_METRIC_FERMI_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_METRIC_FERMI_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/si/meter.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace units {
|
||||
namespace metric {
|
||||
|
||||
typedef scaled_base_unit<boost::units::si::meter_base_unit, scale<10, static_rational<-15> > > fermi_base_unit;
|
||||
|
||||
}
|
||||
|
||||
template<>
|
||||
struct base_unit_info<metric::fermi_base_unit> {
|
||||
static const char* name() { return("fermi"); }
|
||||
static const char* symbol() { return("fm"); }
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_METRIC_FERMI_HPP_INCLUDED
|
||||
19
test/external/boost/units/base_units/metric/hectare.hpp
vendored
Normal file
19
test/external/boost/units/base_units/metric/hectare.hpp
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_METRIC_HECTARE_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_METRIC_HECTARE_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/conversion.hpp>
|
||||
#include <boost/units/systems/si/area.hpp>
|
||||
|
||||
BOOST_UNITS_DEFINE_BASE_UNIT_WITH_CONVERSIONS(metric, hectare, "hectare", "ha", 1.0e4, si::area, 12);
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_METRIC_HECTARE_HPP_INCLUDED
|
||||
37
test/external/boost/units/base_units/metric/hour.hpp
vendored
Normal file
37
test/external/boost/units/base_units/metric/hour.hpp
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_METRIC_HOUR_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_METRIC_HOUR_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/units_fwd.hpp>
|
||||
#include <boost/units/base_units/si/second.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace units {
|
||||
namespace metric {
|
||||
|
||||
typedef scaled_base_unit<boost::units::si::second_base_unit, scale<60, static_rational<2> > > hour_base_unit;
|
||||
|
||||
}
|
||||
|
||||
template<>
|
||||
struct base_unit_info<metric::hour_base_unit> {
|
||||
static const char* name() { return("hour"); }
|
||||
static const char* symbol() { return("h"); }
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_METRIC_HOUR_HPP_INCLUDED
|
||||
19
test/external/boost/units/base_units/metric/knot.hpp
vendored
Normal file
19
test/external/boost/units/base_units/metric/knot.hpp
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_METRIC_KNOT_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_METRIC_KNOT_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/conversion.hpp>
|
||||
#include <boost/units/systems/si/velocity.hpp>
|
||||
|
||||
BOOST_UNITS_DEFINE_BASE_UNIT_WITH_CONVERSIONS(metric, knot, "knot", "kt", 1852./3600., boost::units::si::velocity, -403);
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_METRIC_KNOT_HPP_INCLUDED
|
||||
19
test/external/boost/units/base_units/metric/liter.hpp
vendored
Normal file
19
test/external/boost/units/base_units/metric/liter.hpp
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_METRIC_LITER_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_METRIC_LITER_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/conversion.hpp>
|
||||
#include <boost/units/systems/si/volume.hpp>
|
||||
|
||||
BOOST_UNITS_DEFINE_BASE_UNIT_WITH_CONVERSIONS(metric, liter, "liter", "L", 1.0e-3, si::volume, 13);
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_METRIC_LITER_HPP_INCLUDED
|
||||
36
test/external/boost/units/base_units/metric/micron.hpp
vendored
Normal file
36
test/external/boost/units/base_units/metric/micron.hpp
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_METRIC_MICRON_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_METRIC_MICRON_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/si/meter.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace units {
|
||||
namespace metric {
|
||||
|
||||
typedef scaled_base_unit<boost::units::si::meter_base_unit, scale<10, static_rational<-6> > > micron_base_unit;
|
||||
|
||||
}
|
||||
|
||||
template<>
|
||||
struct base_unit_info<metric::micron_base_unit> {
|
||||
static const char* name() { return("micron"); }
|
||||
static const char* symbol() { return("u"); }
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_METRIC_MICRON_HPP_INCLUDED
|
||||
37
test/external/boost/units/base_units/metric/minute.hpp
vendored
Normal file
37
test/external/boost/units/base_units/metric/minute.hpp
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_METRIC_MINUTE_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_METRIC_MINUTE_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/units_fwd.hpp>
|
||||
#include <boost/units/base_units/si/second.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace units {
|
||||
namespace metric {
|
||||
|
||||
typedef scaled_base_unit<boost::units::si::second_base_unit, scale<60, static_rational<1> > > minute_base_unit;
|
||||
|
||||
}
|
||||
|
||||
template<>
|
||||
struct base_unit_info<metric::minute_base_unit> {
|
||||
static const char* name() { return("minute"); }
|
||||
static const char* symbol() { return("min"); }
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_METRIC_MINUTE_HPP_INCLUDED
|
||||
19
test/external/boost/units/base_units/metric/mmHg.hpp
vendored
Normal file
19
test/external/boost/units/base_units/metric/mmHg.hpp
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_METRIC_MMHG_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_METRIC_MMHG_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/conversion.hpp>
|
||||
#include <boost/units/systems/si/pressure.hpp>
|
||||
|
||||
BOOST_UNITS_DEFINE_BASE_UNIT_WITH_CONVERSIONS(metric, mmHg, "millimeters mercury", "mmHg", 133.322, si::pressure, -404);
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_METRIC_MMHG_HPP_INCLUDED
|
||||
36
test/external/boost/units/base_units/metric/nautical_mile.hpp
vendored
Normal file
36
test/external/boost/units/base_units/metric/nautical_mile.hpp
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_METRIC_NAUTICAL_MILE_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_METRIC_NAUTICAL_MILE_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/si/meter.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace units {
|
||||
namespace metric {
|
||||
|
||||
typedef scaled_base_unit<boost::units::si::meter_base_unit, scale<1852, static_rational<1> > > nautical_mile_base_unit;
|
||||
|
||||
}
|
||||
|
||||
template<>
|
||||
struct base_unit_info<metric::nautical_mile_base_unit> {
|
||||
static const char* name() { return("nautical mile"); }
|
||||
static const char* symbol() { return("nmi"); }
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_METRIC_NAUTICAL_MILE_HPP_INCLUDED
|
||||
39
test/external/boost/units/base_units/metric/ton.hpp
vendored
Normal file
39
test/external/boost/units/base_units/metric/ton.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_METRIC_TON_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_METRIC_TON_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/units_fwd.hpp>
|
||||
#include <boost/units/base_units/si/kilogram.hpp>
|
||||
//#include <boost/units/base_units/cgs/gram.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace units {
|
||||
namespace metric {
|
||||
|
||||
//typedef scaled_base_unit<boost::units::cgs::gram_base_unit, scale<10, static_rational<6> > > ton_base_unit;
|
||||
typedef scaled_base_unit<boost::units::si::kilogram_base_unit, scale<1000, static_rational<1> > > ton_base_unit;
|
||||
|
||||
}
|
||||
|
||||
template<>
|
||||
struct base_unit_info<metric::ton_base_unit> {
|
||||
static const char* name() { return("metric ton"); }
|
||||
static const char* symbol() { return("t"); }
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_METRIC_TON_HPP_INCLUDED
|
||||
19
test/external/boost/units/base_units/metric/torr.hpp
vendored
Normal file
19
test/external/boost/units/base_units/metric/torr.hpp
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_METRIC_TORR_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_METRIC_TORR_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/conversion.hpp>
|
||||
#include <boost/units/systems/si/pressure.hpp>
|
||||
|
||||
BOOST_UNITS_DEFINE_BASE_UNIT_WITH_CONVERSIONS(metric, torr, "torr", "Torr", 1.01325e5/760.0, si::pressure, -401);
|
||||
|
||||
#endif
|
||||
38
test/external/boost/units/base_units/metric/year.hpp
vendored
Normal file
38
test/external/boost/units/base_units/metric/year.hpp
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_OTHER_YEAR_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_OTHER_YEAR_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/si/second.hpp>
|
||||
|
||||
// Julian year = 365.25 days exactly = 8766 hours exactly
|
||||
|
||||
namespace boost {
|
||||
namespace units {
|
||||
namespace metric {
|
||||
|
||||
typedef scaled_base_unit<boost::units::si::second_base_unit, scale<31557600, static_rational<1> > > year_base_unit;
|
||||
|
||||
}
|
||||
|
||||
template<>
|
||||
struct base_unit_info<metric::year_base_unit> {
|
||||
static const char* name() { return("Julian year"); }
|
||||
static const char* symbol() { return("yr"); }
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
48
test/external/boost/units/base_units/si/ampere.hpp
vendored
Normal file
48
test/external/boost/units/base_units/si/ampere.hpp
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
// 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) 2007-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_SI_AMPERE_BASE_UNIT_HPP
|
||||
#define BOOST_UNITS_SI_AMPERE_BASE_UNIT_HPP
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <boost/units/config.hpp>
|
||||
#include <boost/units/base_unit.hpp>
|
||||
#include <boost/units/physical_dimensions/current.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace si {
|
||||
|
||||
struct ampere_base_unit : public base_unit<ampere_base_unit, current_dimension, -6>
|
||||
{
|
||||
static std::string name() { return("ampere"); }
|
||||
static std::string symbol() { return("A"); }
|
||||
};
|
||||
|
||||
} // namespace si
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#if BOOST_UNITS_HAS_BOOST_TYPEOF
|
||||
|
||||
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
|
||||
|
||||
BOOST_TYPEOF_REGISTER_TYPE(boost::units::si::ampere_base_unit)
|
||||
|
||||
#endif
|
||||
|
||||
//#include <boost/units/base_units/detail/conversions.hpp>
|
||||
|
||||
#endif // BOOST_UNITS_SI_AMPERE_BASE_UNIT_HPP
|
||||
48
test/external/boost/units/base_units/si/candela.hpp
vendored
Normal file
48
test/external/boost/units/base_units/si/candela.hpp
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
// 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) 2007-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_SI_CANDELA_BASE_UNIT_HPP
|
||||
#define BOOST_UNITS_SI_CANDELA_BASE_UNIT_HPP
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <boost/units/config.hpp>
|
||||
#include <boost/units/base_unit.hpp>
|
||||
#include <boost/units/physical_dimensions/luminous_intensity.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace si {
|
||||
|
||||
struct candela_base_unit : public base_unit<candela_base_unit, luminous_intensity_dimension, -3>
|
||||
{
|
||||
static std::string name() { return("candela"); }
|
||||
static std::string symbol() { return("cd"); }
|
||||
};
|
||||
|
||||
} // namespace si
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#if BOOST_UNITS_HAS_BOOST_TYPEOF
|
||||
|
||||
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
|
||||
|
||||
BOOST_TYPEOF_REGISTER_TYPE(boost::units::si::candela_base_unit)
|
||||
|
||||
#endif
|
||||
|
||||
//#include <boost/units/base_units/detail/conversions.hpp>
|
||||
|
||||
#endif // BOOST_UNITS_SI_CANDELA_BASE_UNIT_HPP
|
||||
48
test/external/boost/units/base_units/si/kelvin.hpp
vendored
Normal file
48
test/external/boost/units/base_units/si/kelvin.hpp
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
// 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) 2007-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_SI_KELVIN_BASE_UNIT_HPP
|
||||
#define BOOST_UNITS_SI_KELVIN_BASE_UNIT_HPP
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <boost/units/config.hpp>
|
||||
#include <boost/units/base_unit.hpp>
|
||||
#include <boost/units/physical_dimensions/temperature.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace si {
|
||||
|
||||
struct kelvin_base_unit : public base_unit<kelvin_base_unit, temperature_dimension, -5>
|
||||
{
|
||||
static std::string name() { return("kelvin"); }
|
||||
static std::string symbol() { return("K"); }
|
||||
};
|
||||
|
||||
} // namespace si
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#if BOOST_UNITS_HAS_BOOST_TYPEOF
|
||||
|
||||
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
|
||||
|
||||
BOOST_TYPEOF_REGISTER_TYPE(boost::units::si::kelvin_base_unit)
|
||||
|
||||
#endif
|
||||
|
||||
//#include <boost/units/base_units/detail/conversions.hpp>
|
||||
|
||||
#endif // BOOST_UNITS_SI_KELVIN_BASE_UNIT_HPP
|
||||
31
test/external/boost/units/base_units/si/kilogram.hpp
vendored
Normal file
31
test/external/boost/units/base_units/si/kilogram.hpp
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
// 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) 2007-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_SI_KILOGRAM_BASE_UNIT_HPP
|
||||
#define BOOST_UNITS_SI_KILOGRAM_BASE_UNIT_HPP
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/base_units/cgs/gram.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace si {
|
||||
|
||||
typedef scaled_base_unit<boost::units::cgs::gram_base_unit, scale<10, static_rational<3> > > kilogram_base_unit;
|
||||
|
||||
} // namespace si
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNITS_SI_KILOGRAM_BASE_UNIT_HPP
|
||||
50
test/external/boost/units/base_units/si/meter.hpp
vendored
Normal file
50
test/external/boost/units/base_units/si/meter.hpp
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
// 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) 2007-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_SI_METER_BASE_UNIT_HPP
|
||||
#define BOOST_UNITS_SI_METER_BASE_UNIT_HPP
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <boost/units/config.hpp>
|
||||
#include <boost/units/base_unit.hpp>
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/physical_dimensions/length.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace si {
|
||||
|
||||
struct meter_base_unit : public base_unit<meter_base_unit, length_dimension, -9>
|
||||
{
|
||||
static std::string name() { return("meter"); }
|
||||
static std::string symbol() { return("m"); }
|
||||
};
|
||||
|
||||
} // namespace si
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#if BOOST_UNITS_HAS_BOOST_TYPEOF
|
||||
|
||||
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
|
||||
|
||||
BOOST_TYPEOF_REGISTER_TYPE(boost::units::si::meter_base_unit)
|
||||
|
||||
#endif
|
||||
|
||||
//#include <boost/units/base_units/detail/conversions.hpp>
|
||||
|
||||
#endif // BOOST_UNITS_SI_METER_BASE_UNIT_HPP
|
||||
|
||||
48
test/external/boost/units/base_units/si/mole.hpp
vendored
Normal file
48
test/external/boost/units/base_units/si/mole.hpp
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
// 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) 2007-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_SI_MOLE_BASE_UNIT_HPP
|
||||
#define BOOST_UNITS_SI_MOLE_BASE_UNIT_HPP
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <boost/units/config.hpp>
|
||||
#include <boost/units/base_unit.hpp>
|
||||
#include <boost/units/physical_dimensions/amount.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace si {
|
||||
|
||||
struct mole_base_unit : public base_unit<mole_base_unit, amount_dimension, -4>
|
||||
{
|
||||
static std::string name() { return("mole"); }
|
||||
static std::string symbol() { return("mol"); }
|
||||
};
|
||||
|
||||
} // namespace si
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#if BOOST_UNITS_HAS_BOOST_TYPEOF
|
||||
|
||||
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
|
||||
|
||||
BOOST_TYPEOF_REGISTER_TYPE(boost::units::si::mole_base_unit)
|
||||
|
||||
#endif
|
||||
|
||||
//#include <boost/units/base_units/detail/conversions.hpp>
|
||||
|
||||
#endif // BOOST_UNITS_SI_MOLE_BASE_UNIT_HPP
|
||||
48
test/external/boost/units/base_units/si/second.hpp
vendored
Normal file
48
test/external/boost/units/base_units/si/second.hpp
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
// 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) 2007-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_SI_SECOND_BASE_UNIT_HPP
|
||||
#define BOOST_UNITS_SI_SECOND_BASE_UNIT_HPP
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <boost/units/config.hpp>
|
||||
#include <boost/units/base_unit.hpp>
|
||||
#include <boost/units/physical_dimensions/time.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace si {
|
||||
|
||||
struct second_base_unit : public base_unit<second_base_unit, time_dimension, -7>
|
||||
{
|
||||
static std::string name() { return("second"); }
|
||||
static std::string symbol() { return("s"); }
|
||||
};
|
||||
|
||||
} // namespace si
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#if BOOST_UNITS_HAS_BOOST_TYPEOF
|
||||
|
||||
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
|
||||
|
||||
BOOST_TYPEOF_REGISTER_TYPE(boost::units::si::second_base_unit)
|
||||
|
||||
#endif
|
||||
|
||||
//#include <boost/units/base_units/detail/conversions.hpp>
|
||||
|
||||
#endif // BOOST_UNITS_SI_SECOND_BASE_UNIT_HPP
|
||||
48
test/external/boost/units/base_units/temperature/celsius.hpp
vendored
Normal file
48
test/external/boost/units/base_units/temperature/celsius.hpp
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
// 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) 2007-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_TEMPERATURE_CELSIUS_BASE_UNIT_HPP
|
||||
#define BOOST_UNITS_TEMPERATURE_CELSIUS_BASE_UNIT_HPP
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <boost/units/config.hpp>
|
||||
#include <boost/units/base_unit.hpp>
|
||||
#include <boost/units/physical_dimensions/temperature.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace temperature {
|
||||
|
||||
struct celsius_base_unit : public base_unit<celsius_base_unit, temperature_dimension, -1008>
|
||||
{
|
||||
static std::string name() { return("celsius"); }
|
||||
static std::string symbol() { return("C"); }
|
||||
};
|
||||
|
||||
} // namespace temperature
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#if BOOST_UNITS_HAS_BOOST_TYPEOF
|
||||
|
||||
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
|
||||
|
||||
BOOST_TYPEOF_REGISTER_TYPE(boost::units::temperature::celsius_base_unit)
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/units/base_units/temperature/conversions.hpp>
|
||||
|
||||
#endif // BOOST_UNITS_TEMPERATURE_CELSIUS_BASE_UNIT_HPP
|
||||
42
test/external/boost/units/base_units/temperature/conversions.hpp
vendored
Normal file
42
test/external/boost/units/base_units/temperature/conversions.hpp
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
// 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) 2007-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)
|
||||
|
||||
// No include guards. This header is intended to be included
|
||||
// multiple times.
|
||||
|
||||
// units of temperature
|
||||
|
||||
#if defined(BOOST_UNITS_SI_KELVIN_BASE_UNIT_HPP) && defined(BOOST_UNITS_TEMPERATURE_CELSIUS_BASE_UNIT_HPP) &&\
|
||||
!defined(BOOST_UNITS_SYSTEMS_KELVIN_TO_CELSIUS_CONVERSION_DEFINED)
|
||||
#define BOOST_UNITS_SYSTEMS_KELVIN_TO_CELSIUS_CONVERSION_DEFINED
|
||||
#include <boost/units/conversion.hpp>
|
||||
#include <boost/units/absolute.hpp>
|
||||
BOOST_UNITS_DEFINE_CONVERSION_FACTOR(boost::units::si::kelvin_base_unit, boost::units::temperature::celsius_base_unit, one, make_one());
|
||||
BOOST_UNITS_DEFINE_CONVERSION_OFFSET(boost::units::si::kelvin_base_unit, boost::units::temperature::celsius_base_unit, double, -273.15);
|
||||
#endif
|
||||
|
||||
#if defined(BOOST_UNITS_SI_KELVIN_BASE_UNIT_HPP) && defined(BOOST_UNITS_TEMPERATURE_FAHRENHEIT_BASE_UNIT_HPP) &&\
|
||||
!defined(BOOST_UNITS_SYSTEMS_KELVIN_TO_FAHRENHEIT_CONVERSION_DEFINED)
|
||||
#define BOOST_UNITS_SYSTEMS_KELVIN_TO_FAHRENHEIT_CONVERSION_DEFINED
|
||||
#include <boost/units/conversion.hpp>
|
||||
#include <boost/units/absolute.hpp>
|
||||
BOOST_UNITS_DEFINE_CONVERSION_FACTOR(boost::units::si::kelvin_base_unit, boost::units::temperature::fahrenheit_base_unit, double, 9.0/5.0);
|
||||
BOOST_UNITS_DEFINE_CONVERSION_OFFSET(boost::units::si::kelvin_base_unit, boost::units::temperature::fahrenheit_base_unit, double, -273.15 * 9.0 / 5.0 + 32.0);
|
||||
#endif
|
||||
|
||||
#if defined(BOOST_UNITS_TEMPERATURE_CELSIUS_BASE_UNIT_HPP) && defined(BOOST_UNITS_TEMPERATURE_FAHRENHEIT_BASE_UNIT_HPP) &&\
|
||||
!defined(BOOST_UNITS_SYSTEMS_CELSUIS_TO_FAHRENHEIT_CONVERSION_DEFINED)
|
||||
#define BOOST_UNITS_SYSTEMS_CELSUIS_TO_FAHRENHEIT_CONVERSION_DEFINED
|
||||
#include <boost/units/conversion.hpp>
|
||||
#include <boost/units/absolute.hpp>
|
||||
BOOST_UNITS_DEFINE_CONVERSION_FACTOR(boost::units::temperature::celsius_base_unit, boost::units::temperature::fahrenheit_base_unit, double, 9.0/5.0);
|
||||
BOOST_UNITS_DEFINE_CONVERSION_OFFSET(boost::units::temperature::celsius_base_unit, boost::units::temperature::fahrenheit_base_unit, double, 32.0);
|
||||
#endif
|
||||
|
||||
48
test/external/boost/units/base_units/temperature/fahrenheit.hpp
vendored
Normal file
48
test/external/boost/units/base_units/temperature/fahrenheit.hpp
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
// 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) 2007-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_TEMPERATURE_FAHRENHEIT_BASE_UNIT_HPP
|
||||
#define BOOST_UNITS_TEMPERATURE_FAHRENHEIT_BASE_UNIT_HPP
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <boost/units/config.hpp>
|
||||
#include <boost/units/base_unit.hpp>
|
||||
#include <boost/units/physical_dimensions/temperature.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace temperature {
|
||||
|
||||
struct fahrenheit_base_unit : public base_unit<fahrenheit_base_unit, temperature_dimension, -1007>
|
||||
{
|
||||
static std::string name() { return("fahrenheit"); }
|
||||
static std::string symbol() { return("F"); }
|
||||
};
|
||||
|
||||
} // namespace temperature
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#if BOOST_UNITS_HAS_BOOST_TYPEOF
|
||||
|
||||
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
|
||||
|
||||
BOOST_TYPEOF_REGISTER_TYPE(boost::units::temperature::fahrenheit_base_unit)
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/units/base_units/temperature/conversions.hpp>
|
||||
|
||||
#endif // BOOST_UNITS_TEMPERATURE_FAHRENHEIT_BASE_UNIT_HPP
|
||||
39
test/external/boost/units/base_units/us/cup.hpp
vendored
Normal file
39
test/external/boost/units/base_units/us/cup.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_BASE_UNITS_US_CUP_HPP_INCLUDED
|
||||
#define BOOST_UNITS_BASE_UNITS_US_CUP_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/us/pint.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace us {
|
||||
|
||||
typedef scaled_base_unit<pint_base_unit, scale<2, static_rational<-1> > > cup_base_unit;
|
||||
|
||||
} // namespace us
|
||||
|
||||
template<>
|
||||
struct base_unit_info<us::cup_base_unit> {
|
||||
static const char* name() { return("cup"); }
|
||||
static const char* symbol() { return("c"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNITS_BASE_UNITS_US_CUP_HPP_INCLUDED
|
||||
39
test/external/boost/units/base_units/us/dram.hpp
vendored
Normal file
39
test/external/boost/units/base_units/us/dram.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_UNIT_BASE_UNITS_US_DRAM_HPP_INCLUDED
|
||||
#define BOOST_UNIT_BASE_UNITS_US_DRAM_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/us/pound.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace us {
|
||||
|
||||
typedef scaled_base_unit<pound_base_unit, scale<16, static_rational<-2> > > dram_base_unit;
|
||||
|
||||
} // namespace us
|
||||
|
||||
template<>
|
||||
struct base_unit_info<us::dram_base_unit> {
|
||||
static const char* name() { return("dram (U.S.)"); }
|
||||
static const char* symbol() { return("dr"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNIT_BASE_UNITS_US_DRAM_HPP_INCLUDED
|
||||
39
test/external/boost/units/base_units/us/fluid_dram.hpp
vendored
Normal file
39
test/external/boost/units/base_units/us/fluid_dram.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_BASE_UNITS_US_FLUID_DRAM_HPP_INCLUDED
|
||||
#define BOOST_UNITS_BASE_UNITS_US_FLUID_DRAM_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/us/pint.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace us {
|
||||
|
||||
typedef scaled_base_unit<pint_base_unit, scale<2, static_rational<-7> > > fluid_dram_base_unit;
|
||||
|
||||
} // namespace us
|
||||
|
||||
template<>
|
||||
struct base_unit_info<us::fluid_dram_base_unit> {
|
||||
static const char* name() { return("fluid dram (U.S.)"); }
|
||||
static const char* symbol() { return("fl dr"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNITS_BASE_UNITS_US_FLUID_DRAM_HPP_INCLUDED
|
||||
39
test/external/boost/units/base_units/us/fluid_ounce.hpp
vendored
Normal file
39
test/external/boost/units/base_units/us/fluid_ounce.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_BASE_UNITS_US_FLUID_OUNCE_HPP_INCLUDED
|
||||
#define BOOST_UNITS_BASE_UNITS_US_FLUID_OUNCE_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/us/pint.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace us {
|
||||
|
||||
typedef scaled_base_unit<pint_base_unit, scale<16, static_rational<-1> > > fluid_ounce_base_unit;
|
||||
|
||||
} // namespace us
|
||||
|
||||
template<>
|
||||
struct base_unit_info<us::fluid_ounce_base_unit> {
|
||||
static const char* name() { return("fluid ounce (U.S.)"); }
|
||||
static const char* symbol() { return("fl oz"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNITS_BASE_UNITS_US_FLUID_OUNCE_HPP_INCLUDED
|
||||
39
test/external/boost/units/base_units/us/foot.hpp
vendored
Normal file
39
test/external/boost/units/base_units/us/foot.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_US_FOOT_BASE_UNIT_HPP
|
||||
#define BOOST_UNITS_US_FOOT_BASE_UNIT_HPP
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/us/yard.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace us {
|
||||
|
||||
typedef scaled_base_unit<yard_base_unit, scale<3, static_rational<-1> > > foot_base_unit;
|
||||
|
||||
} // namespace us
|
||||
|
||||
template<>
|
||||
struct base_unit_info<us::foot_base_unit> {
|
||||
static const char* name() { return("foot"); }
|
||||
static const char* symbol() { return("ft"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNITS_US_FOOT_BASE_UNIT_HPP
|
||||
39
test/external/boost/units/base_units/us/gallon.hpp
vendored
Normal file
39
test/external/boost/units/base_units/us/gallon.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_BASE_UNITS_US_GALLON_HPP_INCLUDED
|
||||
#define BOOST_UNITS_BASE_UNITS_US_GALLON_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/us/pint.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace us {
|
||||
|
||||
typedef scaled_base_unit<pint_base_unit, scale<2, static_rational<3> > > gallon_base_unit;
|
||||
|
||||
} // namespace us
|
||||
|
||||
template<>
|
||||
struct base_unit_info<us::gallon_base_unit> {
|
||||
static const char* name() { return("gallon (U.S.)"); }
|
||||
static const char* symbol() { return("gal"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNITS_BASE_UNITS_US_GALLON_HPP_INCLUDED
|
||||
39
test/external/boost/units/base_units/us/gill.hpp
vendored
Normal file
39
test/external/boost/units/base_units/us/gill.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_BASE_UNITS_US_GILL_HPP_INCLUDED
|
||||
#define BOOST_UNITS_BASE_UNITS_US_GILL_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/us/pint.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace us {
|
||||
|
||||
typedef scaled_base_unit<pint_base_unit, scale<2, static_rational<-2> > > gill_base_unit;
|
||||
|
||||
} // namespace us
|
||||
|
||||
template<>
|
||||
struct base_unit_info<us::gill_base_unit> {
|
||||
static const char* name() { return("gill (U.S.)"); }
|
||||
static const char* symbol() { return("gi"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNITS_BASE_UNITS_US_GILL_HPP_INCLUDED
|
||||
39
test/external/boost/units/base_units/us/grain.hpp
vendored
Normal file
39
test/external/boost/units/base_units/us/grain.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_UNIT_BASE_UNITS_US_GRAIN_HPP_INCLUDED
|
||||
#define BOOST_UNIT_BASE_UNITS_US_GRAIN_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/us/pound.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace us {
|
||||
|
||||
typedef scaled_base_unit<pound_base_unit, scale<7000, static_rational<-1> > > grain_base_unit;
|
||||
|
||||
} // namespace us
|
||||
|
||||
template<>
|
||||
struct base_unit_info<us::grain_base_unit> {
|
||||
static const char* name() { return("grain"); }
|
||||
static const char* symbol() { return("gr"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNIT_BASE_UNITS_US_GRAIN_HPP_INCLUDED
|
||||
40
test/external/boost/units/base_units/us/hundredweight.hpp
vendored
Normal file
40
test/external/boost/units/base_units/us/hundredweight.hpp
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
// 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) 2007-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_UNIT_BASE_UNITS_US_HUNDREDWEIGHT_HPP_INCLUDED
|
||||
#define BOOST_UNIT_BASE_UNITS_US_HUNDREDWEIGHT_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/us/pound.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace us {
|
||||
|
||||
//typedef scaled_base_unit<pound_base_unit, scale<10, static_rational<2> > > hundredweight_base_unit;
|
||||
typedef scaled_base_unit<pound_base_unit, scale<100, static_rational<1> > > hundredweight_base_unit;
|
||||
|
||||
} // namespace us
|
||||
|
||||
template<>
|
||||
struct base_unit_info<us::hundredweight_base_unit> {
|
||||
static const char* name() { return("hundredweight (U.S.)"); }
|
||||
static const char* symbol() { return("cwt"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNIT_BASE_UNITS_US_HUNDREDWEIGHT_HPP_INCLUDED
|
||||
39
test/external/boost/units/base_units/us/inch.hpp
vendored
Normal file
39
test/external/boost/units/base_units/us/inch.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_US_INCH_BASE_UNIT_HPP
|
||||
#define BOOST_UNITS_US_INCH_BASE_UNIT_HPP
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/us/yard.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace us {
|
||||
|
||||
typedef scaled_base_unit<yard_base_unit, scale<36, static_rational<-1> > > inch_base_unit;
|
||||
|
||||
} // namespace us
|
||||
|
||||
template<>
|
||||
struct base_unit_info<us::inch_base_unit> {
|
||||
static const char* name() { return("inch"); }
|
||||
static const char* symbol() { return("in"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNITS_US_INCH_BASE_UNIT_HPP
|
||||
39
test/external/boost/units/base_units/us/mil.hpp
vendored
Normal file
39
test/external/boost/units/base_units/us/mil.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_US_MIL_BASE_UNIT_HPP
|
||||
#define BOOST_UNITS_US_MIL_BASE_UNIT_HPP
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/us/yard.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace us {
|
||||
|
||||
typedef scaled_base_unit<yard_base_unit, scale<36000, static_rational<-1> > > mil_base_unit;
|
||||
|
||||
} // namespace us
|
||||
|
||||
template<>
|
||||
struct base_unit_info<us::mil_base_unit> {
|
||||
static const char* name() { return("mil"); }
|
||||
static const char* symbol() { return("mil"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNITS_US_MIL_BASE_UNIT_HPP
|
||||
39
test/external/boost/units/base_units/us/mile.hpp
vendored
Normal file
39
test/external/boost/units/base_units/us/mile.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_US_MILE_BASE_UNIT_HPP
|
||||
#define BOOST_UNITS_US_MILE_BASE_UNIT_HPP
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/us/yard.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace us {
|
||||
|
||||
typedef scaled_base_unit<yard_base_unit, scale<1760, static_rational<1> > > mile_base_unit;
|
||||
|
||||
} // namespace us
|
||||
|
||||
template<>
|
||||
struct base_unit_info<us::mile_base_unit> {
|
||||
static const char* name() { return("mile"); }
|
||||
static const char* symbol() { return("mi"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNITS_US_MILE_BASE_UNIT_HPP
|
||||
39
test/external/boost/units/base_units/us/minim.hpp
vendored
Normal file
39
test/external/boost/units/base_units/us/minim.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_BASE_UNITS_US_MINIM_HPP_INCLUDED
|
||||
#define BOOST_UNITS_BASE_UNITS_US_MINIM_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/us/pint.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace us {
|
||||
|
||||
typedef scaled_base_unit<pint_base_unit, scale<7680, static_rational<-1> > > minim_base_unit;
|
||||
|
||||
} // namespace us
|
||||
|
||||
template<>
|
||||
struct base_unit_info<us::minim_base_unit> {
|
||||
static const char* name() { return("minim (U.S.)"); }
|
||||
static const char* symbol() { return("minim"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNITS_BASE_UNITS_US_MINIM_HPP_INCLUDED
|
||||
39
test/external/boost/units/base_units/us/ounce.hpp
vendored
Normal file
39
test/external/boost/units/base_units/us/ounce.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_US_OUNCE_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_US_OUNCE_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/us/pound.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace us {
|
||||
|
||||
typedef scaled_base_unit<pound_base_unit, scale<2, static_rational<-4> > > ounce_base_unit;
|
||||
|
||||
} // namespace us
|
||||
|
||||
template<>
|
||||
struct base_unit_info<us::ounce_base_unit> {
|
||||
static const char* name() { return("ounce"); }
|
||||
static const char* symbol() { return("oz"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_US_OUNCE_HPP_INCLUDED
|
||||
28
test/external/boost/units/base_units/us/pint.hpp
vendored
Normal file
28
test/external/boost/units/base_units/us/pint.hpp
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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) 2007-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_BASE_UNITS_US_PINT_HPP_INCLUDED
|
||||
#define BOOST_UNITS_BASE_UNITS_US_PINT_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/config.hpp>
|
||||
#include <boost/units/systems/si/volume.hpp>
|
||||
#include <boost/units/conversion.hpp>
|
||||
|
||||
BOOST_UNITS_DEFINE_BASE_UNIT_WITH_CONVERSIONS(us, pint, "pint (U.S.)", "pt", 0.4731765e-3, si::volume, -503);
|
||||
|
||||
#if BOOST_UNITS_HAS_BOOST_TYPEOF
|
||||
|
||||
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
|
||||
|
||||
BOOST_TYPEOF_REGISTER_TYPE(boost::units::us::pint_base_unit)
|
||||
|
||||
#endif
|
||||
|
||||
#endif // BOOST_UNITS_BASE_UNITS_US_PINT_HPP_INCLUDED
|
||||
32
test/external/boost/units/base_units/us/pound.hpp
vendored
Normal file
32
test/external/boost/units/base_units/us/pound.hpp
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
// 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) 2007-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_UNIT_SYSTEMS_US_POUND_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_US_POUND_HPP_INCLUDED
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <boost/units/config.hpp>
|
||||
#include <boost/units/base_unit.hpp>
|
||||
#include <boost/units/physical_dimensions/mass.hpp>
|
||||
#include <boost/units/base_units/cgs/gram.hpp>
|
||||
#include <boost/units/conversion.hpp>
|
||||
|
||||
BOOST_UNITS_DEFINE_BASE_UNIT_WITH_CONVERSIONS(us, pound, "pound", "lb", 453.59237, cgs::gram_base_unit, -502); // exact conversion
|
||||
|
||||
#if BOOST_UNITS_HAS_BOOST_TYPEOF
|
||||
|
||||
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
|
||||
|
||||
BOOST_TYPEOF_REGISTER_TYPE(boost::units::us::pound_base_unit)
|
||||
|
||||
#endif
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_US_POUND_HPP_INCLUDED
|
||||
32
test/external/boost/units/base_units/us/pound_force.hpp
vendored
Normal file
32
test/external/boost/units/base_units/us/pound_force.hpp
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
|
||||
// unit/quantity manipulation and conversion
|
||||
//
|
||||
// Copyright (C) 2003-2009 Matthias Christian Schabel
|
||||
// Copyright (C) 2007-2009 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_UNIT_SYSTEMS_US_POUND_FORCE_HPP_INCLUDED
|
||||
#define BOOST_UNIT_SYSTEMS_US_POUND_FORCE_HPP_INCLUDED
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <boost/units/config.hpp>
|
||||
#include <boost/units/base_unit.hpp>
|
||||
//#include <boost/units/physical_dimensions/mass.hpp>
|
||||
#include <boost/units/systems/si/force.hpp>
|
||||
#include <boost/units/conversion.hpp>
|
||||
|
||||
BOOST_UNITS_DEFINE_BASE_UNIT_WITH_CONVERSIONS(us, pound_force, "pound-force", "lbf", 4.4482216152605, si::force, -600); // exact conversion
|
||||
|
||||
#if BOOST_UNITS_HAS_BOOST_TYPEOF
|
||||
|
||||
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
|
||||
|
||||
BOOST_TYPEOF_REGISTER_TYPE(boost::units::us::pound_force_base_unit)
|
||||
|
||||
#endif
|
||||
|
||||
#endif // BOOST_UNIT_SYSTEMS_US_POUND_FORCE_HPP_INCLUDED
|
||||
39
test/external/boost/units/base_units/us/quart.hpp
vendored
Normal file
39
test/external/boost/units/base_units/us/quart.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_BASE_UNITS_US_QUART_HPP_INCLUDED
|
||||
#define BOOST_UNITS_BASE_UNITS_US_QUART_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/us/pint.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace us {
|
||||
|
||||
typedef scaled_base_unit<pint_base_unit, scale<2, static_rational<1> > > quart_base_unit;
|
||||
|
||||
} // namespace us
|
||||
|
||||
template<>
|
||||
struct base_unit_info<us::quart_base_unit> {
|
||||
static const char* name() { return("quart (U.S.)"); }
|
||||
static const char* symbol() { return("qt"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNITS_BASE_UNITS_US_QUART_HPP_INCLUDED
|
||||
39
test/external/boost/units/base_units/us/tablespoon.hpp
vendored
Normal file
39
test/external/boost/units/base_units/us/tablespoon.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_BASE_UNITS_US_TABLESPOON_HPP_INCLUDED
|
||||
#define BOOST_UNITS_BASE_UNITS_US_TABLESPOON_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/us/pint.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace us {
|
||||
|
||||
typedef scaled_base_unit<pint_base_unit, scale<2, static_rational<-5> > > tablespoon_base_unit;
|
||||
|
||||
} // namespace us
|
||||
|
||||
template<>
|
||||
struct base_unit_info<us::tablespoon_base_unit> {
|
||||
static const char* name() { return("tablespoon"); }
|
||||
static const char* symbol() { return("tbsp"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNITS_BASE_UNITS_US_TABLESPOON_HPP_INCLUDED
|
||||
39
test/external/boost/units/base_units/us/teaspoon.hpp
vendored
Normal file
39
test/external/boost/units/base_units/us/teaspoon.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_BASE_UNITS_US_TEASPOON_HPP_INCLUDED
|
||||
#define BOOST_UNITS_BASE_UNITS_US_TEASPOON_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/us/pint.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace us {
|
||||
|
||||
typedef scaled_base_unit<pint_base_unit, scale<96, static_rational<-1> > > teaspoon_base_unit;
|
||||
|
||||
} // namespace us
|
||||
|
||||
template<>
|
||||
struct base_unit_info<us::teaspoon_base_unit> {
|
||||
static const char* name() { return("teaspoon"); }
|
||||
static const char* symbol() { return("tsp"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNITS_BASE_UNITS_US_TEASPOON_HPP_INCLUDED
|
||||
39
test/external/boost/units/base_units/us/ton.hpp
vendored
Normal file
39
test/external/boost/units/base_units/us/ton.hpp
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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) 2007-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_UNIT_BASE_UNITS_US_TON_HPP_INCLUDED
|
||||
#define BOOST_UNIT_BASE_UNITS_US_TON_HPP_INCLUDED
|
||||
|
||||
#include <boost/units/scaled_base_unit.hpp>
|
||||
#include <boost/units/static_rational.hpp>
|
||||
#include <boost/units/scale.hpp>
|
||||
#include <boost/units/base_units/us/pound.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace units {
|
||||
|
||||
namespace us {
|
||||
|
||||
typedef scaled_base_unit<pound_base_unit, scale<2000, static_rational<1> > > ton_base_unit;
|
||||
|
||||
} // namespace us
|
||||
|
||||
template<>
|
||||
struct base_unit_info<us::ton_base_unit> {
|
||||
static const char* name() { return("short ton"); }
|
||||
static const char* symbol() { return("t"); }
|
||||
};
|
||||
|
||||
} // namespace units
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_UNIT_BASE_UNITS_US_TON_HPP_INCLUDED
|
||||
32
test/external/boost/units/base_units/us/yard.hpp
vendored
Normal file
32
test/external/boost/units/base_units/us/yard.hpp
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
// 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) 2007-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_SYSTEMS_US_YARD_BASE_UNIT_HPP
|
||||
#define BOOST_UNITS_SYSTEMS_US_YARD_BASE_UNIT_HPP
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <boost/units/config.hpp>
|
||||
#include <boost/units/base_unit.hpp>
|
||||
#include <boost/units/physical_dimensions/length.hpp>
|
||||
#include <boost/units/base_units/si/meter.hpp>
|
||||
#include <boost/units/conversion.hpp>
|
||||
|
||||
BOOST_UNITS_DEFINE_BASE_UNIT_WITH_CONVERSIONS(us, yard, "yard", "yd", 0.9144, si::meter_base_unit, -501); // exact conversion
|
||||
|
||||
#if BOOST_UNITS_HAS_BOOST_TYPEOF
|
||||
|
||||
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
|
||||
|
||||
BOOST_TYPEOF_REGISTER_TYPE(boost::units::us::yard_base_unit)
|
||||
|
||||
#endif
|
||||
|
||||
#endif // BOOST_UNITS_SYSTEMS_US_YARD_BASE_UNIT_HPP
|
||||
Reference in New Issue
Block a user