PSCF v1.2
Pscf::Rpc::McMoveFactory< D > Class Template Reference

Factory for subclasses of McMove. More...

#include <McMoveFactory.h>

Inheritance diagram for Pscf::Rpc::McMoveFactory< D >:
Util::Factory< McMove< D > >

Public Member Functions

 McMoveFactory (McSimulator< D > &simulator)
 Constructor.
 
McMove< D > * factory (const std::string &className) const
 Method to create any McMove supplied with PSCF.
 
- Public Member Functions inherited from Util::Factory< McMove< D > >
 Factory ()
 Constructor.
 
virtual ~Factory ()
 Destructor.
 
void addSubfactory (Factory< McMove< D > > &subfactory)
 Add a new subfactory to the list.
 
McMove< D > * readObject (std::istream &in, ParamComposite &parent, std::string &className, bool &isEnd, bool isRequired=true)
 Read a class name, instantiate an object, and read its parameters.
 
McMove< D > * readObjectOptional (std::istream &in, ParamComposite &parent, std::string &className, bool &isEnd)
 Read an optional class name, instantiate an object, and read its parameters.
 
McMove< D > * loadObject (Serializable::IArchive &ar, ParamComposite &parent, std::string &className)
 Load a class name, instantiate an object, and load the object.
 

Additional Inherited Members

- Protected Member Functions inherited from Util::Factory< McMove< D > >
McMove< D > * trySubfactories (const std::string &className) const
 Search through subfactories for match.
 
void setIoCommunicator (MPI::Intracomm &communicator)
 Set associated Mpi communicator.
 
bool hasIoCommunicator () const
 Does this factory have a param communicator?
 

Detailed Description

template<int D>
class Pscf::Rpc::McMoveFactory< D >

Factory for subclasses of McMove.

Definition at line 29 of file rpc/fts/montecarlo/McMoveFactory.h.

Constructor & Destructor Documentation

◆ McMoveFactory()

template<int D>
Pscf::Rpc::McMoveFactory< D >::McMoveFactory ( McSimulator< D > & simulator)

Constructor.

Parameters
simulatorparent McSimulator<D> object

Definition at line 20 of file rpc/fts/montecarlo/McMoveFactory.tpp.

Member Function Documentation

◆ factory()

template<int D>
McMove< D > * Pscf::Rpc::McMoveFactory< D >::factory ( const std::string & className) const
virtual

Method to create any McMove supplied with PSCF.

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

Implements Util::Factory< McMove< D > >.

Definition at line 28 of file rpc/fts/montecarlo/McMoveFactory.tpp.


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