PSCF v1.5.0
Pscf::R1::SweepFactory Class Reference

Default Factory for subclasses of Sweep. More...

#include <SweepFactory.h>

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

Public Member Functions

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

Detailed Description

Default Factory for subclasses of Sweep.

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

Constructor & Destructor Documentation

◆ SweepFactory()

Pscf::R1::SweepFactory::SweepFactory ( System & system)

Constructor.

Parameters
systemparent System object

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

Referenced by Pscf::R1::System::System().

Member Function Documentation

◆ factory()

Sweep * Pscf::R1::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 r1/sweep/SweepFactory.cpp.

References Pscf::R1::LinearSweep::LinearSweep(), and Util::Factory< Sweep >::trySubfactories().


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