PSCF v1.3
Pscf::Rpc::EnvironmentFactory< D > Class Template Reference

Factory for subclasses of Environment. More...

#include <EnvironmentFactory.h>

Inheritance diagram for Pscf::Rpc::EnvironmentFactory< D >:
Util::Factory< Environment >

Public Member Functions

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

Detailed Description

template<int D>
class Pscf::Rpc::EnvironmentFactory< D >

Factory for subclasses of Environment.

Definition at line 31 of file rpc/environment/EnvironmentFactory.h.

Constructor & Destructor Documentation

◆ EnvironmentFactory()

template<int D>
Pscf::Rpc::EnvironmentFactory< D >::EnvironmentFactory ( System< D > & system)

Constructor.

Definition at line 16 of file rpc/environment/EnvironmentFactory.tpp.

Member Function Documentation

◆ factory()

template<int D>
Environment * Pscf::Rpc::EnvironmentFactory< D >::factory ( const std::string & className) const
virtual

Method to create any Environment supplied with PSCF.

Parameters
classNamename of the Environment subclass
Returns
Environment* pointer to new instance of className

Implements Util::Factory< Environment >.

Definition at line 24 of file rpc/environment/EnvironmentFactory.tpp.

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


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