Simpatico  v1.10
MdAnalyzerManager.cpp
1 /*
2 * Simpatico - Simulation Package for Polymeric and Molecular Liquids
3 *
4 * Copyright 2010 - 2017, The Regents of the University of Minnesota
5 * Distributed under the terms of the GNU General Public License.
6 */
7 
8 #include "MdAnalyzerManager.h"
9 #include "MdSimulation.h"
10 #include <mcMd/analyzers/mdSystem/MdAnalyzerFactory.h>
11 
12 namespace McMd
13 {
14 
15  using namespace Util;
16 
17  // Constructor.
19  : simulationPtr_(&simulation),
20  systemPtr_(&simulation.system())
21  {}
22 
23  // Constructor.
25  MdSystem& system)
26  : simulationPtr_(&simulation),
27  systemPtr_(&system)
28  {}
29 
30  // Destructor.
32  {}
33 
36  { return new MdAnalyzerFactory(*simulationPtr_, *systemPtr_); }
37 
38 }
virtual Util::Factory< Analyzer > * newDefaultFactory() const
Create and return pointer to a new MdAnalyzerFactory object.
virtual ~MdAnalyzerManager()
Destructor.
Utility classes for scientific computation.
Definition: accumulators.mod:1
MdAnalyzerManager(MdSimulation &simulation)
Constructor.
Single-processor Monte Carlo (MC) and molecular dynamics (MD).
AnalyzerFactory for an MdSimulation.
A System for Molecular Dynamics simulation.
Definition: MdSystem.h:68
A molecular dynamics simulation of a single MdSystem.
Definition: MdSimulation.h:26