PSCF v1.1
Public Member Functions | List of all members
Pscf::Fd1d::SweepFactory Class Reference

Default Factory for subclasses of Sweep. More...

#include <SweepFactory.h>

Inheritance diagram for Pscf::Fd1d::SweepFactory:
Util::Factory< Sweep >

Public Member Functions

 SweepFactory (System &system)
 Constructor. More...
 
Sweepfactory (std::string const &className) const
 Method to create any Sweep subclass. More...
 
- Public Member Functions inherited from Util::Factory< Sweep >
 Factory ()
 Constructor. More...
 
virtual ~Factory ()
 Destructor. More...
 
void addSubfactory (Factory< Sweep > &subfactory)
 Add a new subfactory to the list. More...
 
virtual Sweep * factory (const std::string &className) const=0
 Returns a pointer to a new instance of specified subclass. More...
 
Sweep * 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 * 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 * 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 >
Sweep * 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

Default Factory for subclasses of Sweep.

Definition at line 26 of file fd1d/sweep/SweepFactory.h.

Constructor & Destructor Documentation

◆ SweepFactory()

Pscf::Fd1d::SweepFactory::SweepFactory ( System system)

Constructor.

Parameters
systemparent System object

Definition at line 18 of file fd1d/sweep/SweepFactory.cpp.

Member Function Documentation

◆ factory()

Sweep * Pscf::Fd1d::SweepFactory::factory ( std::string const &  className) const
virtual

Method to create any Sweep subclass.

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

Implements Util::Factory< Sweep >.

Definition at line 25 of file fd1d/sweep/SweepFactory.cpp.

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


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