PSCF v1.5.0
AnalyzerFactory.h
1#ifndef RP_ANALYZER_FACTORY_H
2#define RP_ANALYZER_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/analyzer/Analyzer.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>
28 class AnalyzerFactory : public Factory< Analyzer<D,T> >
29 {
30
31 public:
32
40 System<D,T>& system);
41
48 Analyzer<D,T>* factory(const std::string &className) const;
49
51
52 private:
53
55 Simulator<D,T>* simPtr_;
56
58 System<D,T>* sysPtr_;
59
60 };
61
62 // Explicit instantiation declarations
63 PSCF_TMPL_DECLARE(AnalyzerFactory)
64
65} // namespace Rp
66} // namespace Pscf
67#endif
Factory for subclasses of Analyzer.
AnalyzerFactory(Simulator< D, T > &simulator, System< D, T > &system)
Constructor.
Analyzer< D, T > * factory(const std::string &className) const
Create an instance of a specified subclass of Analyzer.
Abstract base for periodic output and/or analysis actions.
Definition Analyzer.h:49
Base class for field theoretic PS-FTS simulator.
Definition Simulator.h:93
Base class template for classes that represent a complete system.
Analyzer< 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.