ESyS-Particle  4.0.1
ParticleGenerator.h
1 
2 // //
3 // Copyright (c) 2003-2011 by The University of Queensland //
4 // Earth Systems Science Computational Centre (ESSCC) //
5 // http://www.uq.edu.au/esscc //
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 
17 #include "Geometry/SimpleParticle.h"
18 #include "Geometry/CircularNeighbourTable.h"
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 
47  ParticlePool &getParticlePool();
48  const ParticlePool &getParticlePool() const;
49  private:
50  NTable *m_pNTable;
51  ParticlePool *m_pParticlePool;
52  };
53  };
54 };
55 
56 #endif