PSCF v1.5.0
RampFactory.h
1#ifndef RP_RAMP_FACTORY_H
2#define RP_RAMP_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/ramp/Ramp.h> // base class argument
13
14#include <pscf/backend/TmplDeclare.h>
15#include <string>
16
17// Forward declaration
18namespace Pscf {
19 namespace Rp {
20 template <int D, class T> class Simulator;
21 }
22}
23
24namespace Pscf {
25namespace Rp {
26
27 using namespace Util;
28
34 template <int D, class T>
35 class RampFactory : public Factory< Ramp<D,T> >
36 {
37
38 public:
39
45 RampFactory(Simulator<D,T>& simulator);
46
53 Ramp<D,T>* factory(const std::string & className) const;
54
56
57 private:
58
60 Simulator<D,T>* simulatorPtr_;
61
62 };
63
64 // Explicit instantiation declarations
65 PSCF_TMPL_DECLARE(RampFactory)
66
67} // namespace Rp
68} // namespace Pscf
69#endif
Factory for subclasses of Ramp.
Definition RampFactory.h:36
RampFactory(Simulator< D, T > &simulator)
Constructor.
Ramp< D, T > * factory(const std::string &className) const
Method to create any Ramp supplied with PSCF.
Class that varies parameters during a simulation (abstract).
Definition Ramp.h:35
Base class for field theoretic PS-FTS simulator.
Definition Simulator.h:93
Ramp< 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.