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