|
PSCF v1.5.0
|
Factory for subclasses of Analyzer. More...
#include <AnalyzerFactory.h>
Public Member Functions | |
| AnalyzerFactory (Simulator< D, T > &simulator, System< D, T > &system) | |
| Constructor. | |
| Analyzer< D, T > * | factory (const std::string &className) const |
| Create an instance of a specified subclass of Analyzer. | |
| Public Member Functions inherited from Util::Factory< Analyzer< D, T > > | |
| Factory () | |
| Constructor. | |
| virtual | ~Factory () |
| Destructor. | |
| void | addSubfactory (Factory< Analyzer< D, T > > &subfactory) |
| Add a new subfactory to the list. | |
| Analyzer< 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. | |
| Analyzer< 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. | |
| Analyzer< 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< Analyzer< D, T > > | |
| Analyzer< D, T > * | trySubfactories (const std::string &className) const |
| Search through subfactories for match. | |
Factory for subclasses of Analyzer.
Definition at line 28 of file AnalyzerFactory.h.
| Pscf::Rp::AnalyzerFactory< D, T >::AnalyzerFactory | ( | Simulator< D, T > & | simulator, |
| System< D, T > & | system ) |
Constructor.
Definition at line 32 of file AnalyzerFactory.tpp.
|
virtual |
Create an instance of a specified subclass of Analyzer.
| className | name of the desired subclass of Analyzer<D,T> |
Implements Util::Factory< Analyzer< D, T > >.
Definition at line 43 of file AnalyzerFactory.tpp.
References Pscf::Rp::BinaryChiDerivative< D, T >::BinaryChiDerivative(), Pscf::Rp::BinaryStructureFactor< D, T >::BinaryStructureFactor(), Pscf::Rp::ConcentrationDerivative< D, T >::ConcentrationDerivative(), Pscf::Rp::ConcentrationWriter< D, T >::ConcentrationWriter(), Pscf::Rp::CubicLengthDerivative< D, T >::CubicLengthDerivative(), Pscf::Rp::FourthOrderParameter< D, T >::FourthOrderParameter(), Pscf::Rp::HamiltonianAnalyzer< D, T >::HamiltonianAnalyzer(), Pscf::Rp::MaxOrderParameter< D, T >::MaxOrderParameter(), Pscf::Rp::PerturbationDerivative< D, T >::PerturbationDerivative(), Pscf::Rp::StepLogger< D, T >::StepLogger(), Pscf::Rp::TrajectoryWriter< D, T >::TrajectoryWriter(), and Util::Factory< Analyzer< D, T > >::trySubfactories().