PSCF v1.5.0
rp/scft/sweep/SweepFactory.h
1#ifndef RP_SWEEP_FACTORY_H
2#define RP_SWEEP_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/scft/sweep/Sweep.h> // base class argument
13#include <pscf/backend/TmplDeclare.h> // declaration macros
14
15#include <string>
16
17namespace Pscf {
18namespace Rp {
19
20 using namespace Util;
21
27 template <int D, class T>
28 class SweepFactory : public Factory< Sweep<D,T> >
29 {
30
31 public:
32
39
46 Sweep<D,T>* factory(std::string const & className) const;
47
50
51 private:
52
53 // Pointer to parent system object.
54 System<D,T>* systemPtr_;
55
56 };
57
58 // Explicit instantation declarations
59 PSCF_TMPL_DECLARE(SweepFactory)
60
61} // namespace Rp
62} // namespace Pscf
63#endif
Default Factory for subclasses of Sweep.
Sweep< D, T > * factory(std::string const &className) const
Create an instance of a specified Sweep subclass.
SweepFactory(System< D, T > &system)
Constructor.
Solve a sequence of SCFT problems along a line in parameter space.
Base class template for classes that represent a complete system.
Sweep< D, T > * trySubfactories(const std::string &className) const
Definition Factory.h:427
Sweep< D, T > * readObjectOptional(std::istream &in, ParamComposite &parent, std::string &className, bool &isEnd)
Definition Factory.h:380
Code for programs that simulate real-valued periodic fields.
Definition param_pc.dox:2
PSCF package top-level namespace.