Moved a few standard library includes to more local scopes

This commit is contained in:
Ray Speth 2012-03-23 22:16:04 +00:00
parent 6c29c0fe84
commit 8ea4ae728a
47 changed files with 75 additions and 8 deletions

View file

@ -14,17 +14,14 @@
#ifndef CT_DEFS_H
#define CT_DEFS_H
#include <cmath>
#include "config.h"
#include <cmath>
// STL includes
#include <iostream>
#include <fstream>
#include <vector>
#include <map>
#include <numeric>
#include <string>
#include <algorithm>
// Warn about deprecated functions at compile time
#ifdef __GNUC__

View file

@ -18,6 +18,8 @@
#include "ct_defs.h"
#include <algorithm>
//! Unary operator to multiply the argument by a constant.
/*!
* The form of this operator is designed for use by std::transform.

View file

@ -9,6 +9,8 @@
#include "cantera/base/ct_defs.h"
#include <iostream>
namespace Cantera
{

View file

@ -14,6 +14,8 @@
#include "cantera/base/ct_defs.h"
#include "cantera/base/ctexceptions.h"
#include <cstdio>
namespace Cantera
{

View file

@ -6,7 +6,7 @@
#include "application.h"
#include "units.h"
// RFB:TODO May need OS specifc include to use varargs.h instead
#include <cstdio>
#include <stdarg.h>
using namespace std;

View file

@ -8,6 +8,8 @@
#include "cantera/kinetics/ReactionPath.h"
#include "Cabinet.h"
#include <fstream>
using namespace Cantera;
using namespace std;

View file

@ -9,6 +9,7 @@
#include "Cabinet.h"
#include <string.h>
#include <fstream>
using namespace std;
using namespace Cantera;

View file

@ -11,6 +11,7 @@
#include <math.h>
#include <iostream>
#include <cstdio>
using namespace std;

View file

@ -33,6 +33,7 @@
#include <string>
#include <vector>
#include <cstdio>
using namespace Cantera;
using namespace std;

View file

@ -13,6 +13,7 @@
#include <cmath>
#include <vector>
#include <cstring>
#include <algorithm>
using namespace std;

View file

@ -19,6 +19,8 @@
#include <cstdlib>
#include <string>
#include <cstdio>
using namespace std;
namespace VCSnonideal

View file

@ -21,7 +21,9 @@
#include "cantera/base/clockWC.h"
#include <string>
#include "math.h"
#include <cstdlib>
#include <math.h>
using namespace std;
namespace VCSnonideal

View file

@ -9,6 +9,7 @@
#include "cantera/base/ctml.h"
#include <cstring>
#include <fstream>
using namespace ctml;
using namespace std;

View file

@ -10,6 +10,8 @@
#include "cantera/base/ctexceptions.h"
#include "ReactionData.h"
#include <fstream>
using namespace std;
namespace Cantera

View file

@ -12,7 +12,9 @@
#include "cantera/base/ctexceptions.h"
#include "cantera/base/stringUtils.h"
#include "cantera/base/global.h"
#include <cstring>
#include <fstream>
using namespace std;

View file

@ -5,6 +5,8 @@
#include "cantera/oneD/Domain1D.h"
#include <cstdio>
using namespace std;
namespace Cantera

View file

@ -3,6 +3,9 @@
#include "cantera/oneD/OneDim.h"
#include "cantera/base/ctml.h"
#include <fstream>
using namespace ctml;
using namespace std;

View file

@ -5,7 +5,9 @@
#include "cantera/oneD/Sim1D.h"
#include "cantera/oneD/MultiJac.h"
#include <fstream>
#include <cstdlib>
#include <cstdio>
using namespace std;

View file

@ -10,6 +10,8 @@
#include "cantera/base/ctml.h"
#include "cantera/oneD/MultiJac.h"
#include <cstdio>
using namespace ctml;
using namespace std;

View file

@ -5,6 +5,8 @@
#include "cantera/base/ct_defs.h"
#include "cantera/oneD/Domain1D.h"
#include <cstdio>
using namespace std;
namespace Cantera

View file

@ -22,6 +22,7 @@
#include <cstring>
#include <cstdlib>
#include <fstream>
using namespace std;
using namespace ctml;

View file

@ -26,6 +26,7 @@
#include <cmath>
#include <cstdlib>
#include <cstdio>
namespace Cantera
{

View file

@ -20,6 +20,8 @@
#include <cstring>
#include <cstdlib>
#include <cstdio>
#include <fstream>
using namespace std;
using namespace ctml;

View file

@ -19,7 +19,9 @@
*/
#include "cantera/thermo/IdealMolalSoln.h"
#include "cantera/thermo/ThermoFactory.h"
#include <cmath>
#include <fstream>
using namespace ctml;

View file

@ -14,6 +14,7 @@
#include "cantera/base/stringUtils.h"
#include <iostream>
#include <fstream>
using namespace std;

View file

@ -24,6 +24,7 @@
#include <cmath>
#include <iomanip>
#include <fstream>
using namespace std;

View file

@ -18,6 +18,7 @@
#include "cantera/base/stringUtils.h"
#include <cmath>
#include <fstream>
namespace Cantera
{

View file

@ -16,6 +16,7 @@
#include "cantera/base/stringUtils.h"
#include <iomanip>
#include <fstream>
using namespace std;

View file

@ -17,6 +17,7 @@
#include "cantera/base/stringUtils.h"
#include <iomanip>
#include <fstream>
using namespace std;

View file

@ -20,6 +20,8 @@
#include "cantera/base/stringUtils.h"
#include <iomanip>
#include <cstdio>
#include <fstream>
using namespace std;

View file

@ -21,6 +21,7 @@
#include "cantera/base/stringUtils.h"
#include <cmath>
#include <fstream>
using namespace std;

View file

@ -16,6 +16,8 @@
#include "cantera/thermo/VPStandardStateTP.h"
#include <fstream>
using namespace std;
namespace Cantera

View file

@ -18,6 +18,7 @@
#include "cantera/base/stringUtils.h"
#include <cstdlib>
#include <fstream>
using namespace std;
using namespace ctml;

View file

@ -16,6 +16,8 @@
#include "cantera/thermo/VPStandardStateTP.h"
#include <fstream>
using namespace std;
namespace Cantera

View file

@ -18,6 +18,8 @@
#include "cantera/base/xml.h"
#include "cantera/base/ctml.h"
#include <fstream>
using namespace std;
namespace Cantera

View file

@ -16,6 +16,8 @@
#include "cantera/thermo/VPStandardStateTP.h"
#include <fstream>
using namespace std;
namespace Cantera

View file

@ -20,6 +20,7 @@
#include "cantera/base/stringUtils.h"
#include <cmath>
#include <fstream>
namespace Cantera
{

View file

@ -13,6 +13,7 @@
#include "cantera/base/stringUtils.h"
#include <iomanip>
#include <fstream>
using namespace std;

View file

@ -20,6 +20,7 @@
#include "cantera/base/stringUtils.h"
#include <cmath>
#include <cstdio>
using namespace std;

View file

@ -15,6 +15,7 @@
#include <cstdlib>
#include <iomanip>
#include <fstream>
using std::string;
using std::endl;

View file

@ -17,6 +17,7 @@
#include "cantera/base/stringUtils.h"
#include <iomanip>
#include <fstream>
using namespace std;

View file

@ -12,6 +12,7 @@
#include "cantera/base/stringUtils.h"
#include <iomanip>
#include <fstream>
using namespace std;
using namespace ctml;

View file

@ -17,6 +17,7 @@
#include "cantera/base/stringUtils.h"
#include <cmath>
#include <fstream>
using namespace std;

View file

@ -16,6 +16,8 @@
#include "cantera/base/stringUtils.h"
#include <iostream>
#include <cstdio>
using namespace std;
/**

View file

@ -12,6 +12,8 @@
#include "cantera/base/stringUtils.h"
#include <iostream>
#include <cstdio>
using namespace std;
/**

View file

@ -7,9 +7,11 @@
#ifndef CT_MMCOLLISIONINT_H
#define CT_MMCOLLISIONINT_H
#include <vector>
#include "cantera/base/ct_defs.h"
#include <vector>
#include <iostream>
namespace Cantera
{

View file

@ -3,6 +3,8 @@
#include "cantera/zeroD/FlowDevice.h"
#include "cantera/zeroD/Wall.h"
#include <cstdio>
using namespace std;
using namespace Cantera;