Simpatico  v1.10
List of all members | Public Member Functions | Protected Member Functions
McMd::McMoveFactory Class Reference

Detailed Description

McMoveFactory for an McSimulation.

Definition at line 28 of file McMoveFactory.h.

#include <McMoveFactory.h>

Inheritance diagram for McMd::McMoveFactory:
Util::Factory< McMove > McMd::SliplinkMcMoveFactory

Public Member Functions

 McMoveFactory (McSimulation &simulation, McSystem &system)
 Constructor. More...
 
virtual McMovefactory (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

McSimulationsimulation () const
 Return reference to parent Simulation. More...
 
McSystemsystem () 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...
 

Constructor & Destructor Documentation

McMd::McMoveFactory::McMoveFactory ( McSimulation simulation,
McSystem system 
)
inline

Constructor.

Parameters
simulationparent simulation
systemparent system

Definition at line 39 of file McMoveFactory.h.

Member Function Documentation

McMove * McMd::McMoveFactory::factory ( const std::string &  className) const
virtual

Return pointer to a new McMove object.

Parameters
classNamename of a subclass of McMove.
Returns
base class pointer to a new instance of className.

Implements Util::Factory< McMove >.

Reimplemented in McMd::SliplinkMcMoveFactory.

Definition at line 41 of file McMoveFactory.cpp.

Referenced by McMd::SliplinkMcMoveFactory::factory().

McSimulation& McMd::McMoveFactory::simulation ( ) const
inlineprotected

Return reference to parent Simulation.

Definition at line 57 of file McMoveFactory.h.

McSystem& McMd::McMoveFactory::system ( ) const
inlineprotected

Return reference to parent McSystem.

Definition at line 63 of file McMoveFactory.h.

Referenced by McMd::SliplinkMcMoveFactory::factory().


The documentation for this class was generated from the following files: