Moved some classes out of the global namespace into namespace Cantera

This commit is contained in:
Ray Speth 2012-08-08 22:18:15 +00:00
parent f212e3b9d3
commit 51a3decaa1
4 changed files with 12 additions and 3 deletions

View file

@ -20,6 +20,8 @@
#include <algorithm> #include <algorithm>
namespace Cantera
{
//! Unary operator to multiply the argument by a constant. //! Unary operator to multiply the argument by a constant.
/*! /*!
* The form of this operator is designed for use by std::transform. * The form of this operator is designed for use by std::transform.
@ -50,9 +52,6 @@ template<class T> struct timesConstant : public std::unary_function<T, double> {
T m_c; T m_c;
}; };
namespace Cantera
{
//! Templated Inner product of two vectors of length 4. //! Templated Inner product of two vectors of length 4.
/*! /*!
* If either \a x * If either \a x

View file

@ -15,6 +15,9 @@
#include "cantera/base/config.h" #include "cantera/base/config.h"
namespace Cantera
{
/*! /*!
* the WaterPropsIAPSWSphi class support low level calls for * the WaterPropsIAPSWSphi class support low level calls for
* the real description of water. * the real description of water.
@ -221,4 +224,6 @@ private:
//! Last delta that was used to calculate polynomials //! Last delta that was used to calculate polynomials
doublereal DELTAsave; doublereal DELTAsave;
}; };
} // namespace Cantera
#endif #endif

View file

@ -13,6 +13,9 @@
#include <cstdio> #include <cstdio>
#include <cmath> #include <cmath>
namespace Cantera
{
using std::printf; using std::printf;
using std::sqrt; using std::sqrt;
using std::log; using std::log;
@ -1308,3 +1311,4 @@ doublereal WaterPropsIAPWSphi::cp_R() const
return cpR; return cpR;
} }
} // namespace Cantera

View file

@ -4,6 +4,7 @@
#include <cstdio> #include <cstdio>
using namespace std; using namespace std;
using namespace Cantera;
int main() int main()
{ {