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