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

Default Factory for subclasses of Sweep. More...

#include <SweepFactory.h>

Inheritance diagram for Pscf::Rp::SweepFactory< D, T >:
Util::Factory< Sweep< D, T > >

Public Member Functions

 SweepFactory (System< D, T > &system)
 Constructor.
Sweep< D, T > * factory (std::string const &className) const
 Create an instance of a specified Sweep subclass.
Public Member Functions inherited from Util::Factory< Sweep< D, T > >
 Factory ()
 Constructor.
virtual ~Factory ()
 Destructor.
void addSubfactory (Factory< Sweep< D, T > > &subfactory)
 Add a new subfactory to the list.
Sweep< 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.
Sweep< 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.
Sweep< 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< Sweep< D, T > >
Sweep< D, T > * trySubfactories (const std::string &className) const
 Search through subfactories for match.

Detailed Description

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

Default Factory for subclasses of Sweep.

Definition at line 28 of file rp/scft/sweep/SweepFactory.h.

Constructor & Destructor Documentation

◆ SweepFactory()

template<int D, class T>
Pscf::Rp::SweepFactory< D, T >::SweepFactory ( System< D, T > & system)

Constructor.

Parameters
systemparent System object

Definition at line 19 of file SweepFactory.tpp.

Member Function Documentation

◆ factory()

template<int D, class T>
Sweep< D, T > * Pscf::Rp::SweepFactory< D, T >::factory ( std::string const & className) const
virtual

Create an instance of a specified Sweep subclass.

Return a pointer to a Sweep subclass with name className.

Parameters
classNamename of the Sweep subclass
Returns
pointer to a new Sweep object

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

Definition at line 28 of file SweepFactory.tpp.

References Util::Factory< Sweep< D, T > >::trySubfactories().


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