Simpatico  v1.10
McAnalyzerManager.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 "McAnalyzerManager.h"
9 #include "McSimulation.h"
10 #include <mcMd/analyzers/mcSystem/McAnalyzerFactory.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  McSystem &system)
26  : simulationPtr_(&simulation),
27  systemPtr_(&system)
28  {}
29 
32  { return new McAnalyzerFactory(*simulationPtr_, *systemPtr_); }
33 
34 }
A System for use in a Markov chain Monte Carlo simulation.
Definition: McSystem.h:52
McAnalyzerManager(McSimulation &simulation)
Constructor.
virtual Factory< Analyzer > * newDefaultFactory() const
Instantiate and return pointer to a new McAnalyzerFactory object.
A Monte-Carlo simulation of one McSystem.
Definition: McSimulation.h:32
Utility classes for scientific computation.
Definition: accumulators.mod:1
Single-processor Monte Carlo (MC) and molecular dynamics (MD).
AnalyzerFactory for an McSimulation.