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

Detailed Description

Default Factory for subclasses of Species.

Definition at line 25 of file SpeciesFactory.h.

#include <SpeciesFactory.h>

Inheritance diagram for McMd::SpeciesFactory:
Util::Factory< Simp::Species >

Public Member Functions

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

Member Function Documentation

Species * McMd::SpeciesFactory::factory ( const std::string &  speciesName) const
virtual

Method to create any species supplied with Simpatico.

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

Implements Util::Factory< Simp::Species >.

Definition at line 27 of file SpeciesFactory.cpp.


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