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

Factory for subclasses of TrajectoryReader. More...

#include <TrajectoryReaderFactory.h>

Inheritance diagram for Pscf::Rpg::TrajectoryReaderFactory< D >:
Util::Factory< TrajectoryReader< D > >

Public Member Functions

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

Factory for subclasses of TrajectoryReader.

Definition at line 29 of file rpg/fts/trajectory/TrajectoryReaderFactory.h.

Constructor & Destructor Documentation

◆ TrajectoryReaderFactory()

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

Constructor.

Definition at line 18 of file rpg/fts/trajectory/TrajectoryReaderFactory.tpp.

Member Function Documentation

◆ factory()

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

Method to create any TrajectoryReader supplied with PSCF.

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

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

Definition at line 27 of file rpg/fts/trajectory/TrajectoryReaderFactory.tpp.


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