PSCF v1.3.2
rpc/scft/iterator/IteratorFactory.h
1#ifndef RPC_ITERATOR_FACTORY_H
2#define RPC_ITERATOR_FACTORY_H
3
4/*
5* PSCF - Polymer Self-Consistent Field
6*
7* Copyright 2015 - 2025, The Regents of the University of Minnesota
8* Distributed under the terms of the GNU General Public License.
9*/
10
11#include <rpc/scft/iterator/Iterator.h>
12#include <util/param/Factory.h>
13
14#include <string>
15
16namespace Pscf {
17namespace Rpc {
18
19 template <int D> class System;
20
21 using namespace Util;
22
28
29 template <int D>
30 class IteratorFactory : public Factory< Iterator<D> >
31 {
32
33 public:
34
41
48 Iterator<D>* factory(const std::string &className) const;
49
50 // Inherited member functions
53
54 private:
55
57 System<D>* sysPtr_;
58
59 };
60
61 // Explicit instantiation declarations
62 extern template class IteratorFactory<1>;
63 extern template class IteratorFactory<2>;
64 extern template class IteratorFactory<3>;
65
66}
67}
68#endif
Factory for subclasses of Iterator.
Iterator< D > * factory(const std::string &className) const
Method to create any Iterator supplied with PSCF.
IteratorFactory(System< D > &system)
Constructor.
Base class for iterative solvers for SCF equations.
Main class, representing a complete physical system.
Iterator< D > * trySubfactories(const std::string &className) const
Definition Factory.h:425
Iterator< D > * readObjectOptional(std::istream &in, ParamComposite &parent, std::string &className, bool &isEnd)
Definition Factory.h:378
Real periodic fields, SCFT and PS-FTS (CPU).
Definition param_pc.dox:2
PSCF package top-level namespace.