ESyS-Particle  2.3.2
ParticleGenerator.h
Go to the documentation of this file.
1 
2 // //
3 // Copyright (c) 2003-2014 by The University of Queensland //
4 // Centre for Geoscience Computing //
5 // http://earth.uq.edu.au/centre-geoscience-computing //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.opensource.org/licenses/osl-3.0.php //
10 // //
12 
13 
14 #ifndef ESYS_LSMPARTICLEGENERATOR_H
15 #define ESYS_LSMPARTICLEGENERATOR_H
16 
19 
20 #include <boost/pool/object_pool.hpp>
21 
22 namespace esys
23 {
24  namespace lsm
25  {
30  {
31  public:
33  typedef boost::object_pool<SimpleParticle> ParticlePool;
34 
35  ParticleGenerator(NTable &nTable, ParticlePool &particlePool);
36 
37  virtual ~ParticleGenerator();
38 
39  virtual void generate() = 0;
40 
41  protected:
43 
44  NTable &getNTable();
45  const NTable &getNTable() const;
46 
48  const ParticlePool &getParticlePool() const;
49  private:
52  };
53  }
54 }
55 
56 #endif