PSCF v1.3
rpg/fts/simulator/SimulatorFactory.h
1#ifndef RPG_SIMULATOR_FACTORY_H
2#define RPG_SIMULATOR_FACTORY_H
3
4/*
5* PSCF - Polymer Self-Consistent Field
6*
7* Copyright 2015 - 2025, 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 <rpg/fts/simulator/Simulator.h>
13
14#include <string>
15
16namespace Pscf {
17namespace Rpg {
18
19 template <int D> class System;
20
21 using namespace Util;
22
28 template <int D>
29 class SimulatorFactory : public Factory< Simulator<D> >
30 {
31
32 public:
33
40
47 Simulator<D>* factory(const std::string &className) const;
48
50
51 private:
52
54 System<D>* systemPtr_;
55
56 };
57
58 #ifndef RPG_SIMULATOR_FACTORY_TPP
59 // Suppress implicit instantiation
60 extern template class SimulatorFactory<1>;
61 extern template class SimulatorFactory<2>;
62 extern template class SimulatorFactory<3>;
63 #endif
64
65}
66}
67#endif
Factory for subclasses of Simulator.
SimulatorFactory(System< D > &system)
Constructor.
Simulator< D > * factory(const std::string &className) const
Method to create any Simulator supplied with PSCF.
Field theoretic simulator (base class).
Main class, representing one complete system.
Simulator< D > * trySubfactories(const std::string &className) const
Definition Factory.h:425
SCFT and PS-FTS with real periodic fields (GPU)
PSCF package top-level namespace.
Definition param_pc.dox:1