|
PSCF v1.3.3
|
Factory for subclasses of Simulator. More...
#include <SimulatorFactory.h>
Public Member Functions | |
| SimulatorFactory (System< D > &system) | |
| Constructor. | |
| Simulator< D > * | factory (const std::string &className) const |
| Method to create any Simulator supplied with PSCF. | |
| Public Member Functions inherited from Util::Factory< Simulator< D > > | |
| Factory () | |
| Constructor. | |
| virtual | ~Factory () |
| Destructor. | |
| void | addSubfactory (Factory< Simulator< D > > &subfactory) |
| Add a new subfactory to the list. | |
| Simulator< 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. | |
| Simulator< D > * | 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 > * | 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 > > | |
| Simulator< D > * | trySubfactories (const std::string &className) const |
| Search through subfactories for match. | |
Factory for subclasses of Simulator.
Definition at line 29 of file rpg/fts/simulator/SimulatorFactory.h.
| Pscf::Rpg::SimulatorFactory< D >::SimulatorFactory | ( | System< D > & | system | ) |
Constructor.
| system | parent System<D> object |
Definition at line 20 of file rpg/fts/simulator/SimulatorFactory.tpp.
|
virtual |
Method to create any Simulator supplied with PSCF.
| className | name of the Simulator subclass |
Implements Util::Factory< Simulator< D > >.
Definition at line 28 of file rpg/fts/simulator/SimulatorFactory.tpp.
References Util::Factory< Simulator< D > >::trySubfactories().