|
Boost-Commit : |
From: steven_at_[hidden]
Date: 2008-05-26 22:09:21
Author: steven_watanabe
Date: 2008-05-26 22:09:20 EDT (Mon, 26 May 2008)
New Revision: 45805
URL: http://svn.boost.org/trac/boost/changeset/45805
Log:
Removed tabs
Text files modified:
sandbox/units/boost/units/detail/utility.hpp | 6 +-
sandbox/units/boost/units/physical_dimensions/action.hpp | 2
sandbox/units/boost/units/physical_dimensions/angular_momentum.hpp | 4
sandbox/units/boost/units/physical_dimensions/dynamic_viscosity.hpp | 2
sandbox/units/boost/units/physical_dimensions/energy.hpp | 2
sandbox/units/boost/units/physical_dimensions/energy_density.hpp | 2
sandbox/units/boost/units/physical_dimensions/force.hpp | 2
sandbox/units/boost/units/physical_dimensions/heat_capacity.hpp | 4
sandbox/units/boost/units/physical_dimensions/illuminance.hpp | 2
sandbox/units/boost/units/physical_dimensions/moment_of_inertia.hpp | 2
sandbox/units/boost/units/physical_dimensions/momentum.hpp | 2
sandbox/units/boost/units/physical_dimensions/power.hpp | 2
sandbox/units/boost/units/physical_dimensions/pressure.hpp | 2
sandbox/units/boost/units/physical_dimensions/stress.hpp | 2
sandbox/units/boost/units/physical_dimensions/torque.hpp | 4
sandbox/units/boost/units/scale.hpp | 8 +-
sandbox/units/libs/units/example/composite_output.cpp | 94 ++++++++++++++++++++--------------------
17 files changed, 71 insertions(+), 71 deletions(-)
Modified: sandbox/units/boost/units/detail/utility.hpp
==============================================================================
--- sandbox/units/boost/units/detail/utility.hpp (original)
+++ sandbox/units/boost/units/detail/utility.hpp 2008-05-26 22:09:20 EDT (Mon, 26 May 2008)
@@ -54,11 +54,11 @@
if (realname != NULL)
{
std::string out(realname);
-
+
std::free(realname);
- boost::replace_all(out,"boost::units::","");
-
+ boost::replace_all(out,"boost::units::","");
+
return out;
}
Modified: sandbox/units/boost/units/physical_dimensions/action.hpp
==============================================================================
--- sandbox/units/boost/units/physical_dimensions/action.hpp (original)
+++ sandbox/units/boost/units/physical_dimensions/action.hpp 2008-05-26 22:09:20 EDT (Mon, 26 May 2008)
@@ -23,7 +23,7 @@
/// derived dimension for action : L^2 M T^-1
typedef derived_dimension<length_base_dimension,2,
mass_base_dimension,1,
- time_base_dimension,-1>::type action_dimension;
+ time_base_dimension,-1>::type action_dimension;
} // namespace units
Modified: sandbox/units/boost/units/physical_dimensions/angular_momentum.hpp
==============================================================================
--- sandbox/units/boost/units/physical_dimensions/angular_momentum.hpp (original)
+++ sandbox/units/boost/units/physical_dimensions/angular_momentum.hpp 2008-05-26 22:09:20 EDT (Mon, 26 May 2008)
@@ -24,8 +24,8 @@
/// derived dimension for angular momentum : L M T^-1 QP^-1
typedef derived_dimension<length_base_dimension,1,
mass_base_dimension,1,
- time_base_dimension,-1,
- plane_angle_base_dimension,-1>::type angular_momentum_dimension;
+ time_base_dimension,-1,
+ plane_angle_base_dimension,-1>::type angular_momentum_dimension;
} // namespace units
Modified: sandbox/units/boost/units/physical_dimensions/dynamic_viscosity.hpp
==============================================================================
--- sandbox/units/boost/units/physical_dimensions/dynamic_viscosity.hpp (original)
+++ sandbox/units/boost/units/physical_dimensions/dynamic_viscosity.hpp 2008-05-26 22:09:20 EDT (Mon, 26 May 2008)
@@ -23,7 +23,7 @@
/// derived dimension for dynamic viscosity : M L^-1 T^-1
typedef derived_dimension<mass_base_dimension,1,
length_base_dimension,-1,
- time_base_dimension,-1>::type dynamic_viscosity_dimension;
+ time_base_dimension,-1>::type dynamic_viscosity_dimension;
} // namespace units
Modified: sandbox/units/boost/units/physical_dimensions/energy.hpp
==============================================================================
--- sandbox/units/boost/units/physical_dimensions/energy.hpp (original)
+++ sandbox/units/boost/units/physical_dimensions/energy.hpp 2008-05-26 22:09:20 EDT (Mon, 26 May 2008)
@@ -23,7 +23,7 @@
/// derived dimension for energy : L^2 M T^-2
typedef derived_dimension<length_base_dimension,2,
mass_base_dimension,1,
- time_base_dimension,-2>::type energy_dimension;
+ time_base_dimension,-2>::type energy_dimension;
} // namespace units
Modified: sandbox/units/boost/units/physical_dimensions/energy_density.hpp
==============================================================================
--- sandbox/units/boost/units/physical_dimensions/energy_density.hpp (original)
+++ sandbox/units/boost/units/physical_dimensions/energy_density.hpp 2008-05-26 22:09:20 EDT (Mon, 26 May 2008)
@@ -23,7 +23,7 @@
/// derived dimension for energy density : L^-1 M^1 T^-2
typedef derived_dimension<length_base_dimension,-1,
mass_base_dimension,1,
- time_base_dimension,-2>::type energy_density_dimension;
+ time_base_dimension,-2>::type energy_density_dimension;
} // namespace units
Modified: sandbox/units/boost/units/physical_dimensions/force.hpp
==============================================================================
--- sandbox/units/boost/units/physical_dimensions/force.hpp (original)
+++ sandbox/units/boost/units/physical_dimensions/force.hpp 2008-05-26 22:09:20 EDT (Mon, 26 May 2008)
@@ -23,7 +23,7 @@
/// derived dimension for force : L M T^-2
typedef derived_dimension<length_base_dimension,1,
mass_base_dimension,1,
- time_base_dimension,-2>::type force_dimension;
+ time_base_dimension,-2>::type force_dimension;
} // namespace units
Modified: sandbox/units/boost/units/physical_dimensions/heat_capacity.hpp
==============================================================================
--- sandbox/units/boost/units/physical_dimensions/heat_capacity.hpp (original)
+++ sandbox/units/boost/units/physical_dimensions/heat_capacity.hpp 2008-05-26 22:09:20 EDT (Mon, 26 May 2008)
@@ -24,8 +24,8 @@
/// derived dimension for heat capacity : L^2 M T^-2 Theta^-1
typedef derived_dimension<length_base_dimension,2,
mass_base_dimension,1,
- time_base_dimension,-2,
- temperature_base_dimension,-1>::type heat_capacity_dimension;
+ time_base_dimension,-2,
+ temperature_base_dimension,-1>::type heat_capacity_dimension;
} // namespace units
Modified: sandbox/units/boost/units/physical_dimensions/illuminance.hpp
==============================================================================
--- sandbox/units/boost/units/physical_dimensions/illuminance.hpp (original)
+++ sandbox/units/boost/units/physical_dimensions/illuminance.hpp 2008-05-26 22:09:20 EDT (Mon, 26 May 2008)
@@ -23,7 +23,7 @@
/// derived dimension for illuminance : L^-2 I QS
typedef derived_dimension<length_base_dimension,-2,
luminous_intensity_base_dimension,1,
- solid_angle_base_dimension,1>::type illuminance_dimension;
+ solid_angle_base_dimension,1>::type illuminance_dimension;
} // namespace units
Modified: sandbox/units/boost/units/physical_dimensions/moment_of_inertia.hpp
==============================================================================
--- sandbox/units/boost/units/physical_dimensions/moment_of_inertia.hpp (original)
+++ sandbox/units/boost/units/physical_dimensions/moment_of_inertia.hpp 2008-05-26 22:09:20 EDT (Mon, 26 May 2008)
@@ -23,7 +23,7 @@
/// derived dimension for moment of inertia : L M QP^-2
typedef derived_dimension<length_base_dimension,1,
mass_base_dimension,1,
- plane_angle_base_dimension,-2>::type moment_of_inertia_dimension;
+ plane_angle_base_dimension,-2>::type moment_of_inertia_dimension;
} // namespace units
Modified: sandbox/units/boost/units/physical_dimensions/momentum.hpp
==============================================================================
--- sandbox/units/boost/units/physical_dimensions/momentum.hpp (original)
+++ sandbox/units/boost/units/physical_dimensions/momentum.hpp 2008-05-26 22:09:20 EDT (Mon, 26 May 2008)
@@ -23,7 +23,7 @@
/// derived dimension for linear momentum : L M T^-1
typedef derived_dimension<length_base_dimension,1,
mass_base_dimension,1,
- time_base_dimension,-1>::type momentum_dimension;
+ time_base_dimension,-1>::type momentum_dimension;
} // namespace units
Modified: sandbox/units/boost/units/physical_dimensions/power.hpp
==============================================================================
--- sandbox/units/boost/units/physical_dimensions/power.hpp (original)
+++ sandbox/units/boost/units/physical_dimensions/power.hpp 2008-05-26 22:09:20 EDT (Mon, 26 May 2008)
@@ -23,7 +23,7 @@
/// derived dimension for power : L^2 M T^-3
typedef derived_dimension<length_base_dimension,2,
mass_base_dimension,1,
- time_base_dimension,-3>::type power_dimension;
+ time_base_dimension,-3>::type power_dimension;
} // namespace units
Modified: sandbox/units/boost/units/physical_dimensions/pressure.hpp
==============================================================================
--- sandbox/units/boost/units/physical_dimensions/pressure.hpp (original)
+++ sandbox/units/boost/units/physical_dimensions/pressure.hpp 2008-05-26 22:09:20 EDT (Mon, 26 May 2008)
@@ -23,7 +23,7 @@
/// derived dimension for pressure : L^-1 M T^-2
typedef derived_dimension<length_base_dimension,-1,
mass_base_dimension,1,
- time_base_dimension,-2>::type pressure_dimension;
+ time_base_dimension,-2>::type pressure_dimension;
} // namespace units
Modified: sandbox/units/boost/units/physical_dimensions/stress.hpp
==============================================================================
--- sandbox/units/boost/units/physical_dimensions/stress.hpp (original)
+++ sandbox/units/boost/units/physical_dimensions/stress.hpp 2008-05-26 22:09:20 EDT (Mon, 26 May 2008)
@@ -23,7 +23,7 @@
/// derived dimension for stress : L^-1 M T^-2
typedef derived_dimension<length_base_dimension,-1,
mass_base_dimension,1,
- time_base_dimension,-2>::type stress_dimension;
+ time_base_dimension,-2>::type stress_dimension;
} // namespace units
Modified: sandbox/units/boost/units/physical_dimensions/torque.hpp
==============================================================================
--- sandbox/units/boost/units/physical_dimensions/torque.hpp (original)
+++ sandbox/units/boost/units/physical_dimensions/torque.hpp 2008-05-26 22:09:20 EDT (Mon, 26 May 2008)
@@ -24,8 +24,8 @@
/// derived dimension for torque : 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;
+ time_base_dimension,-2,
+ plane_angle_base_dimension,-1>::type torque_dimension;
} // namespace units
Modified: sandbox/units/boost/units/scale.hpp
==============================================================================
--- sandbox/units/boost/units/scale.hpp (original)
+++ sandbox/units/boost/units/scale.hpp 2008-05-26 22:09:20 EDT (Mon, 26 May 2008)
@@ -35,8 +35,8 @@
typedef Exponent exponent;
typedef double value_type;
static value_type value() { return(detail::static_rational_power<Exponent>(static_cast<double>(base))); }
- static std::string name() { return ""; };
- static std::string symbol() { return ""; };
+ static std::string name() { return ""; };
+ static std::string symbol() { return ""; };
};
template<long Base, class Exponent>
@@ -60,13 +60,13 @@
template<long Base,class Exponent>
std::string symbol_string(const scale<Base,Exponent>&)
{
- return scale<Base,Exponent>::symbol();
+ return scale<Base,Exponent>::symbol();
}
template<long Base,class Exponent>
std::string name_string(const scale<Base,Exponent>&)
{
- return scale<Base,Exponent>::name();
+ return scale<Base,Exponent>::name();
}
#ifndef BOOST_UNITS_DOXYGEN
Modified: sandbox/units/libs/units/example/composite_output.cpp
==============================================================================
--- sandbox/units/libs/units/example/composite_output.cpp (original)
+++ sandbox/units/libs/units/example/composite_output.cpp 2008-05-26 22:09:20 EDT (Mon, 26 May 2008)
@@ -30,12 +30,12 @@
std::string name_string(const cgs::force&)
{
- return "dyne";
+ return "dyne";
}
std::string symbol_string(const cgs::force&)
{
- return "dyn";
+ return "dyn";
}
//]
@@ -46,53 +46,53 @@
int main()
{
- using namespace boost::units;
- using boost::units::cgs::centimeter;
- using boost::units::cgs::gram;
- using boost::units::cgs::second;
- using boost::units::cgs::dyne;
-
- si::nano*si::farad;
- 1.0*si::nano*si::farad;
-
+ using namespace boost::units;
+ using boost::units::cgs::centimeter;
+ using boost::units::cgs::gram;
+ using boost::units::cgs::second;
+ using boost::units::cgs::dyne;
+
+ si::nano*si::farad;
+ 1.0*si::nano*si::farad;
+
std::cout << 2.0 * dyne << std::endl;
std::cout << symbol_format << 2.0 * dyne << std::endl;
std::cout << name_format << 2.0 * dyne << std::endl;
-
- std::cout << symbol_string(dyne) << std::endl;
- std::cout << name_string(dyne) << std::endl;
-
- std::cout << symbol_string(gram*centimeter/second) << std::endl;
- std::cout << name_string(gram*centimeter/second) << std::endl;
-
- std::cout << symbol_string(gram*centimeter/(second*second)) << std::endl;
- std::cout << name_string(gram*centimeter/(second*second)) << std::endl;
-
- std::cout << symbol_string(scale<10,static_rational<-9> >()) << std::endl;
- std::cout << name_string(scale<10,static_rational<-9> >()) << std::endl;
-
- // wrong! - should output "n" and "nano", respectively
- std::cout << simplify_typename(si::nano) << std::endl;
-
- std::cout << symbol_string(si::nano) << std::endl;
- std::cout << name_string(si::nano) << std::endl;
-
- std::cout << name_format << si::farad << std::endl;
- std::cout << symbol_format << si::farad << std::endl;
-
- std::cout << name_format << 1.0*si::farad << std::endl;
- std::cout << symbol_format << 1.0*si::farad << std::endl;
-
- // wrong! - should output "nF" and "nanofarad", respectively
- std::cout << symbol_string(si::farad*si::nano) << std::endl;
- std::cout << name_string(si::farad*si::nano) << std::endl;
-
- // doesn't work because we can't make assumptions about how user wants value() to be formatted
-// std::cout << symbol_string(si::nano*1.0*si::farad) << std::endl;
-// std::cout << name_string(1.0*si::nano*si::farad) << std::endl;
-
- // wrong! - should output "n(cm g s^-1)" and "nano(centimeter gram second^-1)", respectively
- std::cout << symbol_string(si::nano*gram*centimeter/second) << std::endl;
- std::cout << name_string(si::nano*gram*centimeter/second) << std::endl;
+
+ std::cout << symbol_string(dyne) << std::endl;
+ std::cout << name_string(dyne) << std::endl;
+
+ std::cout << symbol_string(gram*centimeter/second) << std::endl;
+ std::cout << name_string(gram*centimeter/second) << std::endl;
+
+ std::cout << symbol_string(gram*centimeter/(second*second)) << std::endl;
+ std::cout << name_string(gram*centimeter/(second*second)) << std::endl;
+
+ std::cout << symbol_string(scale<10,static_rational<-9> >()) << std::endl;
+ std::cout << name_string(scale<10,static_rational<-9> >()) << std::endl;
+
+ // wrong! - should output "n" and "nano", respectively
+ std::cout << simplify_typename(si::nano) << std::endl;
+
+ std::cout << symbol_string(si::nano) << std::endl;
+ std::cout << name_string(si::nano) << std::endl;
+
+ std::cout << name_format << si::farad << std::endl;
+ std::cout << symbol_format << si::farad << std::endl;
+
+ std::cout << name_format << 1.0*si::farad << std::endl;
+ std::cout << symbol_format << 1.0*si::farad << std::endl;
+
+ // wrong! - should output "nF" and "nanofarad", respectively
+ std::cout << symbol_string(si::farad*si::nano) << std::endl;
+ std::cout << name_string(si::farad*si::nano) << std::endl;
+
+ // doesn't work because we can't make assumptions about how user wants value() to be formatted
+// std::cout << symbol_string(si::nano*1.0*si::farad) << std::endl;
+// std::cout << name_string(1.0*si::nano*si::farad) << std::endl;
+
+ // wrong! - should output "n(cm g s^-1)" and "nano(centimeter gram second^-1)", respectively
+ std::cout << symbol_string(si::nano*gram*centimeter/second) << std::endl;
+ std::cout << name_string(si::nano*gram*centimeter/second) << std::endl;
}
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