|
PSCF v1.3.3
|
Factory for subclasses of Perturbation. More...
#include <PerturbationFactory.h>
Public Member Functions | |
| PerturbationFactory (Simulator< D > &simulator) | |
| Constructor. | |
| Perturbation< D > * | factory (const std::string &className) const |
| Method to create any Perturbation supplied with PSCF. | |
| Public Member Functions inherited from Util::Factory< Perturbation< D > > | |
| Factory () | |
| Constructor. | |
| virtual | ~Factory () |
| Destructor. | |
| void | addSubfactory (Factory< Perturbation< D > > &subfactory) |
| Add a new subfactory to the list. | |
| Perturbation< D > * | readObject (std::istream &in, ParamComposite &parent, std::string &className, bool &isEnd, bool isRequired=true) |
| Read a class name, instantiate an object, and read its parameters. | |
| Perturbation< D > * | readObjectOptional (std::istream &in, ParamComposite &parent, std::string &className, bool &isEnd) |
| Read an optional class name, instantiate an object, and read its parameters. | |
| Perturbation< D > * | loadObject (Serializable::IArchive &ar, ParamComposite &parent, std::string &className) |
| Load a class name, instantiate an object, and load the object. | |
Additional Inherited Members | |
| Protected Member Functions inherited from Util::Factory< Perturbation< D > > | |
| Perturbation< D > * | trySubfactories (const std::string &className) const |
| Search through subfactories for match. | |
Factory for subclasses of Perturbation.
Definition at line 28 of file rpg/fts/perturbation/PerturbationFactory.h.
| Pscf::Rpg::PerturbationFactory< D >::PerturbationFactory | ( | Simulator< D > & | simulator | ) |
Constructor.
| simulator | parent Simulator<D> object |
Definition at line 20 of file rpg/fts/perturbation/PerturbationFactory.tpp.
|
virtual |
Method to create any Perturbation supplied with PSCF.
| className | name of the Perturbation subclass |
Implements Util::Factory< Perturbation< D > >.
Definition at line 29 of file rpg/fts/perturbation/PerturbationFactory.tpp.
References Util::Factory< Perturbation< D > >::trySubfactories().