|
Simpatico
v1.10
|
Factory for BondPotential objects.
Definition at line 26 of file ddMd/potentials/bond/BondFactory.h.
#include <BondFactory.h>
Public Member Functions | |
| BondFactory (Simulation &simulation) | |
| Default constructor. More... | |
| BondPotential * | factory (const std::string &subclass) const |
| Return a pointer to a new McBondInteration, if possible. More... | |
Public Member Functions inherited from Util::Factory< BondPotential > | |
| 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 | |
Protected Member Functions inherited from Util::Factory< BondPotential > | |
| 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... | |
| DdMd::BondFactory::BondFactory | ( | Simulation & | simulation | ) |
Default constructor.
Definition at line 28 of file ddMd/potentials/bond/BondFactory.cpp.
|
virtual |
Return a pointer to a new McBondInteration, if possible.
Implements Util::Factory< BondPotential >.
Definition at line 37 of file ddMd/potentials/bond/BondFactory.cpp.
References Util::Factory< BondPotential >::trySubfactories().
1.8.11