Boost logo

Boost-Commit :

From: boost_at_[hidden]
Date: 2008-05-19 16:08:58


Author: matthiasschabel
Date: 2008-05-19 16:08:57 EDT (Mon, 19 May 2008)
New Revision: 45561
URL: http://svn.boost.org/trac/boost/changeset/45561

Log:
rename namespace CODATA -> namespace codata for consistency
Text files modified:
   sandbox/units/boost/units/systems/si/codata/alpha_constants.hpp | 4 ++--
   sandbox/units/boost/units/systems/si/codata/atomic_and_nuclear_constants.hpp | 4 ++--
   sandbox/units/boost/units/systems/si/codata/deuteron_constants.hpp | 4 ++--
   sandbox/units/boost/units/systems/si/codata/electromagnetic_constants.hpp | 4 ++--
   sandbox/units/boost/units/systems/si/codata/electron_constants.hpp | 4 ++--
   sandbox/units/boost/units/systems/si/codata/helion_constants.hpp | 4 ++--
   sandbox/units/boost/units/systems/si/codata/muon_constants.hpp | 4 ++--
   sandbox/units/boost/units/systems/si/codata/neutron_constants.hpp | 4 ++--
   sandbox/units/boost/units/systems/si/codata/physico-chemical_constants.hpp | 4 ++--
   sandbox/units/boost/units/systems/si/codata/proton_constants.hpp | 4 ++--
   sandbox/units/boost/units/systems/si/codata/tau_constants.hpp | 4 ++--
   sandbox/units/boost/units/systems/si/codata/triton_constants.hpp | 4 ++--
   sandbox/units/boost/units/systems/si/codata/typedefs.hpp | 4 ++--
   sandbox/units/boost/units/systems/si/codata/universal_constants.hpp | 4 ++--
   sandbox/units/libs/units/example/kitchen_sink.cpp | 5 +++--
   15 files changed, 31 insertions(+), 30 deletions(-)

Modified: sandbox/units/boost/units/systems/si/codata/alpha_constants.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/codata/alpha_constants.hpp (original)
+++ sandbox/units/boost/units/systems/si/codata/alpha_constants.hpp 2008-05-19 16:08:57 EDT (Mon, 19 May 2008)
@@ -39,7 +39,7 @@
                             
 namespace constants {
 
-namespace CODATA {
+namespace codata {
 
 /// CODATA recommended values of the fundamental physical constants: NIST SP 961
 
@@ -52,7 +52,7 @@
 /// alpha molar mass
 BOOST_UNITS_PHYSICAL_CONSTANT(M_alpha,quantity<mass_over_amount>,4.001506179127e-3*kilograms/mole,6.2e-14*kilograms/mole);
 
-} // namespace CODATA
+} // namespace codata
 
 } // namespace constants
 

Modified: sandbox/units/boost/units/systems/si/codata/atomic_and_nuclear_constants.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/codata/atomic_and_nuclear_constants.hpp (original)
+++ sandbox/units/boost/units/systems/si/codata/atomic_and_nuclear_constants.hpp 2008-05-19 16:08:57 EDT (Mon, 19 May 2008)
@@ -29,7 +29,7 @@
                             
 namespace constants {
 
-namespace CODATA {
+namespace codata {
 
 /// CODATA recommended values of the fundamental physical constants: NIST SP 961
 
@@ -43,7 +43,7 @@
 /// Hartree energy
 BOOST_UNITS_PHYSICAL_CONSTANT(E_h,quantity<energy>,4.35974394e-18*joules,2.2e-25*joules);
 
-} // namespace CODATA
+} // namespace codata
 
 } // namespace constants
 

Modified: sandbox/units/boost/units/systems/si/codata/deuteron_constants.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/codata/deuteron_constants.hpp (original)
+++ sandbox/units/boost/units/systems/si/codata/deuteron_constants.hpp 2008-05-19 16:08:57 EDT (Mon, 19 May 2008)
@@ -39,7 +39,7 @@
                             
 namespace constants {
 
-namespace CODATA {
+namespace codata {
 
 /// CODATA recommended values of the fundamental physical constants: NIST SP 961
 
@@ -68,7 +68,7 @@
 /// deuteron-neutron magnetic moment ratio
 BOOST_UNITS_PHYSICAL_CONSTANT(mu_d_over_mu_n,quantity<dimensionless>,-0.44820652*dimensionless(),1.1e-7*dimensionless());
 
-} // namespace CODATA
+} // namespace codata
 
 } // namespace constants
 

Modified: sandbox/units/boost/units/systems/si/codata/electromagnetic_constants.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/codata/electromagnetic_constants.hpp (original)
+++ sandbox/units/boost/units/systems/si/codata/electromagnetic_constants.hpp 2008-05-19 16:08:57 EDT (Mon, 19 May 2008)
@@ -38,7 +38,7 @@
                             
 namespace constants {
 
-namespace CODATA {
+namespace codata {
 
 /// CODATA recommended values of the fundamental physical constants: NIST SP 961
 
@@ -60,7 +60,7 @@
 /// nuclear magneton
 BOOST_UNITS_PHYSICAL_CONSTANT(mu_N,quantity<energy_over_magnetic_flux_density>,5.05078324e-27*joules/tesla,1.3e-34*joules/tesla);
 
-} // namespace CODATA
+} // namespace codata
 
 } // namespace constants
 

Modified: sandbox/units/boost/units/systems/si/codata/electron_constants.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/codata/electron_constants.hpp (original)
+++ sandbox/units/boost/units/systems/si/codata/electron_constants.hpp 2008-05-19 16:08:57 EDT (Mon, 19 May 2008)
@@ -39,7 +39,7 @@
                             
 namespace constants {
 
-namespace CODATA {
+namespace codata {
 
 /// CODATA recommended values of the fundamental physical constants: NIST SP 961
 
@@ -92,7 +92,7 @@
 /// electron gyromagnetic ratio
 BOOST_UNITS_PHYSICAL_CONSTANT(gamma_e,quantity<frequency_over_magnetic_flux_density>,1.760859770e11/second/tesla,4.4e3/second/tesla);
 
-} // namespace CODATA
+} // namespace codata
 
 } // namespace constants
 

Modified: sandbox/units/boost/units/systems/si/codata/helion_constants.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/codata/helion_constants.hpp (original)
+++ sandbox/units/boost/units/systems/si/codata/helion_constants.hpp 2008-05-19 16:08:57 EDT (Mon, 19 May 2008)
@@ -39,7 +39,7 @@
                             
 namespace constants {
 
-namespace CODATA {
+namespace codata {
 
 /// CODATA recommended values of the fundamental physical constants: NIST SP 961
 
@@ -64,7 +64,7 @@
 /// shielded helion gyromagnetic ratio
 BOOST_UNITS_PHYSICAL_CONSTANT(gamma_h_prime,quantity<frequency_over_magnetic_flux_density>,2.037894730e8/second/tesla,5.6e-0/second/tesla);
 
-} // namespace CODATA
+} // namespace codata
 
 } // namespace constants
 

Modified: sandbox/units/boost/units/systems/si/codata/muon_constants.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/codata/muon_constants.hpp (original)
+++ sandbox/units/boost/units/systems/si/codata/muon_constants.hpp 2008-05-19 16:08:57 EDT (Mon, 19 May 2008)
@@ -39,7 +39,7 @@
                             
 namespace constants {
 
-namespace CODATA {
+namespace codata {
 
 /// CODATA recommended values of the fundamental physical constants: NIST SP 961
 
@@ -70,7 +70,7 @@
 /// muon-proton magnetic moment ratio
 BOOST_UNITS_PHYSICAL_CONSTANT(mu_mu_over_mu_p,quantity<dimensionless>,-3.183345137*dimensionless(),8.5e-8*dimensionless());
 
-} // namespace CODATA
+} // namespace codata
 
 } // namespace constants
 

Modified: sandbox/units/boost/units/systems/si/codata/neutron_constants.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/codata/neutron_constants.hpp (original)
+++ sandbox/units/boost/units/systems/si/codata/neutron_constants.hpp 2008-05-19 16:08:57 EDT (Mon, 19 May 2008)
@@ -39,7 +39,7 @@
                             
 namespace constants {
 
-namespace CODATA {
+namespace codata {
 
 /// CODATA recommended values of the fundamental physical constants: NIST SP 961
 
@@ -70,7 +70,7 @@
 /// neutron gyromagnetic ratio
 BOOST_UNITS_PHYSICAL_CONSTANT(gamma_n,quantity<frequency_over_magnetic_flux_density>,1.83247185e8/second/tesla,4.3e1/second/tesla);
 
-} // namespace CODATA
+} // namespace codata
 
 } // namespace constants
 

Modified: sandbox/units/boost/units/systems/si/codata/physico-chemical_constants.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/codata/physico-chemical_constants.hpp (original)
+++ sandbox/units/boost/units/systems/si/codata/physico-chemical_constants.hpp 2008-05-19 16:08:57 EDT (Mon, 19 May 2008)
@@ -39,7 +39,7 @@
                             
 namespace constants {
 
-namespace CODATA {
+namespace codata {
 
 // PHYSICO-CHEMICAL
 /// Avogadro constant
@@ -65,7 +65,7 @@
 /// Wien displacement law constant : nu_max/T
 BOOST_UNITS_PHYSICAL_CONSTANT(b_prime,quantity<frequency_over_temperature>,5.878933e10*hertz/kelvin,1.0e15*hertz/kelvin);
 
-} // namespace CODATA
+} // namespace codata
 
 } // namespace constants
 

Modified: sandbox/units/boost/units/systems/si/codata/proton_constants.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/codata/proton_constants.hpp (original)
+++ sandbox/units/boost/units/systems/si/codata/proton_constants.hpp 2008-05-19 16:08:57 EDT (Mon, 19 May 2008)
@@ -39,7 +39,7 @@
                             
 namespace constants {
 
-namespace CODATA {
+namespace codata {
 
 /// CODATA recommended values of the fundamental physical constants: NIST SP 961
 
@@ -84,7 +84,7 @@
 /// shielded proton gyromagnetic ratio
 BOOST_UNITS_PHYSICAL_CONSTANT(gamma_p_prime,quantity<frequency_over_magnetic_flux_density>,2.675153362e8/second/tesla,7.3e0/second/tesla);
 
-} // namespace CODATA
+} // namespace codata
 
 } // namespace constants
 

Modified: sandbox/units/boost/units/systems/si/codata/tau_constants.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/codata/tau_constants.hpp (original)
+++ sandbox/units/boost/units/systems/si/codata/tau_constants.hpp 2008-05-19 16:08:57 EDT (Mon, 19 May 2008)
@@ -39,7 +39,7 @@
                             
 namespace constants {
 
-namespace CODATA {
+namespace codata {
 
 /// CODATA recommended values of the fundamental physical constants: NIST SP 961
 
@@ -58,7 +58,7 @@
 /// tau Compton wavelength
 BOOST_UNITS_PHYSICAL_CONSTANT(lambda_C_tau,quantity<length>,0.69772e-15*meters,1.1e-19*meters);
 
-} // namespace CODATA
+} // namespace codata
 
 } // namespace constants
 

Modified: sandbox/units/boost/units/systems/si/codata/triton_constants.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/codata/triton_constants.hpp (original)
+++ sandbox/units/boost/units/systems/si/codata/triton_constants.hpp 2008-05-19 16:08:57 EDT (Mon, 19 May 2008)
@@ -39,7 +39,7 @@
                             
 namespace constants {
 
-namespace CODATA {
+namespace codata {
 
 /// CODATA recommended values of the fundamental physical constants: NIST SP 961
 
@@ -66,7 +66,7 @@
 /// triton-neutron magnetic moment ratio
 BOOST_UNITS_PHYSICAL_CONSTANT(mu_t_over_mu_n,quantity<dimensionless>,-1.55718553*dimensionless(),3.7e-7*dimensionless());
 
-} // namespace CODATA
+} // namespace codata
 
 } // namespace constants
 

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-19 16:08:57 EDT (Mon, 19 May 2008)
@@ -38,7 +38,7 @@
                             
 namespace constants {
 
-namespace CODATA {
+namespace codata {
 
 typedef divide_typeof_helper<frequency,electric_potential>::type frequency_over_electric_potential;
 typedef divide_typeof_helper<electric_charge,mass>::type electric_charge_over_mass;
@@ -66,7 +66,7 @@
 typedef multiply_typeof_helper<energy,time>::type energy_time;
 typedef divide_typeof_helper<electric_charge,amount>::type electric_charge_over_amount;
 
-} // namespace CODATA
+} // namespace codata
 
 } // namespace constants
 

Modified: sandbox/units/boost/units/systems/si/codata/universal_constants.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/codata/universal_constants.hpp (original)
+++ sandbox/units/boost/units/systems/si/codata/universal_constants.hpp 2008-05-19 16:08:57 EDT (Mon, 19 May 2008)
@@ -39,7 +39,7 @@
                             
 namespace constants {
 
-namespace CODATA {
+namespace codata {
 
 /// CODATA recommended values of the fundamental physical constants: NIST SP 961
 
@@ -67,7 +67,7 @@
 /// Planck time
 BOOST_UNITS_PHYSICAL_CONSTANT(t_P,quantity<time>,5.39124e-44*seconds,2.7e-48*seconds);
 
-} // namespace CODATA
+} // namespace codata
 
 } // namespace constants
 

Modified: sandbox/units/libs/units/example/kitchen_sink.cpp
==============================================================================
--- sandbox/units/libs/units/example/kitchen_sink.cpp (original)
+++ sandbox/units/libs/units/example/kitchen_sink.cpp 2008-05-19 16:08:57 EDT (Mon, 19 May 2008)
@@ -200,7 +200,8 @@
     using namespace boost::units::si;
     
     #if BOOST_UNITS_HAS_TYPEOF
- return (P*V/(constants::CODATA::R*T));
+ using namespace boost::units::si::constants::codata;
+ return (P*V/(R*T));
     #else
     return P*V/(8.314472*(joules/(kelvin*mole))*T);
     #endif // BOOST_UNITS_HAS_TYPEOF
@@ -366,7 +367,7 @@
               << "T = " << T << std::endl
               << "n = " << n << std::endl
               #if BOOST_UNITS_HAS_TYPEOF
- << "R = " << constants::CODATA::R << std::endl
+ << "R = " << constants::codata::R << std::endl
               #else
               << "no typeof" << std::endl
               #endif // BOOST_UNITS_HAS_TYPEOF


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