Space Comps
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
src
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
10
class
SpatialHashAlgorithm
:
public
Algorithm
11
{
12
public
:
13
SpatialHashAlgorithm
(
int
xIn,
int
yIn,
int
numParticles);
14
~
SpatialHashAlgorithm
();
15
16
private
:
17
void
calculateNextTimestep();
18
int
hashFunc(
int
x,
int
y);
19
std::vector<BoundingBox*> boundingBoxes;
20
};
21
22
#endif // SPATIALHASHALGORITHM_H
Algorithm
The Algorithm class is a parent to all the specific Algorithms we test.
Definition:
algorithm.h:16
SpatialHashAlgorithm
Definition:
spatialhashalgorithm.h:10
Generated on Sun Feb 23 2014 12:52:24 for Space Comps by
1.8.6