PSCF v1.5.0
PerturbationFactory.h
1#ifndef RP_PERTURBATION_FACTORY_H
2#define RP_PERTURBATION_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 <util/param/Factory.h> // base class template
12#include <rp/fts/perturbation/Perturbation.h> // base class argument
13
14#include <pscf/backend/TmplDeclare.h>
15#include <string>
16
17namespace Pscf {
18namespace Rp {
19
20 using namespace Util;
21
27 template <int D, class T>
29 : public Factory< Perturbation<D,T> >
30 {
31
32 public:
33
40
47 Perturbation<D,T>* factory(const std::string & className) const;
48
50
51 private:
52
54 Simulator<D,T>* simulatorPtr_;
55
56 };
57
58 // Explicit instantiation declarations
59 PSCF_TMPL_DECLARE(PerturbationFactory)
60
61}
62}
63#endif
Factory for subclasses of Perturbation.
PerturbationFactory(Simulator< D, T > &simulator)
Constructor.
Perturbation< D, T > * factory(const std::string &className) const
Method to create any Perturbation supplied with PSCF.
Base class for additive perturbations of standard FTS Hamiltonian.
Base class for field theoretic PS-FTS simulator.
Definition Simulator.h:93
Perturbation< 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.