Boost logo

Boost-Commit :

From: matthiasschabel_at_[hidden]
Date: 2007-05-31 12:47:28


Author: matthiasschabel
Date: 2007-05-31 12:47:27 EDT (Thu, 31 May 2007)
New Revision: 4382
URL: http://svn.boost.org/trac/boost/changeset/4382

Log:
minor changes

Text files modified:
   sandbox/units/boost/units/base_unit.hpp | 2 +-
   sandbox/units/boost/units/cmath.hpp | 6 +++---
   sandbox/units/boost/units/measurement.hpp | 4 ++--
   sandbox/units/boost/units/new_static_rational.hpp | 18 +++++++++---------
   sandbox/units/boost/units/operators.hpp | 2 +-
   sandbox/units/boost/units/quantity.hpp | 12 ++++++------
   sandbox/units/boost/units/static_rational.hpp | 18 +++++++++---------
   sandbox/units/boost/units/unit.hpp | 2 +-
   8 files changed, 32 insertions(+), 32 deletions(-)

Modified: sandbox/units/boost/units/base_unit.hpp
==============================================================================
--- sandbox/units/boost/units/base_unit.hpp (original)
+++ sandbox/units/boost/units/base_unit.hpp 2007-05-31 12:47:27 EDT (Thu, 31 May 2007)
@@ -36,7 +36,7 @@
 
 /// Defines a base dimension. To define a unit you need to provide
 /// the derived class (CRTP), a dimension list and a unique integer.
-/// struct my_unit : boost::units::base_unit<my_dimension, length_type, 1> {};
+/// struct my_unit : boost::units::base_unit<my_dimension, length_dimension, 1> {};
 /// It is designed so that you will get an error message if you try
 /// to use the same value in multiple definitions.
 template<class Derived,

Modified: sandbox/units/boost/units/cmath.hpp
==============================================================================
--- sandbox/units/boost/units/cmath.hpp (original)
+++ sandbox/units/boost/units/cmath.hpp 2007-05-31 12:47:27 EDT (Thu, 31 May 2007)
@@ -264,9 +264,9 @@
 inline
 typename root_typeof_helper<
     typename add_typeof_helper<
- typename power_typeof_helper<quantity<Unit,Y>,
+ typename power_dimof_helper<quantity<Unit,Y>,
                                      static_rational<2> >::type,
- typename power_typeof_helper<quantity<Unit,Y>,
+ typename power_dimof_helper<quantity<Unit,Y>,
                                      static_rational<2> >::type>::type,
         static_rational<2> >::type
 hypot BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity<Unit,Y>& q1,const quantity<Unit,Y>& q2)
@@ -275,7 +275,7 @@
 
     typedef quantity<Unit,Y> type1;
     
- typedef typename power_typeof_helper<type1,static_rational<2> >::type pow_type;
+ typedef typename power_dimof_helper<type1,static_rational<2> >::type pow_type;
     typedef typename add_typeof_helper<pow_type,pow_type>::type add_type;
     typedef typename root_typeof_helper<add_type,static_rational<2> >::type quantity_type;
         

Modified: sandbox/units/boost/units/measurement.hpp
==============================================================================
--- sandbox/units/boost/units/measurement.hpp (original)
+++ sandbox/units/boost/units/measurement.hpp 2007-05-31 12:47:27 EDT (Thu, 31 May 2007)
@@ -266,9 +266,9 @@
 
 /// specialize power typeof helper
 template<class Y,long N,long D>
-struct power_typeof_helper<measurement<Y>,static_rational<N,D> >
+struct power_dimof_helper<measurement<Y>,static_rational<N,D> >
 {
- typedef measurement<typename power_typeof_helper<Y,static_rational<N,D> >::type> type;
+ typedef measurement<typename power_dimof_helper<Y,static_rational<N,D> >::type> type;
     
     static type value(const measurement<Y>& x)
     {

Modified: sandbox/units/boost/units/new_static_rational.hpp
==============================================================================
--- sandbox/units/boost/units/new_static_rational.hpp (original)
+++ sandbox/units/boost/units/new_static_rational.hpp 2007-05-31 12:47:27 EDT (Thu, 31 May 2007)
@@ -103,7 +103,7 @@
 
 /// raise @c int to a @c static_rational power
 template<long N,long D>
-struct power_typeof_helper<int,static_rational<N,D> >
+struct power_dimof_helper<int,static_rational<N,D> >
 {
     typedef double type;
     
@@ -117,7 +117,7 @@
 
 /// raise @c float to a @c static_rational power
 template<long N,long D>
-struct power_typeof_helper<float,static_rational<N,D> >
+struct power_dimof_helper<float,static_rational<N,D> >
 {
     typedef double type;
     
@@ -131,7 +131,7 @@
 
 /// raise @c double to a @c static_rational power
 template<long N,long D>
-struct power_typeof_helper<double,static_rational<N,D> >
+struct power_dimof_helper<double,static_rational<N,D> >
 {
     typedef double type;
     
@@ -145,7 +145,7 @@
 
 /// raise @c std::complex<float> to a @c static_rational power
 template<long N,long D>
-struct power_typeof_helper<std::complex<float>,static_rational<N,D> >
+struct power_dimof_helper<std::complex<float>,static_rational<N,D> >
 {
     typedef std::complex<float> type;
     
@@ -159,7 +159,7 @@
 
 /// raise @c std::complex<double> to a @c static_rational power
 template<long N,long D>
-struct power_typeof_helper<std::complex<double>,static_rational<N,D> >
+struct power_dimof_helper<std::complex<double>,static_rational<N,D> >
 {
     typedef std::complex<double> type;
     
@@ -245,18 +245,18 @@
 
 /// raise a value to a @c static_rational power
 template<class Rat,class Y>
-typename power_typeof_helper<Y,Rat>::type
+typename power_dimof_helper<Y,Rat>::type
 pow(const Y& x)
 {
- return power_typeof_helper<Y,Rat>::value(x);
+ return power_dimof_helper<Y,Rat>::value(x);
 }
 
 /// raise a value to an integer power
 template<long N,class Y>
-typename power_typeof_helper<Y,static_rational<N> >::type
+typename power_dimof_helper<Y,static_rational<N> >::type
 pow(const Y& x)
 {
- return power_typeof_helper<Y,static_rational<N> >::value(x);
+ return power_dimof_helper<Y,static_rational<N> >::value(x);
 }
 
 /// take the @c static_rational root of a value

Modified: sandbox/units/boost/units/operators.hpp
==============================================================================
--- sandbox/units/boost/units/operators.hpp (original)
+++ sandbox/units/boost/units/operators.hpp 2007-05-31 12:47:27 EDT (Thu, 31 May 2007)
@@ -113,7 +113,7 @@
 
 #endif // BOOST_UNITS_HAS_TYPEOF
 
-template<typename X,typename Y> struct power_typeof_helper;
+template<typename X,typename Y> struct power_dimof_helper;
 template<typename X,typename Y> struct root_typeof_helper;
 
 } // namespace units

Modified: sandbox/units/boost/units/quantity.hpp
==============================================================================
--- sandbox/units/boost/units/quantity.hpp (original)
+++ sandbox/units/boost/units/quantity.hpp 2007-05-31 12:47:27 EDT (Thu, 31 May 2007)
@@ -608,7 +608,7 @@
 struct divide_typeof_helper< X,unit<Dim,System> >
 {
     typedef X value_type;
- typedef typename power_typeof_helper< unit<Dim,System>,static_rational<-1> >::type unit_type;
+ typedef typename power_dimof_helper< unit<Dim,System>,static_rational<-1> >::type unit_type;
     typedef quantity<unit_type,value_type> type;
 };
 
@@ -630,7 +630,7 @@
 struct divide_typeof_helper< X,quantity<Unit,Y> >
 {
     typedef typename divide_typeof_helper<X,Y>::type value_type;
- typedef typename power_typeof_helper< Unit,static_rational<-1> >::type unit_type;
+ typedef typename power_dimof_helper< Unit,static_rational<-1> >::type unit_type;
     typedef quantity<unit_type,value_type> type;
 };
 
@@ -683,15 +683,15 @@
 
 /// specialize power typeof helper
 template<class Unit,long N,long D,class Y>
-struct power_typeof_helper< quantity<Unit,Y>,static_rational<N,D> >
+struct power_dimof_helper< quantity<Unit,Y>,static_rational<N,D> >
 {
- typedef typename power_typeof_helper<Y,static_rational<N,D> >::type value_type;
- typedef typename power_typeof_helper<Unit,static_rational<N,D> >::type unit_type;
+ typedef typename power_dimof_helper<Y,static_rational<N,D> >::type value_type;
+ typedef typename power_dimof_helper<Unit,static_rational<N,D> >::type unit_type;
     typedef quantity<unit_type,value_type> type;
     
     static type value(const quantity<Unit,Y>& x)
     {
- return type::from_value(power_typeof_helper<Y,static_rational<N,D> >::value(x.value()));
+ return type::from_value(power_dimof_helper<Y,static_rational<N,D> >::value(x.value()));
     }
 };
 

Modified: sandbox/units/boost/units/static_rational.hpp
==============================================================================
--- sandbox/units/boost/units/static_rational.hpp (original)
+++ sandbox/units/boost/units/static_rational.hpp 2007-05-31 12:47:27 EDT (Thu, 31 May 2007)
@@ -131,7 +131,7 @@
 
 /// raise @c int to a @c static_rational power
 template<long N,long D>
-struct power_typeof_helper<int,static_rational<N,D> >
+struct power_dimof_helper<int,static_rational<N,D> >
 {
     typedef double type;
     
@@ -145,7 +145,7 @@
 
 /// raise @c float to a @c static_rational power
 template<long N,long D>
-struct power_typeof_helper<float,static_rational<N,D> >
+struct power_dimof_helper<float,static_rational<N,D> >
 {
     typedef double type;
     
@@ -159,7 +159,7 @@
 
 /// raise @c double to a @c static_rational power
 template<long N,long D>
-struct power_typeof_helper<double,static_rational<N,D> >
+struct power_dimof_helper<double,static_rational<N,D> >
 {
     typedef double type;
     
@@ -173,7 +173,7 @@
 
 /// raise @c std::complex<float> to a @c static_rational power
 template<long N,long D>
-struct power_typeof_helper<std::complex<float>,static_rational<N,D> >
+struct power_dimof_helper<std::complex<float>,static_rational<N,D> >
 {
     typedef std::complex<float> type;
     
@@ -187,7 +187,7 @@
 
 /// raise @c std::complex<double> to a @c static_rational power
 template<long N,long D>
-struct power_typeof_helper<std::complex<double>,static_rational<N,D> >
+struct power_dimof_helper<std::complex<double>,static_rational<N,D> >
 {
     typedef std::complex<double> type;
     
@@ -273,18 +273,18 @@
 
 /// raise a value to a @c static_rational power
 template<class Rat,class Y>
-typename power_typeof_helper<Y,Rat>::type
+typename power_dimof_helper<Y,Rat>::type
 pow(const Y& x)
 {
- return power_typeof_helper<Y,Rat>::value(x);
+ return power_dimof_helper<Y,Rat>::value(x);
 }
 
 /// raise a value to an integer power
 template<long N,class Y>
-typename power_typeof_helper<Y,static_rational<N> >::type
+typename power_dimof_helper<Y,static_rational<N> >::type
 pow(const Y& x)
 {
- return power_typeof_helper<Y,static_rational<N> >::value(x);
+ return power_dimof_helper<Y,static_rational<N> >::value(x);
 }
 
 /// take the @c static_rational root of a value

Modified: sandbox/units/boost/units/unit.hpp
==============================================================================
--- sandbox/units/boost/units/unit.hpp (original)
+++ sandbox/units/boost/units/unit.hpp 2007-05-31 12:47:27 EDT (Thu, 31 May 2007)
@@ -410,7 +410,7 @@
 
 /// raise unit to a @c static_rational power
 template<class Dim,class System,long N,long D>
-struct power_typeof_helper<unit<Dim,System>,static_rational<N,D> >
+struct power_dimof_helper<unit<Dim,System>,static_rational<N,D> >
 {
     typedef unit<typename static_power<Dim,static_rational<N,D> >::type,typename static_power<System, static_rational<N,D> >::type> type;
     


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