PSCF v1.5.0
BdStepFactory.h
1#ifndef RP_BD_STEP_FACTORY_H
2#define RP_BD_STEP_FACTORY_H
3
4/*
5* PSCF - Polymer Self-Consistent Field
6*
7* Copyright 2015 - 2026, David Morse (morse012@um.edu) and co-authors
8* Distributed under the terms of the GNU General Public License.
9*/
10
11#include <rp/fts/brownian/BdStep.h>
12#include <util/param/Factory.h>
13#include <pscf/backend/TmplDeclare.h>
14
15namespace Pscf {
16namespace Rp {
17
18 // Forward declaration
19 template <int D, class T> class BdSimulator;
20
21 using namespace Util;
22
28 template <int D, class T>
29 class BdStepFactory : public Factory< BdStep<D,T> >
30 {
31
32 public:
33
40
47 BdStep<D,T>* factory(const std::string &className) const;
48
50
51 private:
52
54 BdSimulator<D,T>* simulatorPtr_;
55
56 };
57
58 // Explicit instantiation declarations
59 PSCF_TMPL_DECLARE(BdStepFactory)
60
61}
62}
63#endif
Brownian dynamics simulator for PS-FTS.
Definition BdSimulator.h:52
Factory for subclasses of BdStep.
BdStepFactory(BdSimulator< D, T > &simulator)
Constructor.
BdStep< D, T > * factory(const std::string &className) const
Method to create any BdStep supplied with PSCF.
Template for abstract base class for Brownian dynamics (BD) steps.
Definition BdStep.h:52
BdStep< D, T > * trySubfactories(const std::string &className) const
Definition Factory.h:427
Code for programs that simulate real-valued periodic fields.
Definition param_pc.dox:2
PSCF package top-level namespace.