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

Detailed Description

Default Factory for subclasses of Perturbation.

Definition at line 27 of file McPerturbationFactory.h.

#include <McPerturbationFactory.h>

Inheritance diagram for McMd::McPerturbationFactory:
Util::Factory< Perturbation >

Public Member Functions

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

Constructor.

Parameters
systemParent McSystem

Definition at line 41 of file McPerturbationFactory.cpp.

Member Function Documentation

Perturbation * McMd::McPerturbationFactory::factory ( const std::string &  className) const
virtual

Method to create any species supplied with Simpatico.

Parameters
classNamename of the Perturbation subclass
Returns
Perturbation* pointer to new instance of className

Implements Util::Factory< Perturbation >.

Definition at line 48 of file McPerturbationFactory.cpp.

References McMd::Simulation::communicator(), McMd::McSystem::externalPotential(), McMd::ExternalPotential::interactionClassName(), McMd::PairPotential::interactionClassName(), McMd::McSystem::pairPotential(), McMd::System::simulation(), Util::Factory< Perturbation >::trySubfactories(), and UTIL_THROW.


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