valSPH
 All Classes Files Functions Variables
SpatialHashing.h
Go to the documentation of this file.
1 
10 #ifndef __SpatialHashing_h__
11 #define __SpatialHashing_h__
12 
13 #include "SpatialIndex.h"
14 #include "Particle.h"
15 
16 #include <vector>
17 #include <list>
18 
19 using namespace std;
20 
21 
23 
24 
25  private:
26 
27 
28 
29  public:
30 
31 
36 
37 
47  vector<double> qiMin,
48  vector<double> qiMax,
49  double smoothingLength,
50  vector<Particle> particles
51  );
52 
53 
59  list<Particle> getNNP(Particle particle, vector<Particle> particles);
60 
61 
67  void update(vector<Particle> particles);
68 
69 
73  ~SpatialHashing();
74 
75 
76 };
77 
78 
79 #endif