Simpatico  v1.10
SpeciesManager.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 "SpeciesManager.h"
9 #include "SpeciesFactory.h"
10 
11 namespace McMd
12 {
13 
14  using namespace Util;
15 
16  /*
17  * Constructor.
18  */
20  : Manager<Species>()
21  { setClassName("SpeciesManager"); }
22 
23  /*
24  * Return a pointer to a new SpeciesFactory object.
25  */
27  { return new SpeciesFactory(); }
28 
29 }
Default Factory for subclasses of Species.
Template container for pointers to objects with a common base class.
Definition: Manager.h:38
Utility classes for scientific computation.
Definition: accumulators.mod:1
Single-processor Monte Carlo (MC) and molecular dynamics (MD).
void setClassName(const char *className)
Set class name string.
A Species represents a set of chemically similar molecules.
SpeciesManager()
Constructor.
virtual Factory< Simp::Species > * newDefaultFactory() const
Create an instance of the default Factory<Data> class.