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

Detailed Description

Factory for ExternalPotential objects.

Definition at line 26 of file ddMd/potentials/external/ExternalFactory.h.

#include <ExternalFactory.h>

Inheritance diagram for DdMd::ExternalFactory:
Util::Factory< ExternalPotential >

Public Member Functions

 ExternalFactory (Simulation &simulation)
 Default constructor. More...
 
ExternalPotentialfactory (const std::string &subclass) const
 Return a pointer to a new ExternalInteration, if possible. More...
 
- Public Member Functions inherited from Util::Factory< ExternalPotential >
 Factory ()
 Constructor. More...
 
virtual ~Factory ()
 Destructor. More...
 
void addSubfactory (Factory< ExternalPotential > &subfactory)
 Add a new subfactory to the list. More...
 
ExternalPotential * readObject (std::istream &in, ParamComposite &parent, std::string &className, bool &isEnd)
 Read a class name, instantiate an object, and read its parameters. More...
 
ExternalPotential * 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< ExternalPotential >
ExternalPotential * 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::ExternalFactory::ExternalFactory ( Simulation simulation)

Default constructor.

Definition at line 34 of file ddMd/potentials/external/ExternalFactory.cpp.

Member Function Documentation

ExternalPotential * DdMd::ExternalFactory::factory ( const std::string &  subclass) const
virtual

Return a pointer to a new ExternalInteration, if possible.

Implements Util::Factory< ExternalPotential >.

Definition at line 43 of file ddMd/potentials/external/ExternalFactory.cpp.

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


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