Simpatico  v1.10
mcMd/potentials/dihedral/DihedralFactory.h
1 #ifndef MCMD_DIHEDRAL_FACTORY_H
2 #define MCMD_DIHEDRAL_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>
12 #include <iostream>
13 
14 namespace McMd
15 {
16 
17  using namespace Util;
18 
19  class System;
20  class DihedralPotential;
21 
27  class DihedralFactory : public Factory<DihedralPotential>
28  {
29 
30  public:
31 
35  DihedralFactory(System& system);
36 
40  DihedralPotential* factory(const std::string& subclass) const;
41 
42  private:
43 
44  // Pointer to parent System.
45  System* systemPtr_;
46 
47  };
48 
49 }
50 
51 #endif // ifndef DIHEDRAL_FACTORY_H
Factory for subclasses of DihedralPotential.
A set of interacting Molecules enclosed by a Boundary.
Definition: System.h:115
Interface for a Dihedral Potential.
Utility classes for scientific computation.
Definition: accumulators.mod:1
Single-processor Monte Carlo (MC) and molecular dynamics (MD).
Factory template.
Definition: Factory.h:32