Simpatico
v1.10
|
Custom McMoveFactory.
Definition at line 17 of file SliplinkMcMoveFactory.h.
#include <SliplinkMcMoveFactory.h>
Public Member Functions | |
SliplinkMcMoveFactory (McSimulation &simulation, McSystem &system) | |
Constructor. More... | |
virtual McMove * | factory (const std::string &className) const |
Return pointer to a new McMove object. More... | |
![]() | |
McMoveFactory (McSimulation &simulation, McSystem &system) | |
Constructor. More... | |
![]() | |
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... | |
Additional Inherited Members | |
![]() | |
McSimulation & | simulation () const |
Return reference to parent Simulation. More... | |
McSystem & | system () const |
Return reference to parent McSystem. More... | |
![]() | |
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... | |
McMd::SliplinkMcMoveFactory::SliplinkMcMoveFactory | ( | McSimulation & | simulation, |
McSystem & | system | ||
) |
Constructor.
simulation | parent simulation |
system | parent system |
Definition at line 20 of file SliplinkMcMoveFactory.cpp.
|
virtual |
Return pointer to a new McMove object.
className | name of a subclass of McMove. |
Reimplemented from McMd::McMoveFactory.
Definition at line 28 of file SliplinkMcMoveFactory.cpp.
References McMd::McMoveFactory::factory(), McMd::McMoveFactory::system(), and Util::Factory< McMove >::trySubfactories().