Simpatico  v1.10
List of all members | Public Member Functions | Protected Member Functions
McMd::McAnalyzerFactory Class Reference

Detailed Description

AnalyzerFactory for an McSimulation.

Definition at line 29 of file McAnalyzerFactory.h.

#include <McAnalyzerFactory.h>

Inheritance diagram for McMd::McAnalyzerFactory:
Util::Factory< Analyzer > McMd::SliplinkMcAnalyzerFactory

Public Member Functions

 McAnalyzerFactory (McSimulation &simulation, McSystem &system)
 Constructor. More...
 
virtual Analyzerfactory (const std::string &className) const
 Return pointer to a new Analyzer object. More...
 
- Public Member Functions inherited from Util::Factory< Analyzer >
 Factory ()
 Constructor. More...
 
virtual ~Factory ()
 Destructor. More...
 
void addSubfactory (Factory< Analyzer > &subfactory)
 Add a new subfactory to the list. More...
 
Analyzer * readObject (std::istream &in, ParamComposite &parent, std::string &className, bool &isEnd)
 Read a class name, instantiate an object, and read its parameters. More...
 
Analyzer * loadObject (Serializable::IArchive &ar, ParamComposite &parent, std::string &className)
 Load a class name, instantiate an object, and load the object. More...
 

Protected Member Functions

McSystemsystem () const
 Return reference to parent McSystem. More...
 
McSimulationsimulation () const
 Return reference to parent McSimulation. More...
 
- Protected Member Functions inherited from Util::Factory< Analyzer >
Analyzer * trySubfactories (const std::string &className) const
 Search through subfactories for match. More...
 
void setIoCommunicator (MPI::Intracomm &communicator)
 Set associated Mpi communicator. More...
 
bool hasIoCommunicator () const
 Does this factory have a param communicator? More...
 

Constructor & Destructor Documentation

McMd::McAnalyzerFactory::McAnalyzerFactory ( McSimulation simulation,
McSystem system 
)

Constructor.

Parameters
simulationparent McSimulation
systemparent McSystem

Definition at line 48 of file McAnalyzerFactory.cpp.

Member Function Documentation

Analyzer * McMd::McAnalyzerFactory::factory ( const std::string &  className) const
virtual

Return pointer to a new Analyzer object.

Parameters
classNamename of a subclass of Analyzer.
Returns
base class pointer to a new instance of className.

Implements Util::Factory< Analyzer >.

Reimplemented in McMd::SliplinkMcAnalyzerFactory.

Definition at line 58 of file McAnalyzerFactory.cpp.

References McMd::SystemAnalyzerFactory::factory(), system(), and Util::Factory< Analyzer >::trySubfactories().

Referenced by McMd::SliplinkMcAnalyzerFactory::factory().

McSystem& McMd::McAnalyzerFactory::system ( ) const
inlineprotected

Return reference to parent McSystem.

Definition at line 55 of file McAnalyzerFactory.h.

Referenced by McMd::SliplinkMcAnalyzerFactory::factory(), and factory().

McSimulation& McMd::McAnalyzerFactory::simulation ( ) const
inlineprotected

Return reference to parent McSimulation.

Definition at line 61 of file McAnalyzerFactory.h.


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