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