Boost logo

Boost-Commit :

From: steven_at_[hidden]
Date: 2008-05-14 19:05:43


Author: steven_watanabe
Date: 2008-05-14 19:05:41 EDT (Wed, 14 May 2008)
New Revision: 45375
URL: http://svn.boost.org/trac/boost/changeset/45375

Log:
Renamed power_dimof_helper back to power_typof_helper
Text files modified:
   sandbox/units/boost/units/cmath.hpp | 6 +++---
   sandbox/units/boost/units/detail/conversion_impl.hpp | 2 +-
   sandbox/units/boost/units/operators.hpp | 2 +-
   sandbox/units/boost/units/pow.hpp | 16 ++++++++--------
   sandbox/units/boost/units/quantity.hpp | 12 ++++++------
   sandbox/units/boost/units/systems/si/codata/typedefs.hpp | 2 +-
   sandbox/units/boost/units/unit.hpp | 2 +-
   sandbox/units/libs/units/example/complex.cpp | 10 +++++-----
   sandbox/units/libs/units/example/measurement.hpp | 4 ++--
   sandbox/units/libs/units/example/quaternion.cpp | 10 +++++-----
   10 files changed, 33 insertions(+), 33 deletions(-)

Modified: sandbox/units/boost/units/cmath.hpp
==============================================================================
--- sandbox/units/boost/units/cmath.hpp (original)
+++ sandbox/units/boost/units/cmath.hpp 2008-05-14 19:05:41 EDT (Wed, 14 May 2008)
@@ -273,9 +273,9 @@
 inline
 typename root_typeof_helper<
     typename add_typeof_helper<
- typename power_dimof_helper<quantity<Unit,Y>,
+ typename power_typeof_helper<quantity<Unit,Y>,
                                      static_rational<2> >::type,
- typename power_dimof_helper<quantity<Unit,Y>,
+ typename power_typeof_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)
@@ -284,7 +284,7 @@
 
     typedef quantity<Unit,Y> type1;
     
- typedef typename power_dimof_helper<type1,static_rational<2> >::type pow_type;
+ typedef typename power_typeof_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/detail/conversion_impl.hpp
==============================================================================
--- sandbox/units/boost/units/detail/conversion_impl.hpp (original)
+++ sandbox/units/boost/units/detail/conversion_impl.hpp 2008-05-14 19:05:41 EDT (Wed, 14 May 2008)
@@ -234,7 +234,7 @@
         typedef typename source_pair::tag_type source;
         typedef typename get_default_conversion<source>::type new_source;
         typedef typename get_default_conversion_impl<N-1>::template apply<typename mpl::next<Begin>::type> next_iteration;
- typedef typename multiply_typeof_helper<typename power_dimof_helper<new_source, exponent>::type, typename next_iteration::unit_type>::type unit_type;
+ typedef typename multiply_typeof_helper<typename power_typeof_helper<new_source, exponent>::type, typename next_iteration::unit_type>::type unit_type;
         typedef call_base_unit_converter<source, new_source> conversion;
         typedef typename multiply_typeof_helper<typename conversion::type, typename next_iteration::type>::type type;
         static type value() {

Modified: sandbox/units/boost/units/operators.hpp
==============================================================================
--- sandbox/units/boost/units/operators.hpp (original)
+++ sandbox/units/boost/units/operators.hpp 2008-05-14 19:05:41 EDT (Wed, 14 May 2008)
@@ -115,7 +115,7 @@
 
 #endif // BOOST_UNITS_HAS_TYPEOF
 
-template<typename X,typename Y> struct power_dimof_helper;
+template<typename X,typename Y> struct power_typeof_helper;
 template<typename X,typename Y> struct root_typeof_helper;
 
 } // namespace units

Modified: sandbox/units/boost/units/pow.hpp
==============================================================================
--- sandbox/units/boost/units/pow.hpp (original)
+++ sandbox/units/boost/units/pow.hpp 2008-05-14 19:05:41 EDT (Wed, 14 May 2008)
@@ -26,25 +26,25 @@
 
 /// raise a value to a @c static_rational power
 template<class Rat,class Y>
-inline typename power_dimof_helper<Y,Rat>::type
+inline typename power_typeof_helper<Y,Rat>::type
 pow(const Y& x)
 {
- return power_dimof_helper<Y,Rat>::value(x);
+ return power_typeof_helper<Y,Rat>::value(x);
 }
 
 /// raise a value to an integer power
 template<long N,class Y>
-inline typename power_dimof_helper<Y,static_rational<N> >::type
+inline typename power_typeof_helper<Y,static_rational<N> >::type
 pow(const Y& x)
 {
- return power_dimof_helper<Y,static_rational<N> >::value(x);
+ return power_typeof_helper<Y,static_rational<N> >::value(x);
 }
 
 #ifndef BOOST_UNITS_DOXYGEN
 
 /// raise @c T to a @c static_rational power
 template<class T, long N,long D>
-struct power_dimof_helper<T, static_rational<N,D> >
+struct power_typeof_helper<T, static_rational<N,D> >
 {
     typedef typename mpl::if_<boost::is_integral<T>, double, T>::type internal_type;
     typedef detail::static_rational_power_impl<static_rational<N, D>, internal_type> impl;
@@ -58,8 +58,8 @@
 
 /// raise @c float to a @c static_rational power
 template<long N,long D>
-struct power_dimof_helper<float, static_rational<N,D> >
- : power_dimof_helper<double, static_rational<N,D> > {};
+struct power_typeof_helper<float, static_rational<N,D> >
+ : power_typeof_helper<double, static_rational<N,D> > {};
 
 #endif
 
@@ -84,7 +84,7 @@
 /// take @c static_rational root of an @c T
 template<class T, long N,long D>
 struct root_typeof_helper<T,static_rational<N,D> >
- : power_dimof_helper<T, static_rational<D,N> > {};
+ : power_typeof_helper<T, static_rational<D,N> > {};
 
 #endif
 

Modified: sandbox/units/boost/units/quantity.hpp
==============================================================================
--- sandbox/units/boost/units/quantity.hpp (original)
+++ sandbox/units/boost/units/quantity.hpp 2008-05-14 19:05:41 EDT (Wed, 14 May 2008)
@@ -657,7 +657,7 @@
 struct divide_typeof_helper< X,unit<Dim,System> >
 {
     typedef X value_type;
- typedef typename power_dimof_helper< unit<Dim,System>,static_rational<-1> >::type unit_type;
+ typedef typename power_typeof_helper< unit<Dim,System>,static_rational<-1> >::type unit_type;
     typedef quantity<unit_type,value_type> type;
 };
 
@@ -681,7 +681,7 @@
 struct divide_typeof_helper< X,quantity<Unit,Y> >
 {
     typedef typename divide_typeof_helper<X,Y>::type value_type;
- typedef typename power_dimof_helper< Unit,static_rational<-1> >::type unit_type;
+ typedef typename power_typeof_helper< Unit,static_rational<-1> >::type unit_type;
     typedef quantity<unit_type,value_type> type;
 };
 
@@ -739,15 +739,15 @@
 /// specialize power typeof helper
 /// INTERNAL ONLY
 template<class Unit,long N,long D,class Y>
-struct power_dimof_helper< quantity<Unit,Y>,static_rational<N,D> >
+struct power_typeof_helper< quantity<Unit,Y>,static_rational<N,D> >
 {
- 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 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 quantity<unit_type,value_type> type;
     
     static type value(const quantity<Unit,Y>& x)
     {
- return type::from_value(power_dimof_helper<Y,static_rational<N,D> >::value(x.value()));
+ return type::from_value(power_typeof_helper<Y,static_rational<N,D> >::value(x.value()));
     }
 };
 

Modified: sandbox/units/boost/units/systems/si/codata/typedefs.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/codata/typedefs.hpp (original)
+++ sandbox/units/boost/units/systems/si/codata/typedefs.hpp 2008-05-14 19:05:41 EDT (Wed, 14 May 2008)
@@ -51,7 +51,7 @@
 typedef divide_typeof_helper<energy_over_temperature,amount>::type energy_over_temperature_amount;
 typedef divide_typeof_helper<
     divide_typeof_helper<power,area>::type,
- power_dimof_helper<temperature,static_rational<4> >::type
+ power_typeof_helper<temperature,static_rational<4> >::type
>::type power_over_area_temperature_4;
 typedef multiply_typeof_helper<power,area>::type power_area;
 typedef divide_typeof_helper<power_area,solid_angle>::type power_area_over_solid_angle;

Modified: sandbox/units/boost/units/unit.hpp
==============================================================================
--- sandbox/units/boost/units/unit.hpp (original)
+++ sandbox/units/boost/units/unit.hpp 2008-05-14 19:05:41 EDT (Wed, 14 May 2008)
@@ -312,7 +312,7 @@
 
 /// raise unit to a @c static_rational power
 template<class Dim,class System,long N,long D>
-struct power_dimof_helper<unit<Dim,System>,static_rational<N,D> >
+struct power_typeof_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;
     

Modified: sandbox/units/libs/units/example/complex.cpp
==============================================================================
--- sandbox/units/libs/units/example/complex.cpp (original)
+++ sandbox/units/libs/units/example/complex.cpp 2008-05-14 19:05:41 EDT (Wed, 14 May 2008)
@@ -279,10 +279,10 @@
 
 /// specialize power typeof helper for complex<Y>
 template<class Y,long N,long D>
-struct power_dimof_helper<complex<Y>,static_rational<N,D> >
+struct power_typeof_helper<complex<Y>,static_rational<N,D> >
 {
     typedef complex<
- typename power_dimof_helper<Y,static_rational<N,D> >::type
+ typename power_typeof_helper<Y,static_rational<N,D> >::type
> type;
     
     static type value(const complex<Y>& x)
@@ -315,12 +315,12 @@
 
 /// specialize power typeof helper for complex<quantity<Unit,Y> >
 template<class Y,class Unit,long N,long D>
-struct power_dimof_helper<complex<quantity<Unit,Y> >,static_rational<N,D> >
+struct power_typeof_helper<complex<quantity<Unit,Y> >,static_rational<N,D> >
 {
     typedef typename
- power_dimof_helper<Y,static_rational<N,D> >::type value_type;
+ power_typeof_helper<Y,static_rational<N,D> >::type value_type;
     typedef typename
- power_dimof_helper<Unit,static_rational<N,D> >::type unit_type;
+ power_typeof_helper<Unit,static_rational<N,D> >::type unit_type;
     typedef quantity<unit_type,value_type> quantity_type;
     typedef complex<quantity_type> type;
     

Modified: sandbox/units/libs/units/example/measurement.hpp
==============================================================================
--- sandbox/units/libs/units/example/measurement.hpp (original)
+++ sandbox/units/libs/units/example/measurement.hpp 2008-05-14 19:05:41 EDT (Wed, 14 May 2008)
@@ -269,10 +269,10 @@
 
 /// specialize power typeof helper
 template<class Y,long N,long D>
-struct power_dimof_helper<measurement<Y>,static_rational<N,D> >
+struct power_typeof_helper<measurement<Y>,static_rational<N,D> >
 {
     typedef measurement<
- typename power_dimof_helper<Y,static_rational<N,D> >::type
+ typename power_typeof_helper<Y,static_rational<N,D> >::type
> type;
     
     static type value(const measurement<Y>& x)

Modified: sandbox/units/libs/units/example/quaternion.cpp
==============================================================================
--- sandbox/units/libs/units/example/quaternion.cpp (original)
+++ sandbox/units/libs/units/example/quaternion.cpp 2008-05-14 19:05:41 EDT (Wed, 14 May 2008)
@@ -69,13 +69,13 @@
 //[quaternion_class_snippet_1
 /// specialize power typeof helper
 template<class Y,long N,long D>
-struct power_dimof_helper<boost::math::quaternion<Y>,static_rational<N,D> >
+struct power_typeof_helper<boost::math::quaternion<Y>,static_rational<N,D> >
 {
     // boost::math::quaternion only supports integer powers
     BOOST_STATIC_ASSERT(D==1);
     
     typedef boost::math::quaternion<
- typename power_dimof_helper<Y,static_rational<N,D> >::type
+ typename power_typeof_helper<Y,static_rational<N,D> >::type
> type;
     
     static type value(const boost::math::quaternion<Y>& x)
@@ -105,16 +105,16 @@
 //[quaternion_class_snippet_2
 /// specialize power typeof helper for quaternion<quantity<Unit,Y> >
 template<class Unit,long N,long D,class Y>
-struct power_dimof_helper<
+struct power_typeof_helper<
     boost::math::quaternion<quantity<Unit,Y> >,
     static_rational<N,D> >
 {
- typedef typename power_dimof_helper<
+ typedef typename power_typeof_helper<
         Y,
         static_rational<N,D>
>::type value_type;
 
- typedef typename power_dimof_helper<
+ typedef typename power_typeof_helper<
         Unit,
         static_rational<N,D>
>::type unit_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