Simpatico
v1.10
|
Default Factory for subclasses of Perturbation.
Definition at line 27 of file McPerturbationFactory.h.
#include <McPerturbationFactory.h>
Public Member Functions | |
McPerturbationFactory (McSystem &system) | |
Constructor. More... | |
Perturbation * | factory (const std::string &className) const |
Method to create any species supplied with Simpatico. More... | |
![]() | |
Factory () | |
Constructor. More... | |
virtual | ~Factory () |
Destructor. More... | |
void | addSubfactory (Factory< Perturbation > &subfactory) |
Add a new subfactory to the list. More... | |
Perturbation * | readObject (std::istream &in, ParamComposite &parent, std::string &className, bool &isEnd) |
Read a class name, instantiate an object, and read its parameters. More... | |
Perturbation * | loadObject (Serializable::IArchive &ar, ParamComposite &parent, std::string &className) |
Load a class name, instantiate an object, and load the object. More... | |
Additional Inherited Members | |
![]() | |
Perturbation * | 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... | |
McMd::McPerturbationFactory::McPerturbationFactory | ( | McSystem & | system | ) |
Constructor.
system | Parent McSystem |
Definition at line 41 of file McPerturbationFactory.cpp.
|
virtual |
Method to create any species supplied with Simpatico.
className | name of the Perturbation subclass |
Implements Util::Factory< Perturbation >.
Definition at line 48 of file McPerturbationFactory.cpp.
References McMd::Simulation::communicator(), McMd::McSystem::externalPotential(), McMd::ExternalPotential::interactionClassName(), McMd::PairPotential::interactionClassName(), McMd::McSystem::pairPotential(), McMd::System::simulation(), Util::Factory< Perturbation >::trySubfactories(), and UTIL_THROW.