|
Boost-Commit : |
From: steven_at_[hidden]
Date: 2008-05-24 15:41:20
Author: steven_watanabe
Date: 2008-05-24 15:41:19 EDT (Sat, 24 May 2008)
New Revision: 45735
URL: http://svn.boost.org/trac/boost/changeset/45735
Log:
Renamed dimension_list to list because its being used all over the place for lots of other purposes as well...
Text files modified:
sandbox/units/boost/units/base_dimension.hpp | 2 +-
sandbox/units/boost/units/base_unit.hpp | 2 +-
sandbox/units/boost/units/detail/dimension_list.hpp | 10 +++++-----
sandbox/units/boost/units/detail/linear_algebra.hpp | 4 ++--
sandbox/units/boost/units/detail/unscale.hpp | 2 +-
sandbox/units/boost/units/heterogeneous_system.hpp | 2 +-
sandbox/units/boost/units/is_dimension_list.hpp | 2 +-
sandbox/units/boost/units/make_scaled_unit.hpp | 2 +-
sandbox/units/boost/units/make_system.hpp | 2 +-
sandbox/units/boost/units/scaled_base_unit.hpp | 2 +-
sandbox/units/boost/units/units_fwd.hpp | 2 +-
sandbox/units/libs/units/example/dimension.cpp | 14 +++++++-------
12 files changed, 23 insertions(+), 23 deletions(-)
Modified: sandbox/units/boost/units/base_dimension.hpp
==============================================================================
--- sandbox/units/boost/units/base_dimension.hpp (original)
+++ sandbox/units/boost/units/base_dimension.hpp 2008-05-24 15:41:19 EDT (Sat, 24 May 2008)
@@ -65,7 +65,7 @@
typedef base_dimension this_type;
/// A convenience typedef. Equivalent to boost::units::derived_dimension<Derived,1>::type.
#ifndef BOOST_UNITS_DOXYGEN
- typedef dimension_list<dim<Derived,static_rational<1> >, dimensionless_type> dimension_type;
+ typedef list<dim<Derived,static_rational<1> >, dimensionless_type> dimension_type;
#else
typedef detail::unspecified dimension_type;
#endif
Modified: sandbox/units/boost/units/base_unit.hpp
==============================================================================
--- sandbox/units/boost/units/base_unit.hpp (original)
+++ sandbox/units/boost/units/base_unit.hpp 2008-05-24 15:41:19 EDT (Sat, 24 May 2008)
@@ -80,7 +80,7 @@
Dim,
heterogeneous_system<
heterogeneous_system_impl<
- dimension_list<
+ list<
heterogeneous_system_dim<Derived,static_rational<1> >,
dimensionless_type
>,
Modified: sandbox/units/boost/units/detail/dimension_list.hpp
==============================================================================
--- sandbox/units/boost/units/detail/dimension_list.hpp (original)
+++ sandbox/units/boost/units/detail/dimension_list.hpp 2008-05-24 15:41:19 EDT (Sat, 24 May 2008)
@@ -34,10 +34,10 @@
} // namespace detail
template<class Item, class Next>
-struct dimension_list
+struct list
{
typedef detail::dimension_list_tag tag;
- typedef dimension_list type;
+ typedef list type;
typedef Item item;
typedef Next next;
typedef typename mpl::next<typename Next::size>::type size;
@@ -83,7 +83,7 @@
template<class L, class T>
struct apply
{
- typedef units::dimension_list<T, L> type;
+ typedef units::list<T, L> type;
};
};
@@ -111,7 +111,7 @@
// INTERNAL ONLY
template<class Item, class Next>
-struct deref<units::dimension_list<Item, Next> >
+struct deref<units::list<Item, Next> >
{
typedef Item type;
};
@@ -124,7 +124,7 @@
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
-BOOST_TYPEOF_REGISTER_TEMPLATE(boost::units::dimension_list, 2)
+BOOST_TYPEOF_REGISTER_TEMPLATE(boost::units::list, 2)
#endif
Modified: sandbox/units/boost/units/detail/linear_algebra.hpp
==============================================================================
--- sandbox/units/boost/units/detail/linear_algebra.hpp (original)
+++ sandbox/units/boost/units/detail/linear_algebra.hpp 2008-05-24 15:41:19 EDT (Sat, 24 May 2008)
@@ -1030,7 +1030,7 @@
typedef void base_dimension_type;
};
template<class T>
-struct is_base_dimension_unit<dimension_list<dim<T, static_rational<1> >, dimensionless_type> > {
+struct is_base_dimension_unit<list<dim<T, static_rational<1> >, dimensionless_type> > {
typedef mpl::true_ type;
typedef T base_dimension_type;
};
@@ -1098,7 +1098,7 @@
// pad the dimension with zeroes so it can just be a
// list of numbers, making the multiplication easy
// e.g. if the arguments are list<pound, foot> and
- // dimension_list<mass,time^-2> then this step will
+ // list<mass,time^-2> then this step will
// yield list<0,1,-2>
typedef typename expand_dimensions<mpl::size<typename base_solutions::dimensions>::value>::template apply<
typename mpl::begin<typename base_solutions::dimensions>::type,
Modified: sandbox/units/boost/units/detail/unscale.hpp
==============================================================================
--- sandbox/units/boost/units/detail/unscale.hpp (original)
+++ sandbox/units/boost/units/detail/unscale.hpp 2008-05-24 15:41:19 EDT (Sat, 24 May 2008)
@@ -86,7 +86,7 @@
template<class S, class Scale>
struct get_scale_list<scaled_base_unit<S, Scale> >
{
- typedef typename mpl::times<dimension_list<scale_list_dim<Scale>, dimensionless_type>, typename get_scale_list<S>::type>::type type;
+ typedef typename mpl::times<list<scale_list_dim<Scale>, dimensionless_type>, typename get_scale_list<S>::type>::type type;
};
/// INTERNAL ONLY
Modified: sandbox/units/boost/units/heterogeneous_system.hpp
==============================================================================
--- sandbox/units/boost/units/heterogeneous_system.hpp (original)
+++ sandbox/units/boost/units/heterogeneous_system.hpp 2008-05-24 15:41:19 EDT (Sat, 24 May 2008)
@@ -92,7 +92,7 @@
Dimensions, \
boost::units::heterogeneous_system< \
boost::units::heterogeneous_system_impl< \
- boost::units::dimension_list< \
+ boost::units::list< \
boost::units::heterogeneous_system_dim< \
BaseUnit, \
boost::units::static_rational<1> \
Modified: sandbox/units/boost/units/is_dimension_list.hpp
==============================================================================
--- sandbox/units/boost/units/is_dimension_list.hpp (original)
+++ sandbox/units/boost/units/is_dimension_list.hpp 2008-05-24 15:41:19 EDT (Sat, 24 May 2008)
@@ -26,7 +26,7 @@
{ };
template<typename Item, typename Next>
-struct is_dimension_list<dimension_list<Item, Next> > :
+struct is_dimension_list<list<Item, Next> > :
public mpl::true_
{ };
Modified: sandbox/units/boost/units/make_scaled_unit.hpp
==============================================================================
--- sandbox/units/boost/units/make_scaled_unit.hpp (original)
+++ sandbox/units/boost/units/make_scaled_unit.hpp 2008-05-24 15:41:19 EDT (Sat, 24 May 2008)
@@ -32,7 +32,7 @@
Dimension,
typename mpl::times<
OldScale,
- dimension_list<scale_list_dim<Scale>, dimensionless_type>
+ list<scale_list_dim<Scale>, dimensionless_type>
>::type
>
>
Modified: sandbox/units/boost/units/make_system.hpp
==============================================================================
--- sandbox/units/boost/units/make_system.hpp (original)
+++ sandbox/units/boost/units/make_system.hpp 2008-05-24 15:41:19 EDT (Sat, 24 May 2008)
@@ -71,7 +71,7 @@
template<class T0>
struct make_system<T0, na, na, na, na, na, na, na, na, na>
{
- typedef homogeneous_system<dimension_list<T0, dimensionless_type> > type;
+ typedef homogeneous_system<list<T0, dimensionless_type> > type;
};
template<class T0, class T1>
Modified: sandbox/units/boost/units/scaled_base_unit.hpp
==============================================================================
--- sandbox/units/boost/units/scaled_base_unit.hpp (original)
+++ sandbox/units/boost/units/scaled_base_unit.hpp 2008-05-24 15:41:19 EDT (Sat, 24 May 2008)
@@ -59,7 +59,7 @@
dimension_type,
heterogeneous_system<
heterogeneous_system_impl<
- dimension_list<
+ list<
heterogeneous_system_dim<scaled_base_unit,static_rational<1> >,
dimensionless_type
>,
Modified: sandbox/units/boost/units/units_fwd.hpp
==============================================================================
--- sandbox/units/boost/units/units_fwd.hpp (original)
+++ sandbox/units/boost/units/units_fwd.hpp 2008-05-24 15:41:19 EDT (Sat, 24 May 2008)
@@ -24,7 +24,7 @@
template<typename T> struct is_dim;
struct dimensionless_type;
-template<class Item,class Next> struct dimension_list;
+template<class Item,class Next> struct list;
template<typename Seq> struct make_dimension_list;
template<class T> struct is_dimensionless;
Modified: sandbox/units/libs/units/example/dimension.cpp
==============================================================================
--- sandbox/units/libs/units/example/dimension.cpp (original)
+++ sandbox/units/libs/units/example/dimension.cpp 2008-05-24 15:41:19 EDT (Sat, 24 May 2008)
@@ -20,13 +20,13 @@
@verbatim
//[dimension_output
-length_dimension = dimension_list<dim<length_base_dimension, static_rational<1l, 1l> >, dimensionless_type>
-mass_dimension = dimension_list<dim<mass_base_dimension, static_rational<1l, 1l> >, dimensionless_type>
-time_dimension = dimension_list<dim<time_base_dimension, static_rational<1l, 1l> >, dimensionless_type>
-energy_dimension = dimension_list<dim<length_base_dimension, static_rational<2l, 1l> >, dimension_list<dim<mass_base_dimension, static_rational<1l, 1l> >, dimension_list<dim<time_base_dimension, static_rational<-2l, 1l> >, dimensionless_type> > >
-LM_type = dimension_list<dim<length_base_dimension, static_rational<1l, 1l> >, dimension_list<dim<mass_base_dimension, static_rational<1l, 1l> >, dimensionless_type> >
-L_T_type = dimension_list<dim<length_base_dimension, static_rational<1l, 1l> >, dimension_list<dim<time_base_dimension, static_rational<-1l, 1l> >, dimensionless_type> >
-V_type = dimension_list<dim<length_base_dimension, static_rational<1l, 1l> >, dimension_list<dim<time_base_dimension, static_rational<-1l, 1l> >, dimensionless_type> >
+length_dimension = list<dim<length_base_dimension, static_rational<1l, 1l> >, dimensionless_type>
+mass_dimension = list<dim<mass_base_dimension, static_rational<1l, 1l> >, dimensionless_type>
+time_dimension = list<dim<time_base_dimension, static_rational<1l, 1l> >, dimensionless_type>
+energy_dimension = list<dim<length_base_dimension, static_rational<2l, 1l> >, list<dim<mass_base_dimension, static_rational<1l, 1l> >, list<dim<time_base_dimension, static_rational<-2l, 1l> >, dimensionless_type> > >
+LM_type = list<dim<length_base_dimension, static_rational<1l, 1l> >, list<dim<mass_base_dimension, static_rational<1l, 1l> >, dimensionless_type> >
+L_T_type = list<dim<length_base_dimension, static_rational<1l, 1l> >, list<dim<time_base_dimension, static_rational<-1l, 1l> >, dimensionless_type> >
+V_type = list<dim<length_base_dimension, static_rational<1l, 1l> >, list<dim<time_base_dimension, static_rational<-1l, 1l> >, dimensionless_type> >
//]
@endverbatim
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