PSCF v1.3.1
rpg/fts/brownian/BdStepFactory.h
1#ifndef RPG_BD_STEP_FACTORY_H
2#define RPG_BD_STEP_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/brownian/BdStep.h>
13
14namespace Pscf {
15namespace Rpg {
16
17 template <int D> class BdSimulator;
18
19 using namespace Util;
20
26 template <int D>
27 class BdStepFactory : public Factory< BdStep<D> >
28 {
29
30 public:
31
37 BdStepFactory(BdSimulator<D>& simulator);
38
45 BdStep<D>* factory(const std::string &className) const;
46
48
49 private:
50
52 BdSimulator<D>* simulatorPtr_;
53
54 };
55
56 // Explicit instantiation declarations
57 extern template class BdStepFactory<1>;
58 extern template class BdStepFactory<2>;
59 extern template class BdStepFactory<3>;
60
61}
62}
63#endif
Brownian dynamics simulator.
Factory for subclasses of BdStep.
BdStepFactory(BdSimulator< D > &simulator)
Constructor.
BdStep< D > * factory(const std::string &className) const
Method to create any BdStep supplied with PSCF.
BdStep is an abstract base class for Brownian dynamics steps.
BdStep< 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