PSCF v1.1
fd1d/iterator/IteratorFactory.h
1#ifndef FD1D_ITERATOR_FACTORY_H
2#define FD1D_ITERATOR_FACTORY_H
3
4/*
5* PSCF - Polymer Self-Consistent Field Theory
6*
7* Copyright 2016 - 2022, The Regents of the University of Minnesota
8* Distributed under the terms of the GNU General Public License.
9*/
10
11#include <util/param/Factory.h>
12#include <fd1d/iterator/Iterator.h>
13#include <fd1d/System.h>
14
15#include <string>
16
17namespace Pscf {
18namespace Fd1d {
19
20 using namespace Util;
21
30 class IteratorFactory : public Factory<Iterator>
31 {
32
33 public:
34
40 IteratorFactory(System& system);
41
48 Iterator* factory(const std::string &className) const;
49
51
52 private:
53
55 System* sysPtr_;
56
57 };
58
59
60}
61}
62#endif
Factory for subclasses of Iterator.
Iterator * factory(const std::string &className) const
Method to create any Iterator supplied with PSCF.
Base class for iterative solvers for SCF equations.
Main class in SCFT simulation of one system.
Definition: fd1d/System.h:63
Factory template.
Definition: Factory.h:34
Iterator * trySubfactories(const std::string &className) const
Search through subfactories for match.
Definition: Factory.h:425
C++ namespace for polymer self-consistent field theory (PSCF).
Utility classes for scientific computation.
Definition: accumulators.mod:1