|
From: Matthias S. <mat...@us...> - 2007-04-13 05:05:29
|
Update of /cvsroot/boost-sandbox/boost-sandbox/boost/units In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv17863/boost/units Added Files: dimensionless_quantity.hpp dimensionless_unit.hpp Log Message: more granular headers --- NEW FILE: dimensionless_quantity.hpp --- // mcs::units - A C++ library for zero-overhead dimensional analysis and // unit/quantity manipulation and conversion // // Copyright (C) 2003-2007 Matthias Christian Schabel // Copyright (C) 2007 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_DIMENSIONLESS_QUANTITY_HPP #define BOOST_UNITS_DIMENSIONLESS_QUANTITY_HPP #include <boost/units/dimensionless_unit.hpp> #include <boost/units/units_fwd.hpp> namespace boost { namespace units { /// utility class to simplify construction of dimensionless quantities template<class System,class Y> struct dimensionless_quantity { typedef quantity<typename dimensionless_unit<System>::type,Y> type; }; } // namespace units } // namespace boost #endif // BOOST_UNITS_DIMENSIONLESS_QUANTITY_HPP --- NEW FILE: dimensionless_unit.hpp --- // mcs::units - A C++ library for zero-overhead dimensional analysis and // unit/quantity manipulation and conversion // // Copyright (C) 2003-2007 Matthias Christian Schabel // Copyright (C) 2007 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_DIMENSIONLESS_UNIT_HPP #define BOOST_UNITS_DIMENSIONLESS_UNIT_HPP //#include <boost/units/dimensionless_type.hpp> #include <boost/units/dimension.hpp> #include <boost/units/units_fwd.hpp> namespace boost { namespace units { /// utility class to simplify construction of dimensionless units in a system template<class System> struct dimensionless_unit { typedef unit<dimensionless_type,System> type; }; } // namespace units } // namespace boost #endif // BOOST_UNITS_DIMENSIONLESS_UNIT_HPP |