|
PSCF v1.5.0
|
Factory for subclasses of Perturbation. More...
#include <PerturbationFactory.h>
Public Member Functions | |
| PerturbationFactory (Simulator< D, T > &simulator) | |
| Constructor. | |
| Perturbation< D, T > * | factory (const std::string &className) const |
| Method to create any Perturbation supplied with PSCF. | |
| Public Member Functions inherited from Util::Factory< Perturbation< D, T > > | |
| Factory () | |
| Constructor. | |
| virtual | ~Factory () |
| Destructor. | |
| void | addSubfactory (Factory< Perturbation< D, T > > &subfactory) |
| Add a new subfactory to the list. | |
| Perturbation< D, T > * | 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, T > * | 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, T > * | 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, T > > | |
| Perturbation< D, T > * | trySubfactories (const std::string &className) const |
| Search through subfactories for match. | |
Factory for subclasses of Perturbation.
Definition at line 28 of file PerturbationFactory.h.
| Pscf::Rp::PerturbationFactory< D, T >::PerturbationFactory | ( | Simulator< D, T > & | simulator | ) |
Constructor.
| simulator | parent Simulator<D,T> object |
Definition at line 22 of file PerturbationFactory.tpp.
Referenced by Pscf::Rp::Simulator< D, T >::Simulator().
|
virtual |
Method to create any Perturbation supplied with PSCF.
| className | name of the Perturbation subclass |
Implements Util::Factory< Perturbation< D, T > >.
Definition at line 32 of file PerturbationFactory.tpp.
References Util::Factory< Perturbation< D, T > >::trySubfactories().