Boost logo

Boost-Commit :

From: boost_at_[hidden]
Date: 2008-05-19 02:10:54


Author: matthiasschabel
Date: 2008-05-19 02:10:54 EDT (Mon, 19 May 2008)
New Revision: 45528
URL: http://svn.boost.org/trac/boost/changeset/45528

Log:
add torque physical_dimension and si unit of torque
Added:
   sandbox/units/boost/units/systems/si/torque.hpp (contents, props changed)
Text files modified:
   sandbox/units/boost/units/systems/si.hpp | 1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

Modified: sandbox/units/boost/units/systems/si.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si.hpp (original)
+++ sandbox/units/boost/units/systems/si.hpp 2008-05-19 02:10:54 EDT (Mon, 19 May 2008)
@@ -64,6 +64,7 @@
 #include <boost/units/systems/si/surface_density.hpp>
 #include <boost/units/systems/si/temperature.hpp>
 #include <boost/units/systems/si/time.hpp>
+#include <boost/units/systems/si/torque.hpp>
 #include <boost/units/systems/si/velocity.hpp>
 #include <boost/units/systems/si/volume.hpp>
 #include <boost/units/systems/si/wavenumber.hpp>

Added: sandbox/units/boost/units/systems/si/torque.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/si/torque.hpp 2008-05-19 02:10:54 EDT (Mon, 19 May 2008)
@@ -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) 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_TORQUE_DERIVED_DIMENSION_HPP
+#define BOOST_UNITS_TORQUE_DERIVED_DIMENSION_HPP
+
+#include <boost/units/derived_dimension.hpp>
+#include <boost/units/physical_dimensions/length.hpp>
+#include <boost/units/physical_dimensions/mass.hpp>
+#include <boost/units/physical_dimensions/plane_angle.hpp>
+#include <boost/units/physical_dimensions/time.hpp>
+
+namespace boost {
+
+namespace units {
+
+/// derived dimension for force : L M T^-2 QP^-1
+typedef derived_dimension<length_base_dimension,1,mass_base_dimension,1,time_base_dimension,-2,plane_angle_base_dimension,-1>::type torque_dimension;
+
+} // namespace units
+
+} // namespace boost
+
+#endif // BOOST_UNITS_TORQUE_DERIVED_DIMENSION_HPP


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk