|
Simpatico
v1.10
|
McMoveFactory for an McSimulation.
Definition at line 28 of file McMoveFactory.h.
#include <McMoveFactory.h>
Public Member Functions | |
| McMoveFactory (McSimulation &simulation, McSystem &system) | |
| Constructor. More... | |
| virtual McMove * | factory (const std::string &className) const |
| Return pointer to a new McMove object. More... | |
Public Member Functions inherited from Util::Factory< McMove > | |
| Factory () | |
| Constructor. More... | |
| virtual | ~Factory () |
| Destructor. More... | |
| void | addSubfactory (Factory< McMove > &subfactory) |
| Add a new subfactory to the list. More... | |
| McMove * | readObject (std::istream &in, ParamComposite &parent, std::string &className, bool &isEnd) |
| Read a class name, instantiate an object, and read its parameters. More... | |
| McMove * | loadObject (Serializable::IArchive &ar, ParamComposite &parent, std::string &className) |
| Load a class name, instantiate an object, and load the object. More... | |
Protected Member Functions | |
| McSimulation & | simulation () const |
| Return reference to parent Simulation. More... | |
| McSystem & | system () const |
| Return reference to parent McSystem. More... | |
Protected Member Functions inherited from Util::Factory< McMove > | |
| McMove * | 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... | |
|
inline |
Constructor.
| simulation | parent simulation |
| system | parent system |
Definition at line 39 of file McMoveFactory.h.
|
virtual |
Return pointer to a new McMove object.
| className | name of a subclass of McMove. |
Implements Util::Factory< McMove >.
Reimplemented in McMd::SliplinkMcMoveFactory.
Definition at line 41 of file McMoveFactory.cpp.
Referenced by McMd::SliplinkMcMoveFactory::factory().
|
inlineprotected |
Return reference to parent Simulation.
Definition at line 57 of file McMoveFactory.h.
|
inlineprotected |
Return reference to parent McSystem.
Definition at line 63 of file McMoveFactory.h.
Referenced by McMd::SliplinkMcMoveFactory::factory().
1.8.11