Simpatico
v1.10
|
Default Factory for subclasses of Species.
Definition at line 25 of file SpeciesFactory.h.
#include <SpeciesFactory.h>
Public Member Functions | |
Simp::Species * | factory (const std::string &speciesName) const |
Method to create any species supplied with Simpatico. More... | |
![]() | |
Factory () | |
Constructor. More... | |
virtual | ~Factory () |
Destructor. More... | |
void | addSubfactory (Factory< Simp::Species > &subfactory) |
Add a new subfactory to the list. More... | |
Simp::Species * | readObject (std::istream &in, ParamComposite &parent, std::string &className, bool &isEnd) |
Read a class name, instantiate an object, and read its parameters. More... | |
Simp::Species * | loadObject (Serializable::IArchive &ar, ParamComposite &parent, std::string &className) |
Load a class name, instantiate an object, and load the object. More... | |
Additional Inherited Members | |
![]() | |
Simp::Species * | 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... | |
|
virtual |
Method to create any species supplied with Simpatico.
speciesName | name of the Species subclass |
Implements Util::Factory< Simp::Species >.
Definition at line 27 of file SpeciesFactory.cpp.