Space Comps
 All Classes Files Functions Variables
spatialhashalgorithm.h
1 #ifndef SPATIALHASHALGORITHM_H
2 #define SPATIALHASHALGORITHM_H
3 #include <math.h>
4 #include <unordered_map>
5 #include "algorithm.h"
6 #include "boundingbox.h"
7 #include <unordered_set>
8 //#include <set>
9 
11 {
12 public:
13  SpatialHashAlgorithm(int xIn, int yIn, int numParticles);
15 
16 private:
17  void calculateNextTimestep();
18  int hashFunc(int x, int y);
19  std::vector<BoundingBox*> boundingBoxes;
20 };
21 
22 #endif // SPATIALHASHALGORITHM_H
The Algorithm class is a parent to all the specific Algorithms we test.
Definition: algorithm.h:16
Definition: spatialhashalgorithm.h:10