|
PSCF v1.5.0
|
Factory for subclasses of Iterator. More...
#include <IteratorFactory.h>
Public Member Functions | |
| IteratorFactory (System< D, T > &system) | |
| Constructor. | |
| Iterator< D, T > * | factory (const std::string &className) const |
| Create an instance of a specified subclass of Iterator<D,T>. | |
| Public Member Functions inherited from Util::Factory< Iterator< D, T > > | |
| Factory () | |
| Constructor. | |
| virtual | ~Factory () |
| Destructor. | |
| void | addSubfactory (Factory< Iterator< D, T > > &subfactory) |
| Add a new subfactory to the list. | |
| Iterator< 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. | |
| Iterator< 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. | |
| Iterator< 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< Iterator< D, T > > | |
| Iterator< D, T > * | trySubfactories (const std::string &className) const |
| Search through subfactories for match. | |
Factory for subclasses of Iterator.
Definition at line 36 of file rp/scft/iterator/IteratorFactory.h.
| Pscf::Rp::IteratorFactory< D, T >::IteratorFactory | ( | System< D, T > & | system | ) |
|
virtual |
Create an instance of a specified subclass of Iterator<D,T>.
| className | name of the Iterator<D,T> subclass |
Implements Util::Factory< Iterator< D, T > >.
Definition at line 32 of file IteratorFactory.tpp.
References Pscf::Rp::AmIteratorBasis< D, T >::AmIteratorBasis(), and Util::Factory< Iterator< D, T > >::trySubfactories().