PSCF v1.5.0
Pscf::Rp::McMoveFactory< D, T > Class Template Reference

Factory for subclasses of McMove. More...

#include <McMoveFactory.h>

Inheritance diagram for Pscf::Rp::McMoveFactory< D, T >:
Util::Factory< McMove< D, T > >

Public Member Functions

 McMoveFactory (McSimulator< D, T > &simulator)
 Constructor.
McMove< D, T > * factory (const std::string &className) const
 Method to create any McMove supplied with PSCF.
Public Member Functions inherited from Util::Factory< McMove< D, T > >
 Factory ()
 Constructor.
virtual ~Factory ()
 Destructor.
void addSubfactory (Factory< McMove< D, T > > &subfactory)
 Add a new subfactory to the list.
McMove< D, T > * 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, T > * 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, T > * 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, T > >
McMove< D, T > * trySubfactories (const std::string &className) const
 Search through subfactories for match.

Detailed Description

template<int D, class T>
class Pscf::Rp::McMoveFactory< D, T >

Factory for subclasses of McMove.

Definition at line 32 of file McMoveFactory.h.

Constructor & Destructor Documentation

◆ McMoveFactory()

template<int D, class T>
Pscf::Rp::McMoveFactory< D, T >::McMoveFactory ( McSimulator< D, T > & simulator)

Constructor.

Parameters
simulatorparent McSimulator<D,T> object

Definition at line 27 of file McMoveFactory.tpp.

Member Function Documentation

◆ factory()

template<int D, class T>
McMove< D, T > * Pscf::Rp::McMoveFactory< D, T >::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, T > >.

Definition at line 36 of file McMoveFactory.tpp.

References Pscf::Rp::BdMove< D, T >::BdMove(), Pscf::Rp::RealMove< D, T >::RealMove(), and Util::Factory< McMove< D, T > >::trySubfactories().


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