Simpatico  v1.10
ddMd/potentials/external/ExternalFactory.h
1 #ifndef DDMD_EXTERNAL_FACTORY_H
2 #define DDMD_EXTERNAL_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/potentials/external/ExternalPotential.h> // template argument
13 
14 #include <string>
15 
16 namespace DdMd
17 {
18 
19  class Simulation;
20 
26  class ExternalFactory : public Factory<ExternalPotential>
27  {
28 
29  public:
30 
34  ExternalFactory(Simulation& simulation);
35 
39  ExternalPotential* factory(const std::string& subclass) const;
40 
41  private:
42 
43  // Pointer to the parent Simulation.
44  Simulation* simulationPtr_;
45 
46  };
47 
48 }
49 #endif
ExternalPotential * factory(const std::string &subclass) const
Return a pointer to a new ExternalInteration, if possible.
Calculates external forces and energies for a parent Simulation.
Parallel domain decomposition (DD) MD simulation.
Main object for a domain-decomposition MD simulation.
Factory for ExternalPotential objects.
Factory template.
Definition: Factory.h:32
ExternalFactory(Simulation &simulation)
Default constructor.