Simpatico  v1.10
ddMd/potentials/pair/PairFactory.h
1 #ifndef DDMD_PAIR_FACTORY_H
2 #define DDMD_PAIR_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/pair/PairPotential.h> // template argument
13 
14 #include <string>
15 #include <vector>
16 
17 namespace DdMd
18 {
19 
20  class Simulation;
21 
27  class PairFactory : public Factory<PairPotential>
28  {
29 
30  public:
31 
35  PairFactory(Simulation& simulation);
36 
40  PairPotential* factory(const std::string& subclass) const;
41 
42  private:
43 
44  // Pointer to the parent Simulation.
45  Simulation* simulationPtr_;
46 
47  };
48 
49 }
50 #endif
Factory for PairPotential objects.
PairFactory(Simulation &simulation)
Default constructor.
Parallel domain decomposition (DD) MD simulation.
Main object for a domain-decomposition MD simulation.
PairPotential * factory(const std::string &subclass) const
Return a pointer to a new McPairInteration, if possible.
Factory template.
Definition: Factory.h:32
Abstract base class for computing nonbonded pair forces and energies.