Simpatico  v1.10
List of all members | Public Member Functions
DdMd::IntegratorFactory Class Reference

Detailed Description

Factory for subclasses of Integrator (i.e., MD integrators).

Definition at line 28 of file IntegratorFactory.h.

#include <IntegratorFactory.h>

Inheritance diagram for DdMd::IntegratorFactory:
Util::Factory< Integrator >

Public Member Functions

 IntegratorFactory (Simulation &simulation)
 Constructor. More...
 
Integratorfactory (const std::string &speciesName) const
 Method to create any species supplied with Simpatico. More...
 
- Public Member Functions inherited from Util::Factory< Integrator >
 Factory ()
 Constructor. More...
 
virtual ~Factory ()
 Destructor. More...
 
void addSubfactory (Factory< Integrator > &subfactory)
 Add a new subfactory to the list. More...
 
Integrator * readObject (std::istream &in, ParamComposite &parent, std::string &className, bool &isEnd)
 Read a class name, instantiate an object, and read its parameters. More...
 
Integrator * 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< Integrator >
Integrator * 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

DdMd::IntegratorFactory::IntegratorFactory ( Simulation simulation)

Constructor.

Definition at line 25 of file IntegratorFactory.cpp.

Member Function Documentation

Integrator * DdMd::IntegratorFactory::factory ( const std::string &  speciesName) const
virtual

Method to create any species supplied with Simpatico.

Parameters
speciesNamename of the Integrator subclass
Returns
Integrator* pointer to new instance of speciesName

Implements Util::Factory< Integrator >.

Definition at line 32 of file IntegratorFactory.cpp.

References Util::Factory< Integrator >::trySubfactories().


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