Simpatico  v1.10
AnalyzerFactory.h
1 #ifndef DDMD_ANALYZER_FACTORY_H
2 #define DDMD_ANALYZER_FACTORY_H
3 
4 /*
5 * Simpatico - Simulation Package for Polymeric and Molecular Liquids
6 *
7 * Copyright 2010 - 2017, The Regents of the University of Minnesota
8 * Distributed under the terms of the GNU General Public License.
9 */
10 
11 #include <util/param/Factory.h> // base class template
12 #include <ddMd/analyzers/Analyzer.h> // base template parameter
13 
14 namespace DdMd
15 {
16 
17  using namespace Util;
18 
19  class Simulation;
20 
27  class AnalyzerFactory : public Factory<Analyzer>
28  {
29 
30  public:
31 
37  AnalyzerFactory(Simulation& simulation);
38 
45  virtual Analyzer* factory(const std::string& className) const;
46 
47  protected:
48 
53  { return *simulationPtr_; }
54 
55  private:
56 
58  Simulation* simulationPtr_;
59 
60  };
61 
62 }
63 #endif
Abstract base for periodic output and/or analysis actions.
Factory for DdMd::Analyzer objects.
Parallel domain decomposition (DD) MD simulation.
Main object for a domain-decomposition MD simulation.
Utility classes for scientific computation.
Definition: accumulators.mod:1
Factory template.
Definition: Factory.h:32
Simulation & simulation() const
Return reference to parent Simulation.