PSCF v1.2
Pscf::Rpg::CompressorFactory< D > Class Template Reference

Factory for subclasses of Compressor. More...

#include <CompressorFactory.h>

Inheritance diagram for Pscf::Rpg::CompressorFactory< D >:
Util::Factory< Compressor< D > >

Public Member Functions

 CompressorFactory (System< D > &system)
 Constructor.
 
Compressor< D > * factory (const std::string &className) const
 Method to create any Compressor supplied with PSCF.
 
- Public Member Functions inherited from Util::Factory< Compressor< D > >
 Factory ()
 Constructor.
 
virtual ~Factory ()
 Destructor.
 
void addSubfactory (Factory< Compressor< D > > &subfactory)
 Add a new subfactory to the list.
 
Compressor< 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.
 
Compressor< D > * readObjectOptional (std::istream &in, ParamComposite &parent, std::string &className, bool &isEnd)
 Read an optional class name, instantiate an object, and read its parameters.
 
Compressor< D > * 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< Compressor< D > >
Compressor< D > * trySubfactories (const std::string &className) const
 Search through subfactories for match.
 
void setIoCommunicator (MPI::Intracomm &communicator)
 Set associated Mpi communicator.
 
bool hasIoCommunicator () const
 Does this factory have a param communicator?
 

Detailed Description

template<int D>
class Pscf::Rpg::CompressorFactory< D >

Factory for subclasses of Compressor.

Definition at line 25 of file rpg/fts/simulator/Simulator.h.

Constructor & Destructor Documentation

◆ CompressorFactory()

template<int D>
Pscf::Rpg::CompressorFactory< D >::CompressorFactory ( System< D > & system)

Constructor.

Definition at line 21 of file rpg/fts/compressor/CompressorFactory.tpp.

Member Function Documentation

◆ factory()

template<int D>
Compressor< D > * Pscf::Rpg::CompressorFactory< D >::factory ( const std::string & className) const
virtual

Method to create any Compressor supplied with PSCF.

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

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

Definition at line 30 of file rpg/fts/compressor/CompressorFactory.tpp.


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