Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include file cleanup #38

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@

test/ProtoMol*
test/tests/output

*.gch
62 changes: 38 additions & 24 deletions protomol/ProtoMolApp.cpp
Original file line number Diff line number Diff line change
@@ -1,39 +1,53 @@
#include <ctype.h>
#include <protomol/ProtoMolApp.h>

#include <protomol/analysis/AnalysisCollection.h>
#include <protomol/base/ModuleManager.h>
#include <protomol/base/SystemUtilities.h>
#include <protomol/base/StringUtilities.h>
#include <protomol/base/PMConstants.h>
#include <protomol/base/Report.h>
#include <protomol/base/StringUtilities.h>
#include <protomol/base/SystemUtilities.h>
#include <protomol/base/TimerStatistic.h>
#include <protomol/base/Zap.h>
#include <protomol/base/Report.h>

#include <protomol/module/MainModule.h>
#include <protomol/module/IOModule.h>
#include <protomol/module/ConfigurationModule.h>
#include <protomol/module/AnalysisModule.h>

#include <protomol/type/String.h>

#include <protomol/config/CommandLine.h>
#include <protomol/config/Configuration.h>

#include <protomol/io/ConfigurationReader.h>

#include <protomol/factory/TopologyFactory.h>
#include <protomol/factory/OutputFactory.h>

#include <protomol/topology/GenericTopology.h>
#include <protomol/factory/TopologyFactory.h>
#include <protomol/module/AnalysisModule.h>
#include <protomol/module/ConfigurationModule.h>
#include <protomol/module/IOModule.h>
#include <protomol/module/MainModule.h>
#include <protomol/output/OutputCollection.h>
#include <protomol/parallel/Parallel.h>
#include <protomol/topology/BuildTopology.h>
#include <protomol/topology/BuildTopologyFromTpr.h>
#include <protomol/topology/GenericTopology.h>
#include <protomol/topology/TopologyUtilities.h>

#include <protomol/output/OutputCollection.h>
#include <protomol/analysis/AnalysisCollection.h>

#include <protomol/parallel/Parallel.h>

#include <stdio.h>
#include <string.h>
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>

#include "protomol/analysis/Analysis.h"
#include "protomol/base/Exception.h"
#include "protomol/base/Factory.h"
#include "protomol/base/Timer.h"
#include "protomol/config/Parameter.h"
#include "protomol/config/Value.h"
#include "protomol/factory/AnalysisFactory.h"
#include "protomol/factory/ForceFactory.h"
#include "protomol/factory/IntegratorFactory.h"
#include "protomol/force/Force.h"
#include "protomol/integrator/Integrator.h"
#include "protomol/integrator/IntegratorDefinition.h"
#include "protomol/output/Output.h"
#include "protomol/output/OutputCache.h"
#include "protomol/topology/CoulombSCPISMParameterTable.h"
#include "protomol/topology/CoulombSCPISMParameters.h"
#include "protomol/type/Real.h"
#include "protomol/type/ScalarStructure.h"
#ifdef HAVE_PACKAGE_H
#include <protomol/package.h>
#endif
Expand Down
34 changes: 17 additions & 17 deletions protomol/ProtoMolApp.h
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
#ifndef PROTOMOLAPP_H
#define PROTOMOLAPP_H

#include <protomol/factory/TopologyFactory.h>
#include <protomol/factory/ForceFactory.h>
#include <protomol/factory/IntegratorFactory.h>
#include <protomol/factory/OutputFactory.h>
#include <protomol/factory/AnalysisFactory.h>

#include <protomol/config/Configuration.h>
#include <protomol/config/CommandLine.h>
#include <protomol/output/OutputCache.h>
#include <protomol/type/Vector3DBlock.h>
#include <protomol/type/EigenvectorInfo.h>
#include <protomol/type/PSF.h>
#include <protomol/type/PAR.h>
#include <protomol/type/ScalarStructure.h>
#include <protomol/topology/CoulombSCPISMParameterTable.h>

#include <ostream>
#include <protomol/config/CommandLine.h> // for CommandLine
#include <protomol/config/Configuration.h> // for Configuration
#include <protomol/factory/AnalysisFactory.h> // for AnalysisFactory
#include <protomol/factory/ForceFactory.h> // for ForceFactory
#include <protomol/factory/IntegratorFactory.h> // for IntegratorFactory
#include <protomol/factory/OutputFactory.h> // for OutputFactory
#include <protomol/factory/TopologyFactory.h> // for TopologyFactory
#include <protomol/output/OutputCache.h> // for OutputCache
#include <protomol/type/EigenvectorInfo.h> // for EigenvectorInfo
#include <protomol/type/PAR.h> // for PAR
#include <protomol/type/PSF.h> // for PSF
#include <protomol/type/ScalarStructure.h> // for ScalarStructure
#include <protomol/type/Vector3DBlock.h> // for Vector3DBlock
#include <ostream> // for ostream
#include <string> // for string
#include <vector> // for vector

namespace ProtoMol {
class OutputCollection;
class AnalysisCollection;
class Integrator;
class GenericTopology;
class ModuleManager;
struct CoulombSCPISMParameterTable;

class ProtoMolApp {
public:
Expand Down
7 changes: 3 additions & 4 deletions protomol/analysis/Analysis.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#include <protomol/analysis/Analysis.h>
#include <protomol/config/Configuration.h>
#include <protomol/topology/GenericTopology.h>
#include <protomol/type/ScalarStructure.h>
#include <protomol/module/MainModule.h>
#include <protomol/ProtoMolApp.h>

#include "protomol/config/Parameter.h"
#include "protomol/config/Value.h"

using namespace std;
using namespace ProtoMol;
Expand Down
5 changes: 5 additions & 0 deletions protomol/analysis/Analysis.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@
#define PROTOMOL_ANALYSIS_ANALYSIS_H

#include <protomol/base/Makeable.h>
#include <string>
#include <vector>

namespace ProtoMol {
class ProtoMolApp;
class Configuration;
class Value;
struct Parameter;

class Analysis : public Makeable<Analysis> {
public:
Expand Down
15 changes: 5 additions & 10 deletions protomol/analysis/AnalysisCollection.cpp
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
#include <protomol/analysis/AnalysisCollection.h>
#include <protomol/analysis/Analysis.h>
#include <protomol/config/Configuration.h>
#include <protomol/topology/GenericTopology.h>
#include <protomol/type/ScalarStructure.h>
#include <protomol/type/Vector3DBlock.h>
#include <protomol/integrator/Integrator.h>
#include <protomol/base/Report.h>
#include <protomol/base/MathUtilities.h>
#include <protomol/topology/TopologyUtilities.h>
#include <protomol/ProtoMolApp.h>
#include <protomol/analysis/Analysis.h>
#include <protomol/analysis/AnalysisCollection.h>
#include <protomol/base/Exception.h>
#include <string>

#include "protomol/output/OutputCache.h"

using namespace ProtoMol;

Expand Down
30 changes: 18 additions & 12 deletions protomol/analysis/AnalysisDihedral.cpp
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
#include <protomol/analysis/AnalysisDihedral.h>

#include <protomol/topology/TopologyUtilities.h>
#include <protomol/module/MainModule.h>
#include <math.h>
#include <protomol/ProtoMolApp.h>

#include <protomol/analysis/AnalysisDihedral.h>
#include <protomol/base/MathUtilities.h>
#include <protomol/base/StringUtilities.h>
#include <protomol/base/SystemUtilities.h>

#include <protomol/io/XYZWriter.h>
#include <protomol/io/CheckpointConfigWriter.h>

#include <sstream>
#include <stdio.h>
#include <iostream>
#include <limits>
#include <map>

#include "protomol/analysis/Analysis.h"
#include "protomol/base/Report.h"
#include "protomol/config/Configuration.h"
#include "protomol/config/ConstraintValueType.h"
#include "protomol/config/Parameter.h"
#include "protomol/config/Value.h"
#include "protomol/topology/Atom.h"
#include "protomol/topology/Bond.h"
#include "protomol/topology/GenericTopology.h"
#include "protomol/topology/RBTorsion.h"
#include "protomol/type/Vector3D.h"
#include "protomol/type/Vector3DBlock.h"

using namespace std;
using namespace ProtoMol::Report;
Expand Down
9 changes: 7 additions & 2 deletions protomol/analysis/AnalysisDihedral.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
#ifndef PROTOMOL_ANALYSIS_DIHEDRAL_H
#define PROTOMOL_ANALYSIS_DIHEDRAL_H

#include <protomol/base/StringUtilities.h>
#include <protomol/analysis/Analysis.h>

#include <protomol/base/StringUtilities.h>
#include <map>
#include <string>
#include <vector>

#include "protomol/type/Real.h"

namespace ProtoMol {
class Configuration;
class Value;
struct Parameter;

class AnalysisDihedral : public Analysis {
public:
Expand Down
1 change: 1 addition & 0 deletions protomol/base/FileLocation.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#ifndef FILELOCATION_H
#define FILELOCATION_H

#include <iosfwd>
#include <string>

namespace ProtoMol {
Expand Down
2 changes: 0 additions & 2 deletions protomol/base/Lapack.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#include "Lapack.h"

#include <protomol/base/Exception.h>

#if defined(HAVE_LAPACK)
#include <protomol/integrator/hessian/LapackProtomol.h>
#elif defined(HAVE_SIMTK_LAPACK)
Expand Down
3 changes: 3 additions & 0 deletions protomol/base/Makeable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

#include <protomol/base/StringUtilities.h>
#include <protomol/base/Exception.h>
#include <iostream>

#include "protomol/base/MakeableDefinition.h"

using namespace std;
using namespace ProtoMol;
Expand Down
8 changes: 7 additions & 1 deletion protomol/base/Makeable.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
#define PROTOMOL_MAKEABLE_H

#include <protomol/base/MakeableDefinition.h>

#include <stddef.h>
#include <iostream>
#include <string>
#include <vector>

#include "protomol/config/Parameter.h"
#include "protomol/config/Value.h"

using namespace std;

namespace ProtoMol {
Expand Down
5 changes: 5 additions & 0 deletions protomol/base/MathUtilities.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#include <protomol/base/MathUtilities.h>
#include <protomol/base/Timer.h>
#include <stdlib.h>

#include "protomol/base/PMConstants.h"
#include "protomol/base/Random.h"
#include "protomol/type/SimpleTypes.h"

using namespace std;

Expand Down
7 changes: 4 additions & 3 deletions protomol/base/MathUtilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
#define MATHUTILITIES_H

#include <protomol/base/PMConstants.h>
#include <protomol/type/SimpleTypes.h>
#include <protomol/base/Random.h>

#include <cmath>
#include <protomol/type/SimpleTypes.h>
#include <algorithm>
#include <cmath>
#include <queue>
#include <vector>

#include "protomol/type/Real.h"

#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
Expand Down
7 changes: 3 additions & 4 deletions protomol/base/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
#define MODULE_H

#include <protomol/base/Exception.h>

#include <string>
#include <set>
#include <string>

namespace ProtoMol {
class ProtoMolApp;
class GenericTopology;
class ForceFactory;
class GenericTopology;
class ProtoMolApp;

class Module {
public:
Expand Down
14 changes: 8 additions & 6 deletions protomol/base/ModuleManager.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
#include <protomol/base/ModuleManager.h>
#include <protomol/base/Module.h>

#include <protomol/base/Exception.h>
#include <protomol/ProtoMolApp.h>
#include <protomol/config/CommandLine.h>
#include <protomol/base/Exception.h>
#include <protomol/base/Module.h>
#include <protomol/base/ModuleManager.h>
#include <protomol/base/StringUtilities.h>

#include <protomol/config/CommandLine.h>
#include <iostream>
#include <vector>

#include "protomol/base/SmartPointer.h"
#include "protomol/config/CommandLineOption.h"

using namespace ProtoMol;
using namespace std;
Expand Down
2 changes: 2 additions & 0 deletions protomol/base/PMConstants.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

#include <protomol/base/StringUtilities.h>

#include "protomol/type/Real.h"

using namespace std;

namespace ProtoMol {
Expand Down
5 changes: 2 additions & 3 deletions protomol/base/Random.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#ifndef RANDOM_H
#define RANDOM_H

#include <protomol/type/Real.h>
#include <protomol/base/Singleton.h>

#include <vector>
#include <protomol/type/Real.h>
#include <fstream>
#include <iostream>
#include <vector>

namespace ProtoMol {

Expand Down
5 changes: 2 additions & 3 deletions protomol/base/Report.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#include <protomol/base/Report.h>

#include <iomanip>

#include <protomol/base/SystemUtilities.h>
#include <stddef.h>
#include <algorithm>

using namespace std;

Expand Down
Loading