PSCF v1.1
|
Default Factory for subclasses of Sweep. More...
#include <SweepFactory.h>
Public Member Functions | |
SweepFactory (System &system) | |
Constructor. More... | |
Sweep * | factory (std::string const &className) const |
Method to create any Sweep subclass. More... | |
![]() | |
Factory () | |
Constructor. More... | |
virtual | ~Factory () |
Destructor. More... | |
void | addSubfactory (Factory< Sweep > &subfactory) |
Add a new subfactory to the list. More... | |
virtual Sweep * | factory (const std::string &className) const=0 |
Returns a pointer to a new instance of specified subclass. More... | |
Sweep * | 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. More... | |
Sweep * | readObjectOptional (std::istream &in, ParamComposite &parent, std::string &className, bool &isEnd) |
Read an optional class name, instantiate an object, and read its parameters. More... | |
Sweep * | loadObject (Serializable::IArchive &ar, ParamComposite &parent, std::string &className) |
Load a class name, instantiate an object, and load the object. More... | |
Additional Inherited Members | |
![]() | |
Sweep * | trySubfactories (const std::string &className) const |
Search through subfactories for match. More... | |
void | setIoCommunicator (MPI::Intracomm &communicator) |
Set associated Mpi communicator. More... | |
bool | hasIoCommunicator () const |
Does this factory have a param communicator? More... | |
Default Factory for subclasses of Sweep.
Definition at line 26 of file fd1d/sweep/SweepFactory.h.
Pscf::Fd1d::SweepFactory::SweepFactory | ( | System & | system | ) |
Constructor.
system | parent System object |
Definition at line 18 of file fd1d/sweep/SweepFactory.cpp.
|
virtual |
Method to create any Sweep subclass.
className | name of the Sweep subclass |
Implements Util::Factory< Sweep >.
Definition at line 25 of file fd1d/sweep/SweepFactory.cpp.
References Util::Factory< Sweep >::trySubfactories().