|
PSCF v1.4.0
|
Factory for subclasses of Step. More...
#include <StepFactory.h>
Public Member Functions | |
| StepFactory (Simulator< D > &simulator) | |
| Constructor. | |
| Step< D > * | factory (const std::string &className) const |
| Method to create any Step supplied with PSCF. | |
| Public Member Functions inherited from Util::Factory< Step< D > > | |
| Factory () | |
| Constructor. | |
| virtual | ~Factory () |
| Destructor. | |
| void | addSubfactory (Factory< Step< D > > &subfactory) |
| Add a new subfactory to the list. | |
| Step< 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. | |
| Step< D > * | readObjectOptional (std::istream &in, ParamComposite &parent, std::string &className, bool &isEnd) |
| Read an optional class name, instantiate an object, and read its parameters. | |
| Step< 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< Step< D > > | |
| Step< D > * | trySubfactories (const std::string &className) const |
| Search through subfactories for match. | |
Factory for subclasses of Step.
Definition at line 29 of file StepFactory.h.
| Pscf::Cpc::StepFactory< D >::StepFactory | ( | Simulator< D > & | simulator | ) |
Constructor.
| simulator | parent Simulator<D> object |
Definition at line 19 of file StepFactory.tpp.
|
virtual |
Method to create any Step supplied with PSCF.
| className | name of the Step subclass |
Implements Util::Factory< Step< D > >.
Definition at line 27 of file StepFactory.tpp.
References Util::Factory< Step< D > >::trySubfactories().