PSCF v1.1
Public Member Functions | List of all members
Pscf::Pspc::SweepFactory< D > Class Template Reference

Default Factory for subclasses of Sweep. More...

#include <SweepFactory.h>

Inheritance diagram for Pscf::Pspc::SweepFactory< D >:
Util::Factory< Sweep< D > >

Public Member Functions

 SweepFactory (System< D > &system)
 Constructor. More...
 
Sweep< D > * factory (std::string const &className) const
 Method to create any Sweep subclass. More...
 
- Public Member Functions inherited from Util::Factory< Sweep< D > >
 Factory ()
 Constructor. More...
 
virtual ~Factory ()
 Destructor. More...
 
void addSubfactory (Factory< Sweep< D > > &subfactory)
 Add a new subfactory to the list. More...
 
virtual Sweep< D > * factory (const std::string &className) const=0
 Returns a pointer to a new instance of specified subclass. More...
 
Sweep< 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. More...
 
Sweep< D > * readObjectOptional (std::istream &in, ParamComposite &parent, std::string &className, bool &isEnd)
 Read an optional class name, instantiate an object, and read its parameters. More...
 
Sweep< D > * 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< Sweep< D > >
Sweep< D > * 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...
 

Detailed Description

template<int D>
class Pscf::Pspc::SweepFactory< D >

Default Factory for subclasses of Sweep.

Definition at line 27 of file pspc/sweep/SweepFactory.h.

Constructor & Destructor Documentation

◆ SweepFactory()

template<int D>
Pscf::Pspc::SweepFactory< D >::SweepFactory ( System< D > &  system)

Constructor.

Parameters
systemparent System object

Definition at line 23 of file pspc/sweep/SweepFactory.tpp.

Member Function Documentation

◆ factory()

template<int D>
Sweep< D > * Pscf::Pspc::SweepFactory< D >::factory ( std::string const &  className) const
virtual

Method to create any Sweep subclass.

Return a pointer to a Sweep subclass with name className.

Parameters
classNamename of the Sweep subclass
Returns
Sweep<D>* pointer to new instance of speciesName

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

Definition at line 31 of file pspc/sweep/SweepFactory.tpp.


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