valSPH
 All Classes Files Functions Variables
LinkedList.h
Go to the documentation of this file.
1 
10 #ifndef __LinkedList_h__
11 #define __LinkedList_h__
12 
13 #include "SpatialIndex.h"
14 #include "Particle.h"
15 
16 #include <vector>
17 #include <list>
18 
19 
20 using namespace std;
21 
22 
23 class LinkedList: public SpatialIndex {
24 
25 
26  private:
27 
28  vector< vector< vector <list <int> > > > linkedListsGrid;
29 
30 
31  public:
32 
33 
37  LinkedList();
38 
39 
48  LinkedList(
49  vector<double> qiMin,
50  vector<double> qiMax,
51  double smoothingLength,
52  vector<Particle> particles
53  );
54 
55 
61  list<Particle> getNNP(Particle particle, vector<Particle> particles);
62 
63 
69  void update(vector<Particle> particles);
70 
71 
75  ~LinkedList();
76 
77 
78 };
79 
80 
81 #endif