Simpatico
v1.10
|
Factory for BondPotential objects.
Definition at line 27 of file mcMd/potentials/bond/BondFactory.h.
#include <BondFactory.h>
Public Member Functions | |
BondFactory (System &system) | |
Default constructor. More... | |
BondPotential * | factory (const std::string &subclass) const |
Return a pointer to a new BondPotential, if possible. More... | |
![]() | |
Factory () | |
Constructor. More... | |
virtual | ~Factory () |
Destructor. More... | |
void | addSubfactory (Factory< BondPotential > &subfactory) |
Add a new subfactory to the list. More... | |
BondPotential * | readObject (std::istream &in, ParamComposite &parent, std::string &className, bool &isEnd) |
Read a class name, instantiate an object, and read its parameters. More... | |
BondPotential * | loadObject (Serializable::IArchive &ar, ParamComposite &parent, std::string &className) |
Load a class name, instantiate an object, and load the object. More... | |
Additional Inherited Members | |
![]() | |
BondPotential * | 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::BondFactory::BondFactory | ( | System & | system | ) |
Default constructor.
Definition at line 32 of file mcMd/potentials/bond/BondFactory.cpp.
|
virtual |
Return a pointer to a new BondPotential, if possible.
Implements Util::Factory< BondPotential >.
Definition at line 41 of file mcMd/potentials/bond/BondFactory.cpp.
References Util::Factory< BondPotential >::trySubfactories().